Cbc icon indicating copy to clipboard operation
Cbc copied to clipboard

abcState_ un-predefined in <ClpSimplex.hpp>

Open CharlieXu opened this issue 5 years ago • 2 comments

when I am trying to build parallel CBC, I came up with the problem of abcState_ problem on line 1954. int abcState_; #define CLP_ABC_WANTED 1 #define CLP_ABC_WANTED_PARALLEL 2 #define CLP_ABC_FULL_DONE 8

should I just define the abcState_ =2 ; ? or should we use a detector to get the cpunumber to fulfill this statement: int numberCpu = CoinMin((this->abcState() & 15), 4); // in file clpsolve.cpp

do we need to just set it as 2 ? or let the program set it ? should I use all the cores in the computer to do the clp ? Thanks,

CharlieXu avatar Aug 23 '19 00:08 CharlieXu

It would be helpful if you would provide more detailed information, such as compiler, OS, exact command you used to compile and the exact output. If the code does not just build out of the box, there is something wrong, you should not need to modify source code.

tkralphs avatar Aug 23 '19 14:08 tkralphs

Thanks for your reply, Ted.

I was following the page here : https://projects.coin-or.org/Cbc and, the section <Quick Start Guide for Microsoft Visual C++ Users> at step 1. add "CBC_THREAD" under Properties and, followed the whole steps, but the previous problem comes up. feed the CBC build with the local lib pthread4win.

and, I am wondering: do we really need multi thread for clp in this context ? and, here: int numberCpu = CoinMin((this->abcState() & 15), 4); // in file clpsolve.cpp returns max numberCpu =4, but actually most computer now has more than 4 cores(or 4 threads). So, I am wondering if this is the proper way to define the threads to use ?

CharlieXu avatar Aug 23 '19 18:08 CharlieXu