CYCLUS
OsiCbcSolverInterface.cpp
Go to the documentation of this file.
1 #include "CbcConfig.h"
2 
3 // CBC_VERSION_MAJOR defined for Cbc > 2.5
4 #ifndef CBC_VERSION_MAJOR
6 #elif CBC_VERSION_MAJOR == 2 && CBC_VERSION_MINOR <= 8
8 #elif CBC_VERSION_MAJOR == 2 && CBC_VERSION_MINOR == 9
10 #else
11 #error "Cyclus cannot yet handle your version of CoinCBC. Please open an issue with your CoinCBC version."
12 #endif
13 
14 
15 // for some reason these symbol doesn't exist in the mac binaries
16 // Those were also not present in condaforge/linux-anvil-comp7 docker container
17 // used to build conda recipes, using cpp/cxx 7.3, it also works with the docker
18 // in unit test...
19 void OsiSolverInterface::addCol(CoinPackedVectorBase const& vec, double collb,
20  double colub, double obj, std::string name) {
21  // just ignore the name
22  addCol(vec, collb, colub, obj);
23 }
24 
25 void OsiSolverInterface::addCol(int numberElements, const int* rows,
26  const double* elements, double collb, double colub,
27  double obj, std::string name) {
28  // just ignore the name
29  addCol(numberElements, rows, elements, collb, colub, obj);
30 }
31 
32 void OsiSolverInterface::addRow(CoinPackedVectorBase const& vec, char rowsen,
33  double rowrhs, double rowrng, std::string name) {
34  // just ignore the name
35  addRow(vec, rowsen, rowrhs, rowrng, name);
36 }
37 
38 void OsiSolverInterface::addRow(CoinPackedVectorBase const& vec, double rowlb,
39  double rowub, std::string name) {
40  // just ignore the name
41  addRow(vec, rowlb, rowub);
42 }
std::string name(int nuc)
Definition: pyne.cc:2940