Bonmin 1.8.9
Loading...
Searching...
No Matches
BonRandomChoice Class Reference

#include <BonRandomChoice.hpp>

Inheritance diagram for BonRandomChoice:
Collaboration diagram for BonRandomChoice:

Public Member Functions

 BonRandomChoice ()
 Default constructor.
 BonRandomChoice (const OsiSolverInterface *solver)
 BonRandomChoice (const BonRandomChoice &other)
BonRandomChoiceoperator= (const BonRandomChoice &rhs)
virtual OsiChooseVariableclone () const
virtual ~BonRandomChoice ()
 Destructor.
virtual int setupList (OsiBranchingInformation *info, bool initialize)
 Own version of setupList since Osi version is broken and what we want to do here is anyway much simpler.
virtual int chooseVariable (OsiSolverInterface *solver, OsiBranchingInformation *info, bool fixVariables)
Public Member Functions inherited from OsiChooseVariable
 OsiChooseVariable ()
 OsiChooseVariable (const OsiSolverInterface *solver)
 OsiChooseVariable (const OsiChooseVariable &)
OsiChooseVariableoperator= (const OsiChooseVariable &rhs)
virtual ~OsiChooseVariable ()
virtual bool feasibleSolution (const OsiBranchingInformation *info, const double *solution, int numberObjects, const OsiObject **objects)
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)

Additional Inherited Members

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

Definition at line 17 of file BonRandomChoice.hpp.

Constructor & Destructor Documentation

◆ BonRandomChoice() [1/3]

BonRandomChoice::BonRandomChoice ( )
inline

Default constructor.

Definition at line 20 of file BonRandomChoice.hpp.

◆ BonRandomChoice() [2/3]

BonRandomChoice::BonRandomChoice ( const OsiSolverInterface * solver)
inline

Definition at line 24 of file BonRandomChoice.hpp.

◆ BonRandomChoice() [3/3]

BonRandomChoice::BonRandomChoice ( const BonRandomChoice & other)
inline

Definition at line 29 of file BonRandomChoice.hpp.

◆ ~BonRandomChoice()

virtual BonRandomChoice::~BonRandomChoice ( )
inlinevirtual

Destructor.

Definition at line 45 of file BonRandomChoice.hpp.

Member Function Documentation

◆ operator=()

BonRandomChoice & BonRandomChoice::operator= ( const BonRandomChoice & rhs)
inline

Definition at line 34 of file BonRandomChoice.hpp.

◆ clone()

virtual OsiChooseVariable * BonRandomChoice::clone ( ) const
inlinevirtual

Reimplemented from OsiChooseVariable.

Definition at line 40 of file BonRandomChoice.hpp.

◆ setupList()

virtual int BonRandomChoice::setupList ( OsiBranchingInformation * info,
bool initialize )
virtual

Own version of setupList since Osi version is broken and what we want to do here is anyway much simpler.

Reimplemented from OsiChooseVariable.

◆ chooseVariable()

virtual int BonRandomChoice::chooseVariable ( OsiSolverInterface * solver,
OsiBranchingInformation * info,
bool fixVariables )
inlinevirtual

Reimplemented from OsiChooseVariable.

Definition at line 52 of file BonRandomChoice.hpp.


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