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 #ifdef __APPLE__
16 // for some reason these symbol doesn't exist in the mac binaries
17 void OsiSolverInterface::addCol(CoinPackedVectorBase const& vec, double collb,
18  double colub, double obj, std::string name) {
19  // just ignore the name
20  addCol(vec, collb, colub, obj);
21 }
22 
23 void OsiSolverInterface::addCol(int numberElements, const int* rows,
24  const double* elements, double collb, double colub,
25  double obj, std::string name) {
26  // just ignore the name
27  addCol(numberElements, rows, elements, collb, colub, obj);
28 }
29 
30 void OsiSolverInterface::addRow(CoinPackedVectorBase const& vec, char rowsen,
31  double rowrhs, double rowrng, std::string name) {
32  // just ignore the name
33  addRow(vec, rowsen, rowrhs, rowrng, name);
34 }
35 
36 void OsiSolverInterface::addRow(CoinPackedVectorBase const& vec, double rowlb,
37  double rowub, std::string name) {
38  // just ignore the name
39  addRow(vec, rowlb, rowub);
40 }
41 #endif
std::string name(int nuc)
Definition: pyne.cc:2940