Comments (5)
@svigerske Sorry for offending your sensibilities :). I guess you're right that it's a pretty elegant solution, but we did sort of back into it rather than purpose-building it this way, so it feels like a historical artifact. And it would be hard to argue that the reasons are not arcane :). But thanks for the quick fix!
from cbc.
I think I have figured out the cause of the problem (but not quite a fix yet). It is an issue with my compilation command. My compiler command looks like (edited to keep the main point):
clang++ -isystem ${COIN_OR}/build/include/coin-or -c file.cpp -o file.o
The version of the header file CbcConfig.h
located in ${COIN_OR}/build/include/coin-or is not that of ${COIN_OR}/Cbc/src/CbcConfig.h.
@tkralphs Maybe this is me using coinbrew incorrectly?
It seems the version of CbcConfig.h
in the build directory is autogenerated as the first line is
/* src/config_cbc.h. Generated from config_cbc.h.in by configure. */
from cbc.
For arcane historical reasons, when building with the autotools, CbcConfig.h
is replaced by an auto-generated header when it is installed, So what you are seeing is correct. The problem is that in ec1774, @jjhforrest inserted a typedef for node_count
into the source version of CbcConfig.h
and since this file itself does not get installed, that's not the right place for it. So I don't think anyone building with the autotools can build successfully at the moment. We need to move that typedef somewhere. Let me look at it.
from cbc.
Apart from the "arcane historical reasons" (I actually find it quite elegant how we deal with the different config header variants and avoid that users would have to define HAVE_CONFIG_H
, but I'm biased), what Ted wrote is correct. I took the liberty to move the typedef into a better place. (Just adding that I don't think that it's a great idea that Cbc defines a type named node_count
on the global namespace.)
from cbc.
I have changed node_count to cbc_node_count which should be safe enough. I am trying to solve my effort to experiment with problem mas76. My version is smaller, but slightly difficult to solve. The best possible objective was -10512. I have managed to find a value of -10508 and I am hoping the run will finish this year. The last node count was 8834862000 so you can see why long int is needed.
from cbc.
Related Issues (20)
- missing Result after TimeOut HOT 4
- Discrepancy in config.guess between Releases and Master Branch HOT 1
- "Conditional jump or move depends on uninitialised value" for model with SOS 2 and MIP start (master) HOT 2
- CBC fails when initial solution is passed with mipstart HOT 2
- Feature Request -- Retrieving multiple optimal solutions
- Question - interpretation of a sol file
- Bug: got Infeasible on obviously feasible problem HOT 3
- Bug? Huge variance in solving time HOT 3
- Error installing Cbc solver in a docker image HOT 2
- osiUnitTest failure HOT 2
- Trying to end CBC Promt with ctrl-d leads to endless loop
- mipStart_ not copied in CbcModel copy constructor HOT 1
- Wrong result with current master build HOT 3
- Option '-threads 8' causes unpredictable hanging due to lock issue HOT 10
- How to use latest CBC solver in Python PULP on MacOS HOT 1
- cbc crash ( segmentation fault) when model was solved during presolve process and given lp is large HOT 2
- No static library in MacOS builds HOT 3
- Modifying row coefficient via the C interface HOT 5
- File content mismatch between releases and repo HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbc.