Class for communication between CutPool and LinearRelax. More...
#include <cuts.h>
Public Member Functions | |
CutInfo (list< Cut< SimpleCut > >::iterator &it, int bnr) | |
CutInfo (list< Cut< LinearizationCut > >::iterator &it, int bnr) | |
CutInfo (list< Cut< IntervalGradientCut > >::iterator &it_intgradcuts_, int bnr) | |
pair< bool, bool > | set_inactivetime (Pointer< MinlpNode > node, int limit) |
Public Attributes | |
list< Cut< SimpleCut > >::iterator | it_simplecuts |
A pointer to the cut, if it's a simple cut. | |
list< Cut< IntervalGradientCut > >::iterator | it_intgradcuts |
A pointer to the cut, if it's a IntervalGradientCut. | |
list< Cut< LinearizationCut > >::iterator | it_linearizationcuts |
A pointer to the cut, if it's a LinearizationCut. | |
CutType | type |
The kind of cut. | |
int | block_nr |
bool | inactive |
Set by LinearRelax, if the cut was inactive. | |
bool | removed |
Set by CutPool, if the cut was removed or the node was removed for the cut. | |
list< const MIPSolver::RowItem * > | rowitems |
Set by LinearRelaxSolver, to remember the constraints in the MIPSolver, which were added for this cut. | |
list< const MIPSolver::ColItem * > | colitems |
Set by LinearRelaxSolver, to remember the variables in the MIPSolver, which were added for this cut. | |
Friends | |
class | CutPool |
Class for communication between CutPool and LinearRelax.
Adding a cut, returnes a CutInfo, so the linear relaxation can remember a cut, which is added to it. Solving the linear relaxation sets the inactive flag. This is checked by update_nodeinfo, which sets the removed flag. This flag can be checked by LinearRelax again.
Definition at line 265 of file cuts.h.
CutPool::CutInfo::CutInfo | ( | list< Cut< LinearizationCut > >::iterator & | it, | |
int | bnr | |||
) | [inline] |
CutPool::CutInfo::CutInfo | ( | list< Cut< IntervalGradientCut > >::iterator & | it_intgradcuts_, | |
int | bnr | |||
) | [inline] |
list<Cut<SimpleCut> >::iterator CutPool::CutInfo::it_simplecuts |
list<Cut<IntervalGradientCut> >::iterator CutPool::CutInfo::it_intgradcuts |
A pointer to the cut, if it's a IntervalGradientCut.
list<Cut<LinearizationCut> >::iterator CutPool::CutInfo::it_linearizationcuts |
A pointer to the cut, if it's a LinearizationCut.
Set by LinearRelax, if the cut was inactive.
list<const MIPSolver::RowItem*> CutPool::CutInfo::rowitems |
Set by LinearRelaxSolver, to remember the constraints in the MIPSolver, which were added for this cut.
list<const MIPSolver::ColItem*> CutPool::CutInfo::colitems |
Set by LinearRelaxSolver, to remember the variables in the MIPSolver, which were added for this cut.