Undo information for a column bound change. More...
Public Member Functions
|UndoColAction (OsiSolverInterface *solver, int col, double val)|
|Constructs an undo information set. |
|Undo the operation as recorded. |
|The solver object that was be modified. |
|The index of the column that was modified. |
|The old value that shall be restored. |
Undo information for a column bound change.
This template is parametrized by a pointer to a method of OsiSolverInterface that will accept a column index and a double value. When instantiating this template, this parameter should be the function to be used to undo the associated modification.
|f||a pointer to member to the function used to undo the change associated with this object.|
|bande::UndoColAction< f >::UndoColAction||(||OsiSolverInterface *||solver,|
|void bande::UndoColAction< f >::undo||(||)||
Undo the operation as recorded.
This calls the method f on solver with the arguments col and val, as they were supplied to the constructor.