Couenne 0.5.8
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Couenne::CouenneChooseVariable Class Reference

Choose a variable for branching. More...

#include <CouenneChooseVariable.hpp>

+ Inheritance diagram for Couenne::CouenneChooseVariable:
+ Collaboration diagram for Couenne::CouenneChooseVariable:

Public Member Functions

 CouenneChooseVariable ()
 Default Constructor.
 
 CouenneChooseVariable (const OsiSolverInterface *, CouenneProblem *, JnlstPtr jnlst)
 Constructor from solver (so we can set up arrays etc)
 
 CouenneChooseVariable (const CouenneChooseVariable &)
 Copy constructor.
 
CouenneChooseVariableoperator= (const CouenneChooseVariable &)
 Assignment operator.
 
virtual OsiChooseVariableclone () const
 Clone.
 
virtual ~CouenneChooseVariable ()
 Destructor.
 
virtual int setupList (OsiBranchingInformation *, bool)
 Sets up strong list and clears all if initialize is true.
 
virtual bool feasibleSolution (const OsiBranchingInformation *info, const double *solution, int numberObjects, const OsiObject **objects)
 Returns true if solution looks feasible against given objects.
 
- Public Member Functions inherited from OsiChooseVariable
 OsiChooseVariable ()
 
 OsiChooseVariable (const OsiSolverInterface *solver)
 
 OsiChooseVariable (const OsiChooseVariable &)
 
OsiChooseVariableoperator= (const OsiChooseVariable &rhs)
 
virtual ~OsiChooseVariable ()
 
virtual int chooseVariable (OsiSolverInterface *solver, OsiBranchingInformation *info, bool fixVariables)
 
void saveSolution (const OsiSolverInterface *solver)
 
void clearGoodSolution ()
 
virtual void updateInformation (const OsiBranchingInformation *info, int branch, OsiHotInfo *hotInfo)
 
virtual void updateInformation (int whichObject, int branch, double changeInObjective, double changeInValue, int status)
 
double goodObjectiveValue () const
 
double upChange () const
 
double downChange () const
 
const double * goodSolution () const
 
int bestObjectIndex () const
 
void setBestObjectIndex (int value)
 
int bestWhichWay () const
 
void setBestWhichWay (int value)
 
int firstForcedObjectIndex () const
 
void setFirstForcedObjectIndex (int value)
 
int firstForcedWhichWay () const
 
void setFirstForcedWhichWay (int value)
 
int numberUnsatisfied () const
 
int numberStrong () const
 
void setNumberStrong (int value)
 
int numberOnList () const
 
int numberStrongDone () const
 
int numberStrongIterations () const
 
int numberStrongFixed () const
 
const int * candidates () const
 
bool trustStrongForBound () const
 
void setTrustStrongForBound (bool yesNo)
 
bool trustStrongForSolution () const
 
void setTrustStrongForSolution (bool yesNo)
 
void setSolver (const OsiSolverInterface *solver)
 
int status () const
 
void setStatus (int value)
 

Static Public Member Functions

static void registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
 Add list of options to be read from file.
 

Protected Attributes

CouenneProblemproblem_
 Pointer to the associated MINLP problem.
 
JnlstPtr jnlst_
 journalist for detailed debug information
 
- Protected Attributes inherited from OsiChooseVariable
double goodObjectiveValue_
 
double upChange_
 
double downChange_
 
double * goodSolution_
 
int * list_
 
double * useful_
 
const OsiSolverInterfacesolver_
 
int status_
 
int bestObjectIndex_
 
int bestWhichWay_
 
int firstForcedObjectIndex_
 
int firstForcedWhichWay_
 
int numberUnsatisfied_
 
int numberStrong_
 
int numberOnList_
 
int numberStrongDone_
 
int numberStrongIterations_
 
int numberStrongFixed_
 
bool trustStrongForBound_
 
bool trustStrongForSolution_
 

Detailed Description

Choose a variable for branching.

Definition at line 27 of file CouenneChooseVariable.hpp.

Constructor & Destructor Documentation

◆ CouenneChooseVariable() [1/3]

Couenne::CouenneChooseVariable::CouenneChooseVariable ( )

Default Constructor.

◆ CouenneChooseVariable() [2/3]

Couenne::CouenneChooseVariable::CouenneChooseVariable ( const OsiSolverInterface * ,
CouenneProblem * ,
JnlstPtr jnlst )

Constructor from solver (so we can set up arrays etc)

◆ CouenneChooseVariable() [3/3]

Couenne::CouenneChooseVariable::CouenneChooseVariable ( const CouenneChooseVariable & )

Copy constructor.

◆ ~CouenneChooseVariable()

virtual Couenne::CouenneChooseVariable::~CouenneChooseVariable ( )
inlinevirtual

Destructor.

Definition at line 48 of file CouenneChooseVariable.hpp.

Member Function Documentation

◆ operator=()

CouenneChooseVariable & Couenne::CouenneChooseVariable::operator= ( const CouenneChooseVariable & )

Assignment operator.

◆ clone()

virtual OsiChooseVariable * Couenne::CouenneChooseVariable::clone ( ) const
inlinevirtual

Clone.

Reimplemented from OsiChooseVariable.

Definition at line 44 of file CouenneChooseVariable.hpp.

◆ setupList()

virtual int Couenne::CouenneChooseVariable::setupList ( OsiBranchingInformation * ,
bool  )
virtual

Sets up strong list and clears all if initialize is true.

Returns number of infeasibilities. If returns -1 then has worked out node is infeasible!

Reimplemented from OsiChooseVariable.

◆ feasibleSolution()

virtual bool Couenne::CouenneChooseVariable::feasibleSolution ( const OsiBranchingInformation * info,
const double * solution,
int numberObjects,
const OsiObject ** objects )
virtual

Returns true if solution looks feasible against given objects.

Reimplemented from OsiChooseVariable.

◆ registerOptions()

static void Couenne::CouenneChooseVariable::registerOptions ( Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
static

Add list of options to be read from file.

Member Data Documentation

◆ problem_

CouenneProblem* Couenne::CouenneChooseVariable::problem_
protected

Pointer to the associated MINLP problem.

Definition at line 72 of file CouenneChooseVariable.hpp.

◆ jnlst_

JnlstPtr Couenne::CouenneChooseVariable::jnlst_
protected

journalist for detailed debug information

Definition at line 75 of file CouenneChooseVariable.hpp.


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