25 #if CBC_OTHER_SOLVER == 1
66 int solve(
int argc,
const char *argv[],
int returnMode);
73 int solve(
const char *input,
int returnMode);
339 int ,
const char * = NULL) {}
362 inline std::string
name()
const
369 virtual bool canDo(
const char *options) = 0;
CoinModel * coinModel() const
CoinModel if valid.
void fillValuesInSolver()
Set default values in solvers from parameters.
CbcUser & operator=(const CbcUser &rhs)
Assignment operator.
virtual void * stuff()
Other info - needs expanding.
CbcSolverUsefulData()
Default Constructor.
CbcUser * userFunction(const char *name) const
User function (NULL if no match)
virtual void exportSolution(CbcSolver *, int, const char *=NULL)
Export.
CbcModel * model()
Return original Cbc model.
~CbcSolverUsefulData()
Destructor.
void setOriginalCoinModel(CoinModel *originalCoinModel)
Copy of model on initial load.
int numberUserFunctions_
Number of user functions.
CbcUser()
Default Constructor.
double startTime() const
Start time.
OsiClpSolverInterface * originalSolver_
Copy of model on initial load (will contain output solutions)
CbcStopNow * callBack_
Stop now stuff.
OsiClpSolverInterface * originalSolver() const
Copy of model on initial load (will contain output solutions)
std::vector< CbcOrClpParam > parameters_
Parameters and values.
int numberCutGenerators_
Number of cut generators.
std::string userName_
Name of user function.
This is a simple minded model which is stored in a format which makes it easier to construct and modi...
int readMode_
Where to start reading commands.
CglCutGenerator ** cutGeneratorArray() const
Cut generator array.
virtual void exportData(CbcSolver *)
Export Data (i.e. at very end)
void setReadMode(int value)
Where to start reading commands.
CbcUser ** userFunction_
User functions.
int intValue(CbcOrClpParameterType type) const
Get int value.
Base class for message handling.
double doubleValue(CbcOrClpParameterType type) const
Get double value.
void addCutGenerator(CglCutGenerator *generator)
Add cut generator.
A class to allow the use of unknown user functionality.
Support the use of a call back class to decide whether to stop.
CbcStopNow & operator=(const CbcStopNow &rhs)
Assignment operator.
This is a first attempt at a message handler.
This allows the use of the standalone solver in a flexible manner.
This solves LPs using the simplex method.
virtual ~CbcStopNow()
Destructor.
virtual CbcUser * clone() const =0
Clone.
virtual void fillInformation(CbcSolver *, CbcSolverUsefulData &)
Get useful stuff.
CbcModel * babModel()
Return updated Cbc model.
Cut Generator Base Class.
CbcModel * babModel_
Updated model.
void fillParameters()
Fill with standard parameters.
CbcSolverUsefulData & operator=(const CbcSolverUsefulData &rhs)
Assignment operator.
virtual bool canDo(const char *options)=0
Returns true if function knows about option.
void setIntValue(CbcOrClpParameterType type, int value)
Set int value.
std::vector< CbcOrClpParam > parameters_
void setDoubleValue(CbcOrClpParameterType type, double value)
Set double value.
CoinModel * originalCoinModel() const
Copy of model on initial load.
int * statusUserFunction_
Status of user functions 0 - not used 1 - needs cbc_load 2 - available - data in coinModel 3 - data l...
void CbcMain0(CbcModel &babSolver)
int solve(int argc, const char *argv[], int returnMode)
This takes a list of commands, does "stuff" and returns returnMode - 0 model and solver untouched - b...
virtual int importData(CbcSolver *, int &, char **)
Import - gets full command arguments.
CglCutGenerator ** cutGenerator_
Cut generators.
The CbcSolver class was taken out at a 9/12/09 meeting This is a feeble replacement.
virtual ~CbcUser()
Destructor.
virtual int callBack(CbcModel *, int)
Import.
void updateModel(ClpSimplex *model2, int returnMode)
1 - add heuristics to model 2 - do heuristics (and set cutoff and best solution) 3 - for miplib test ...
double startTime_
Cpu time at instantiation.
CoinModel * originalCoinModel_
Copy of model on initial load.
void addUserFunction(CbcUser *function)
Add user function.
CbcStopNow()
Default Constructor.
CbcUser ** userFunctionArray() const
User function array.
int numberUserFunctions() const
Number of userFunctions.
bool doMiplib_
Whether to do miplib test.
CbcOrClpParameterType
Parameter codes.
int CbcMain1(int argc, const char *argv[], CbcModel &babSolver)
std::string name() const
Name.
CoinModel * coinModel_
CoinModel.
void setOriginalSolver(OsiClpSolverInterface *originalSolver)
Copy of model on initial load (will contain output solutions)
virtual CbcStopNow * clone() const
Clone.
void setPrinting(bool onOff)
Whether to print to std::cout.
bool noPrinting_
Whether to print to std::cout.
int numberCutGenerators() const
Number of cutgenerators.
Simple Branch and bound class.
Structure to hold useful arrays.
CbcModel model_
Reference model.
int * analyze(OsiClpSolverInterface *solverMod, int &numberChanged, double &increment, bool changeInt, CoinMessageHandler *generalMessageHandler)
virtual void solve(CbcSolver *model, const char *options)=0
Solve (whatever that means)
CbcSolver & operator=(const CbcSolver &rhs)
Assignment operator.
void setUserCallBack(CbcStopNow *function)
Set user call back.
CbcSolver()
Default Constructor.