Minotaur 0.4.1
Docs for developers
|
Modification of a single bound on a constraint. More...
#include <ConBoundMod.h>
Public Member Functions | |
ConBoundMod (ConstraintPtr con, BoundType lu, double new_val) | |
Construct. | |
~ConBoundMod () | |
Destroy. | |
ModificationPtr | fromRel (RelaxationPtr, ProblemPtr) const |
Covert a modification for a relaxation to one for its original problem. More... | |
ModificationPtr | toRel (ProblemPtr, RelaxationPtr) const |
Covert a modification for a problem to one for its relaxation. More... | |
ConstraintPtr | getCon () const |
Get the constraint whose bound is changed. More... | |
BoundType | getLU () const |
Get the type of bound that is changed: lower or upper. | |
double | getNewVal () const |
Get new value of the bound. | |
void | applyToProblem (ProblemPtr problem) |
Apply it to the problem. More... | |
void | undoToProblem (ProblemPtr problem) |
TO DO. More... | |
void | write (std::ostream &out) const |
Write it to 'out'. More... | |
![]() | |
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. More... | |
virtual ModificationPtr | toRel (ProblemPtr p, RelaxationPtr rel) const =0 |
Covert a modification for a problem to one for its relaxation. More... | |
virtual void | applyToProblem (ProblemPtr problem)=0 |
Apply it to the problem. More... | |
virtual void | undoToProblem (ProblemPtr problem)=0 |
Restore the modification for a problem. More... | |
virtual void | write (std::ostream &out) const =0 |
Write it to 'out'. More... | |
Additional Inherited Members | |
![]() | |
Modification () | |
Default constructor. | |
Modification of a single bound on a constraint.
|
virtual |
Apply it to the problem.
Implements Minotaur::Modification.
|
inlinevirtual |
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.
ConstraintPtr ConBoundMod::getCon | ( | ) | const |
Get the constraint whose bound is changed.
TO DO.
|
inlinevirtual |
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 |
TO DO.
Implements Minotaur::Modification.
|
virtual |
Write it to 'out'.
Implements Minotaur::Modification.