14 #include <OsiSolverInterface.hpp>
21 using namespace flopc;
41 return offset +
f(
I1->evaluate(),
I2->evaluate(),
I3->evaluate(),
42 I4->evaluate(),
I5->evaluate());
56 RowMajor(s1.size(),s2.size(),s3.size(),s4.size(),s5.size()),
59 S1(s1),S2(s2),S3(s3),S4(s4),S5(s5),
60 I1(0),I2(0),I3(0),I4(0),I5(0)
74 cout<<
"FlopCpp Warning: Constraint declared but not defined."<<endl;
79 if (
left.operator->()!=0) {
80 left->insertVariables(v);
82 if (
right.operator->()!=0) {
83 right->insertVariables(v);
91 cout<<i<<
" "<<
M->
Solver->getRowLower()[i]<<
" "<<
M->
Solver->getRowActivity()[i]<<
" "<<
M->
Solver->getRowUpper()[i]<<
" "<<
M->
Solver->getRowPrice()[i]<<endl;
94 cout<<
"No solution available!"<<endl;
MP_constraint & such_that(const MP_boolean &b)
MP_model & add(MP_constraint &constraint)
Adds a constrataint block to the model.
double price(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
void operator=(const Constraint &v)
static MP_model * current_model
int f(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
void insertVariables(set< MP_variable * > &v)
const int outOfBound
Distinct return value on conditions where an index goes out of bounds.
MP_constraint(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())
construct the MP_constraint with appropriate sets for indexing.
This is the anchor point for all constructs in a FlopC++ model.The constructors take an OsiSolverInte...
All flopc++ code is contained within the flopc namespace.
OsiSolverInterface * Solver
void display(string s="") const
void coefficients(vector< MP::Coef > &cfs)
Internal representation of a "set".