PandA-2024.02
Public Member Functions | Private Member Functions
CbcBranchUserDecision Class Reference

Branching decision user class. More...

#include <CbcBranchUser.hpp>

Inheritance diagram for CbcBranchUserDecision:
Inheritance graph
[legend]
Collaboration diagram for CbcBranchUserDecision:
Collaboration graph
[legend]

Public Member Functions

 CbcBranchUserDecision ()
 
 CbcBranchUserDecision (const CbcBranchUserDecision &)
 
virtual ~CbcBranchUserDecision ()
 
virtual CbcBranchDecision * clone () const
 Clone. More...
 
virtual void initialize (CbcModel *model)
 Initialize i.e. before start of choosing at a node. More...
 
virtual int betterBranch (CbcBranchingObject *thisOne, CbcBranchingObject *bestSoFar, double changeUp, int numberInfeasibilitiesUp, double changeDown, int numberInfeasibilitiesDown)
 Returns nonzero if branching on first object is "better" than on second (if second NULL first wins). More...
 
virtual int bestBranch (CbcBranchingObject **objects, int numberObjects, int numberUnsatisfied, double *changeUp, int *numberInfeasibilitiesUp, double *changeDown, int *numberInfeasibilitiesDown, double objectiveValue)
 Compare N branching objects. More...
 

Private Member Functions

CbcBranchUserDecisionoperator= (const CbcBranchUserDecision &rhs)
 Illegal Assignment operator. More...
 

Detailed Description

Branching decision user class.

Definition at line 11 of file CbcBranchUser.hpp.

Constructor & Destructor Documentation

◆ CbcBranchUserDecision() [1/2]

CbcBranchUserDecision::CbcBranchUserDecision ( )

◆ CbcBranchUserDecision() [2/2]

CbcBranchUserDecision::CbcBranchUserDecision ( const CbcBranchUserDecision )

◆ ~CbcBranchUserDecision()

virtual CbcBranchUserDecision::~CbcBranchUserDecision ( )
virtual

Member Function Documentation

◆ bestBranch()

virtual int CbcBranchUserDecision::bestBranch ( CbcBranchingObject **  objects,
int  numberObjects,
int  numberUnsatisfied,
double *  changeUp,
int *  numberInfeasibilitiesUp,
double *  changeDown,
int *  numberInfeasibilitiesDown,
double  objectiveValue 
)
virtual

Compare N branching objects.

Return index of best and sets way of branching in chosen object.

This routine is used only after strong branching. This is reccommended version as it can be more sophisticated

◆ betterBranch()

virtual int CbcBranchUserDecision::betterBranch ( CbcBranchingObject *  thisOne,
CbcBranchingObject *  bestSoFar,
double  changeUp,
int  numberInfeasibilitiesUp,
double  changeDown,
int  numberInfeasibilitiesDown 
)
virtual

Returns nonzero if branching on first object is "better" than on second (if second NULL first wins).

This is only used after strong branching. The initial selection is done by infeasibility() for each CbcObject return code +1 for up branch preferred, -1 for down

◆ clone()

virtual CbcBranchDecision* CbcBranchUserDecision::clone ( ) const
virtual

Clone.

◆ initialize()

virtual void CbcBranchUserDecision::initialize ( CbcModel *  model)
virtual

Initialize i.e. before start of choosing at a node.

◆ operator=()

CbcBranchUserDecision& CbcBranchUserDecision::operator= ( const CbcBranchUserDecision rhs)
private

Illegal Assignment operator.


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

Generated on Mon Feb 12 2024 13:03:47 for PandA-2024.02 by doxygen 1.8.13