|
Minotaur 0.4.1
Docs for developers
|


Public Member Functions | |
| UnoEngine (EnvPtr env) | |
| Default constructor. | |
| ~UnoEngine () | |
| Destroy. | |
| void | addConstraint (ConstraintPtr c) |
| Add a new constraint to the engine. | |
| void | changeBound (ConstraintPtr cons, BoundType lu, double new_val) |
| Change a bound of a constraint. | |
| void | changeBound (VariablePtr var, BoundType lu, double new_val) |
| Change a bound of a variable. | |
| void | changeBound (VariablePtr var, double new_lb, double new_ub) |
| Change both bounds of a variable. | |
| void | changeConstraint (ConstraintPtr con, LinearFunctionPtr lf, double lb, double ub) |
| Change the linear function, and the bounds of a constraint. | |
| void | changeConstraint (ConstraintPtr, NonlinearFunctionPtr) |
| Change the nonlinear function, and the bounds of a constraint. | |
| void | changeObj (FunctionPtr f, double cb) |
| Change objective function. | |
| void | clear () |
| Clear the loaded problem, if any, from the engine. | |
| void | disableStrBrSetup () |
| Restore settings after strong branching. | |
| EnginePtr | emptyCopy () |
| Return an empty UnoEngine pointer. | |
| void | enableStrBrSetup () |
| Make settings for strong branching. | |
| void | fillStats (std::vector< double > &) |
| Accumulate statistics from different threads in a common data. | |
| std::string | getName () const |
| Get the name. | |
| ConstSolutionPtr | getSolution () |
| Get the solution obtained after solving the problem. | |
| double | getSolutionValue () |
| Get the solution value. | |
| EngineStatus | getStatus () |
| Get the status of the last solve command. | |
| ConstWarmStartPtr | getWarmStart () |
| WarmStartPtr | getWarmStartCopy () |
| void | load (ProblemPtr problem) |
| Load the problem into Uno. We create the TNLP interface to Uno. | |
| void | loadFromWarmStart (const WarmStartPtr ws) |
| void | negateObj () |
| Negate the objective function. Min f is changed to Min -f. | |
| void | removeCons (std::vector< ConstraintPtr > &delcons) |
| Delete constraints from the engine. | |
| void | resetIterationLimit () |
| Reset the iteration limit to maximum possible. | |
| void | setIterationLimit (int limit) |
| int | setDualObjLimit (double) |
| Set the dual objective limit. | |
| void | setOptionsForSingleSolve () |
| void | setOptionsForRepeatedSolve () |
| Set options to solve the NLP repeatedly, with few changes. | |
| EngineStatus | solve () |
| void | writeStats (std::ostream &out) const |
| Write statistics. | |
Public Member Functions inherited from Minotaur::NLPEngine | |
| NLPEngine () | |
| Default constructor. | |
| virtual | ~NLPEngine () |
| Default destructor. | |
Public Member Functions inherited from Minotaur::Engine | |
| Engine () | |
| Default constructor. | |
| virtual | ~Engine () |
| Destroy. | |
| virtual std::string | getStatusString () |
| Return a string that describes the status in simple words. | |
| virtual LoggerPtr | getLogger () |
| Return pointer to the log manager. | |
| virtual void | setLogger (LoggerPtr logger) |
| Set a new log manager. | |
Friends | |
| class | Problem |
Additional Inherited Members | |
Protected Attributes inherited from Minotaur::Engine | |
| EngineStatus | status_ |
| Status of the last solve. | |
| LoggerPtr | logger_ |
| Keep log. | |
|
virtual |
Add a new constraint to the engine.
Implements Minotaur::Engine.
|
virtual |
Change a bound of a constraint.
Implements Minotaur::Engine.
|
virtual |
Change a bound of a variable.
Implements Minotaur::Engine.
|
virtual |
Change both bounds of a variable.
Implements Minotaur::Engine.
|
virtual |
Change the linear function, and the bounds of a constraint.
| [in] | c | Original constraint that is to be changed. |
| [lf] | The new linear function. | |
| [lb] | The new lower bound. | |
| [ub] | The new upper bound. |
Implements Minotaur::Engine.
|
virtual |
Change the nonlinear function, and the bounds of a constraint.
| [in] | c | Original constraint that is to be changed. |
| [nlf] | The new nonlinear function. |
Implements Minotaur::Engine.
|
virtual |
Change objective function.
Implements Minotaur::Engine.
|
virtual |
Clear the loaded problem, if any, from the engine.
Implements Minotaur::Engine.
|
virtual |
Restore settings after strong branching.
Implements Minotaur::Engine.
|
virtual |
Return an empty UnoEngine pointer.
Reimplemented from Minotaur::Engine.
|
virtual |
Make settings for strong branching.
Implements Minotaur::Engine.
|
virtual |
Accumulate statistics from different threads in a common data.
Reimplemented from Minotaur::Engine.
|
virtual |
Get the name.
Implements Minotaur::Engine.
|
virtual |
Get the solution obtained after solving the problem.
Implements Minotaur::Engine.
|
virtual |
Get the solution value.
Implements Minotaur::Engine.
|
virtual |
Get the status of the last solve command.
Implements Minotaur::Engine.
|
virtual |
Get warm start information from the engine. This warm start information can change if the engine is used to solve something else again.
Implements Minotaur::Engine.
|
virtual |
Get a full copy of warm start information from the engine. Does not change even if the engine starts solving something else later on.
Implements Minotaur::Engine.
|
virtual |
Load the problem into Uno. We create the TNLP interface to Uno.
Implements Minotaur::Engine.
|
virtual |
Use warm start information for solving the next problem. May Create a copy of WarmStart and use the copy inside the engine; the copy (but not the original) gets updated after solving a relaxation.
Implements Minotaur::Engine.
|
virtual |
Negate the objective function. Min f is changed to Min -f.
Implements Minotaur::Engine.
|
virtual |
Delete constraints from the engine.
| [in] | delcons | A vector of constraint pointers that should be deleted from the engine. |
Implements Minotaur::Engine.
|
virtual |
Reset the iteration limit to maximum possible.
Implements Minotaur::Engine.
|
inlinevirtual |
Set the dual objective limit.
Implements Minotaur::Engine.
|
virtual |
Set a limit on number of iterations. For strong-branching, for instance.
Implements Minotaur::Engine.
|
virtual |
Set options to solve the NLP repeatedly, with few changes.
Reimplemented from Minotaur::Engine.
|
virtual |
Set options to solve the NLP only once or very few times, with possibly several changes.
Reimplemented from Minotaur::Engine.
|
virtual |
Solve the problem that was loaded. Uses the TNLP interface to Uno for solving the NLP.
Implements Minotaur::Engine.
|
virtual |
Write statistics.
Reimplemented from Minotaur::Engine.