Minotaur 0.4.1
Docs for developers
Public Member Functions | List of all members
Minotaur::ConBoundMod2 Class Reference

Modification of a both bounds on a constraint. More...

#include <ConBoundMod.h>

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

Public Member Functions

 ConBoundMod2 (ConstraintPtr con, double new_lb, double new_ub)
 Construct.
 
 ~ConBoundMod2 ()
 Destroy.
 
void applyToProblem (ProblemPtr problem)
 Apply it to the problem. More...
 
ModificationPtr fromRel (RelaxationPtr, ProblemPtr) const
 Covert a modification for a relaxation to one for its original problem. More...
 
ConstraintPtr getCon () const
 Get the constraint whose bound is changed. More...
 
double getNewLb () const
 Get new value of the bound.
 
double getNewUb () const
 Get new value of the bound.
 
ModificationPtr toRel (ProblemPtr, RelaxationPtr) const
 Covert a modification for a problem to one for its relaxation. More...
 
void undoToProblem (ProblemPtr problem)
 Restore the modification for a problem. More...
 
void write (std::ostream &) const
 Write it to 'out'. More...
 
- Public Member Functions inherited from Minotaur::Modification
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

- Protected Member Functions inherited from Minotaur::Modification
 Modification ()
 Default constructor.
 

Detailed Description

Modification of a both bounds on a constraint.

Member Function Documentation

◆ applyToProblem()

void ConBoundMod2::applyToProblem ( ProblemPtr  problem)
virtual

Apply it to the problem.

Implements Minotaur::Modification.

◆ fromRel()

ModificationPtr Minotaur::ConBoundMod2::fromRel ( RelaxationPtr  rel,
ProblemPtr  p 
) const
inlinevirtual

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.

◆ getCon()

ConstraintPtr ConBoundMod2::getCon ( ) const

Get the constraint whose bound is changed.

TO DO.

◆ toRel()

ModificationPtr Minotaur::ConBoundMod2::toRel ( ProblemPtr  p,
RelaxationPtr  rel 
) const
inlinevirtual

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 ConBoundMod2::undoToProblem ( ProblemPtr  problem)
virtual

Restore the modification for a problem.

Implements Minotaur::Modification.

◆ write()

void Minotaur::ConBoundMod2::write ( std::ostream &  out) const
inlinevirtual

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.4 on Thu Apr 24 2025