10 #define _MP_model_hpp_ 20 #include <CoinPackedVector.hpp> 21 class OsiSolverInterface;
38 virtual void logMessage(
int level,
const char *
const msg){}
43 virtual void statistics(
int bm,
int m,
int bn,
int n,
int nz) {}
55 virtual void statistics(
int bm,
int m,
int bn,
int n,
int nz);
190 void attach(OsiSolverInterface *solver = 0);
213 double getInfinity()
const;
234 typedef std::set<MP_variable* >::iterator
varIt;
235 typedef std::set<MP_constraint* >::iterator
conIt;
244 static void assemble(vector<MP::Coef>& v, vector<MP::Coef>& av);
void maximize(const MP_expression &obj)
This is one of the main entry points for executionThis calls the OsiSolverInterface to execute the so...
OsiSolverInterface * operator->()
allows access to the OsiSolverInterface *
virtual void constraintDebug(string name, const vector< MP::Coef > &cfs)
Symbolic representation of a linear expression.This is one of the main public interface classes...
std::ostream & operator<<(std::ostream &os, const MP_model::MP_status &condition)
allows print of result from call to solve();
void minimize(const MP_expression &obj)
This is one of the main entry points for executionThis calls the OsiSolverInterface to execute the so...
std::set< MP_constraint *>::iterator conIt
Messenger * getMessenger()
std::set< MP_variable *>::iterator varIt
Inteface for hooking up to internal flopc++ message handling.In more advanced use of FlopC++...
virtual void generationTime(double t)
static MP_model * current_model
void verbose()
used to help understanding and debugging FlopC++'s behavior.
A solver is attached, but not yet solved.
void minimize_max(MP_set &d, const MP_expression &obj)
This is one of the main entry points for executionThis calls the OsiSolverInterface to execute the so...
MP_status
Reflects the state of the solution from solve()
This is the anchor point for all constructs in a FlopC++ model.The constructors take an OsiSolverInte...
virtual void statistics(int bm, int m, int bn, int n, int nz)
All flopc++ code is contained within the flopc namespace.
OsiSolverInterface * Solver
if solve is called and solver finds model primal infeasible.
set< MP_variable * > Variables
void silent()
used to silence FlopC++
set< MP_constraint * > Constraints
Symantic representation of a variable.This is one of the main public interface classes. It should be directly declared by clients of the FlopC++. The parametersof construction are MP_set s which specify the indexes over which the variable is defined.
if solve is called and solver finds the model dual infeasible.
Representation of a set for indexing into some other construct.This is one of the main public interfa...
MP_status getStatus() const
Returns the current status of the model-solver interaction. This method will return the current under...
virtual void objectiveDebug(const vector< MP::Coef > &cfs)
static MP_model & default_model
if the solve method is called and the optimal solution found.
void setSolver(OsiSolverInterface *s)
allows for replacement of the solver used.
virtual void logMessage(int level, const char *const msg)
MP_direction
used when calling the solve() method.
Semantic representation of a linear constraint.This is one of the main public interface classes...