Class to solve problems through Osi with Cbc. More...
#include <OsiCbc.h>
Public Member Functions | |
~OsiCbc () | |
Destructor. | |
STATUS | solve () |
Solve the problem loaded with Cbc. | |
![]() | |
OsiSolver () | |
Constructor. | |
~OsiSolver () | |
Destructor. | |
void | setMaxTime (double time) |
Set maximum time allowed to solve the problem. | |
double | getMaxTime () |
Get maximum time allowed to solve the problem. | |
void | setNumThreads (int numThreads) |
Set the maximum number of threads that the solver can use to solve the problem. | |
int | getNumThreads () |
Get the maximum number of threads that the solver can use to solve the problem. | |
void | setFirstFeasible (bool stopAtFirstFeasible) |
Set if the execution must be stopped at first feasible solution. | |
bool | getFirstFeasible () |
Get if the execution must be stopped at first feasible solution. | |
void | setLogFileName (char *filename) |
Set the name of the log file. | |
const char * | getLogFileName () |
Get the name of the log file. | |
OsiSolverInterface * | getSolverInterface () |
Get solver interface. | |
virtual void | readMps (const char *filename) |
Load a problem from a mps file. | |
void | loadProblem (int numRows, int numColumns, int nz, double obj[], double qobj[], double lb[], double ub[], double lhs[], double rhs[], int begRows[], int indCols[], double values[], bool copy_vectors=true) |
Load a problem. | |
double | getObjValue () |
Get the objective function value. | |
virtual const double * | getSolution () |
Get the solution. | |
int | getNumVars () |
Get the number of variables. | |
virtual const string * | getVarNames () |
Get the name of variables. | |
Additional Inherited Members | |
![]() | |
void | freeMemory () |
Free all allocated memory. | |
virtual void | loadQuadraticObj (double qobj[]) |
Load the quadratic objective function cost. | |
![]() | |
double | maxTime |
Maximum time allowed to solve the problem. | |
bool | stopAtFirstFeasible |
True if the execution must be stopped at first feasible solution. | |
bool | solved |
True if at least a initial solve has been done. | |
int | numThreads |
Number of threads to use. | |
OsiSolverInterface * | si |
Osi environment. | |
CoinMessageHandler * | cmh |
To redirect the output. | |
FILE * | f |
Output file. | |
char * | filename |
Name of file. | |
double | fobj |
Objective function value. | |
Class to solve problems through Osi with Cbc.