|
Minotaur 0.4.1
Docs for developers
|
#include <LinMods.h>


Public Member Functions | |
| LinMods () | |
| Constructor. | |
| ~LinMods () | |
| Destroy. | |
| void | applyToProblem (ProblemPtr problem) |
| Apply it to the problem. | |
| ModificationPtr | fromRel (RelaxationPtr, ProblemPtr) const |
| Covert a modification for a relaxation to one for its original problem. | |
| void | insert (VarBoundModPtr bmod) |
| Insert a new VarBoundMod. | |
| void | insert (VarBoundMod2Ptr b2mod) |
| Insert a new VarBoundMod2. | |
| void | insert (LinConModPtr lmod) |
| Insert a new LinConMod. | |
| bool | isEmpty () const |
| ModificationPtr | toRel (ProblemPtr, RelaxationPtr) const |
| Covert a modification for a problem to one for its relaxation. | |
| void | undoToProblem (ProblemPtr problem) |
| Restore the modification for a problem. | |
| void | write (std::ostream &) const |
| Write it to 'out'. | |
Public Member Functions inherited from Minotaur::Modification | |
| virtual | ~Modification () |
| Default destroy. | |
Additional Inherited Members | |
Protected Member Functions inherited from Minotaur::Modification | |
| Modification () | |
| Default constructor. | |
LinMods keeps record of changes in linear functions of different constraints and the changes in bounds of different variables.
|
virtual |
Apply it to the problem.
Implements Minotaur::Modification.
|
virtual |
Covert a modification for a relaxation to one for its original problem.
| [in] | rel | Relaxation for which this mod is applicable. |
| [in] | p | Problem for which the new mod will be applicable. |
Implements Minotaur::Modification.
| bool LinMods::isEmpty | ( | ) | const |
Return true if there are no modifications stored in this object. False otherwise.
|
virtual |
Covert a modification for a problem to one for its relaxation.
| [in] | p | Problem for which this mod is applicable. |
| [in] | rel | Relaxation for which the new mod will be applicable. |
Implements Minotaur::Modification.
|
virtual |
Restore the modification for a problem.
Implements Minotaur::Modification.
|
virtual |
Write it to 'out'.
Implements Minotaur::Modification.