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

Public Member Functions | |
| virtual | ~Modification () |
| Default destroy. | |
| virtual ModificationPtr | fromRel (RelaxationPtr rel, ProblemPtr p) const =0 |
| Covert a modification for a relaxation to one for its original problem. | |
| virtual ModificationPtr | toRel (ProblemPtr p, RelaxationPtr rel) const =0 |
| Covert a modification for a problem to one for its relaxation. | |
| virtual void | applyToProblem (ProblemPtr problem)=0 |
| Apply it to the problem. | |
| virtual void | undoToProblem (ProblemPtr problem)=0 |
| Restore the modification for a problem. | |
| virtual void | write (std::ostream &out) const =0 |
| Write it to 'out'. | |
Protected Member Functions | |
| Modification () | |
| Default constructor. | |
Modification is a (pure) abstract class for changes that can be done to a problem
|
pure virtual |
Apply it to the problem.
Implemented in Minotaur::ConBoundMod, Minotaur::ConBoundMod2, Minotaur::ConMod, Minotaur::LinConMod, Minotaur::LinMods, Minotaur::SecantMod, Minotaur::VarBoundMod, and Minotaur::VarBoundMod2.
|
pure 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. |
Implemented in Minotaur::ConBoundMod, Minotaur::ConBoundMod2, Minotaur::ConMod, Minotaur::LinConMod, Minotaur::LinMods, Minotaur::SecantMod, Minotaur::VarBoundMod, and Minotaur::VarBoundMod2.
|
pure 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. |
Implemented in Minotaur::ConBoundMod, Minotaur::ConBoundMod2, Minotaur::ConMod, Minotaur::LinConMod, Minotaur::LinMods, Minotaur::SecantMod, Minotaur::VarBoundMod, and Minotaur::VarBoundMod2.
|
pure virtual |
Restore the modification for a problem.
Implemented in Minotaur::ConBoundMod, Minotaur::ConBoundMod2, Minotaur::ConMod, Minotaur::LinConMod, Minotaur::LinMods, Minotaur::SecantMod, Minotaur::VarBoundMod, and Minotaur::VarBoundMod2.
|
pure virtual |
Write it to 'out'.
Implemented in Minotaur::ConBoundMod2, Minotaur::ConMod, Minotaur::LinMods, Minotaur::SecantMod, Minotaur::VarBoundMod2, Minotaur::ConBoundMod, Minotaur::LinConMod, and Minotaur::VarBoundMod.