Minotaur 0.4.1
Docs for developers
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Minotaur::VarBoundMod Class Reference

Modification of a single bound on a variable. More...

#include <VarBoundMod.h>

Inheritance diagram for Minotaur::VarBoundMod:
Inheritance graph
[legend]
Collaboration diagram for Minotaur::VarBoundMod:
Collaboration graph
[legend]

Public Member Functions

 VarBoundMod (VariablePtr var, BoundType lu, double new_val)
 Construct.
 
 ~VarBoundMod ()
 Destroy.
 
ModificationPtr fromRel (RelaxationPtr, ProblemPtr) const
 Covert a modification for a relaxation to one for its original problem.
 
ModificationPtr toRel (ProblemPtr, RelaxationPtr) const
 Covert a modification for a problem to one for its relaxation.
 
VariablePtr getVar () const
 Get the variable whose bound is changed.
 
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.
 
void undoToProblem (ProblemPtr problem)
 Restore the modification for a problem.
 
void write (std::ostream &out) 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.
 

Detailed Description

Modification of a single bound on a variable.

Member Function Documentation

◆ applyToProblem()

void VarBoundMod::applyToProblem ( ProblemPtr  problem)
virtual

Apply it to the problem.

Implements Minotaur::Modification.

◆ fromRel()

ModificationPtr VarBoundMod::fromRel ( RelaxationPtr  rel,
ProblemPtr  p 
) const
virtual

Covert a modification for a relaxation to one for its original problem.

Parameters
[in]relRelaxation for which this mod is applicable.
[in]pProblem for which the new mod will be applicable.
Returns
Modification applicable to p

Implements Minotaur::Modification.

◆ toRel()

ModificationPtr VarBoundMod::toRel ( ProblemPtr  p,
RelaxationPtr  rel 
) const
virtual

Covert a modification for a problem to one for its relaxation.

Parameters
[in]pProblem for which this mod is applicable.
[in]relRelaxation for which the new mod will be applicable.
Returns
Modification applicable to rel.

Implements Minotaur::Modification.

◆ undoToProblem()

void VarBoundMod::undoToProblem ( ProblemPtr  problem)
virtual

Restore the modification for a problem.

Implements Minotaur::Modification.

◆ write()

void VarBoundMod::write ( std::ostream &  out) const
virtual

Write it to 'out'.

Implements Minotaur::Modification.


The documentation for this class was generated from the following files:

Minotaur source code documented by Doxygen 1.9.8 on Fri Nov 7 2025