14 #include <OsiSolverInterface.hpp>
19 using namespace flopc;
27 RowMajor(s1.size(),s2.size(),s3.size(),s4.size(),s5.size()),
28 upperLimit(s1,s2,s3,s4,s5),
29 lowerLimit(s1,s2,s3,s4,s5),
30 S1(&s1),S2(&s2),S3(&s3),S4(&s4),S5(&s5),
39 return M->
Solver->getColSolution()[
offset +
f(lcl_i1,lcl_i2,lcl_i3,lcl_i4,lcl_i5)];
61 cout<<
"No solution available!"<<endl;
static MP_set & getEmpty()
gets the distinct 'empty' MP_set.
MP_variable(const MP_set_base &s1=MP_set::getEmpty(), const MP_set_base &s2=MP_set::getEmpty(), const MP_set_base &s3=MP_set::getEmpty(), const MP_set_base &s4=MP_set::getEmpty(), const MP_set_base &s5=MP_set::getEmpty())
MP_data upperLimit
Upper bound on the variable value.
void initialize(double d)
similar to value() but copies the same value to all entries.
void display(const std::string &s="")
int f(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
All flopc++ code is contained within the flopc namespace.
double level(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0)
Returns the value of the variable given the specific index values.
OsiSolverInterface * Solver
Internal representation of a "set".
static MP_model & getDefaultModel()
MP_data lowerLimit
Lower bound on the variable value.