Cbc 2.10.13
Loading...
Searching...
No Matches
CbcSimpleIntegerFixed Class Reference

Define a single integer class where branching is forced until fixed. More...

#include <CbcBranchUser.hpp>

Inheritance diagram for CbcSimpleIntegerFixed:
Collaboration diagram for CbcSimpleIntegerFixed:

Public Member Functions

 CbcSimpleIntegerFixed ()
 CbcSimpleIntegerFixed (CbcModel *model, int iColumn, double breakEven=0.5)
 CbcSimpleIntegerFixed (const CbcSimpleInteger &simple)
 CbcSimpleIntegerFixed (const CbcSimpleIntegerFixed &)
virtual CbcObject * clone () const
 Clone.
CbcSimpleIntegerFixedoperator= (const CbcSimpleIntegerFixed &rhs)
 ~CbcSimpleIntegerFixed ()
virtual double infeasibility (int &preferredWay) const
 Infeasibility - large is 0.5.
virtual CbcBranchingObjectcreateBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
 Creates a branching object.
Public Member Functions inherited from CbcSimpleInteger
 CbcSimpleInteger ()
 CbcSimpleInteger (CbcModel *model, int iColumn, double breakEven=0.5)
 CbcSimpleInteger (CbcModel *model, const OsiSimpleInteger *object)
 CbcSimpleInteger (const CbcSimpleInteger &)
CbcSimpleIntegeroperator= (const CbcSimpleInteger &rhs)
virtual ~CbcSimpleInteger ()
*Construct an OsiSimpleInteger object OsiSimpleInteger * osiObject () const
*Infeasibility large virtual is double infeasibility (const OsiBranchingInformation *info, int &preferredWay) const
virtual double feasibleRegion (OsiSolverInterface *solver, const OsiBranchingInformation *info) const
 Set bounds to fix the variable at the current (integer) value.
virtual CbcBranchingObjectcreateCbcBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
 Create a branching object and indicate which way to branch first.
*Fills in a created branching object void fillCreateBranch (CbcIntegerBranchingObject *branching, const OsiBranchingInformation *info, int way)
virtual OsiSolverBranch * solverBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info) const
 Create an OsiSolverBranch object.
virtual void feasibleRegion ()
 Set bounds to fix the variable at the current (integer) value.
virtual int columnNumber () const
 Column number if single column object -1 otherwise, so returns >= 0 Used by heuristics.
*Set column number void setColumnNumber (int value)
virtual void resetBounds (const OsiSolverInterface *solver)
 Reset variable bounds to their original values.
virtual void resetSequenceEtc (int numberColumns, const int *originalColumns)
 Change column numbers after preprocessing.
*Original bounds double originalLowerBound () const
void setOriginalLowerBound (double value)
double originalUpperBound () const
void setOriginalUpperBound (double value)

Additional Inherited Members

Public Attributes inherited from CbcSimpleInteger
*Breakeven e g
*Original upper bound double originalUpper_
*Breakeven i e
*Column number in model int columnNumber_
*If down always chosen first
*If down always chosen up always
*If down always chosen up normal int preferredWay_

Detailed Description

Define a single integer class where branching is forced until fixed.

Definition at line 62 of file CbcBranchUser.hpp.

Constructor & Destructor Documentation

◆ CbcSimpleIntegerFixed() [1/4]

CbcSimpleIntegerFixed::CbcSimpleIntegerFixed ( )

◆ CbcSimpleIntegerFixed() [2/4]

CbcSimpleIntegerFixed::CbcSimpleIntegerFixed ( CbcModel * model,
int iColumn,
double breakEven = 0.5 )

◆ CbcSimpleIntegerFixed() [3/4]

CbcSimpleIntegerFixed::CbcSimpleIntegerFixed ( const CbcSimpleInteger & simple)

◆ CbcSimpleIntegerFixed() [4/4]

CbcSimpleIntegerFixed::CbcSimpleIntegerFixed ( const CbcSimpleIntegerFixed & )

◆ ~CbcSimpleIntegerFixed()

CbcSimpleIntegerFixed::~CbcSimpleIntegerFixed ( )

Member Function Documentation

◆ clone()

virtual CbcObject * CbcSimpleIntegerFixed::clone ( ) const
virtual

Clone.

Reimplemented from CbcSimpleInteger.

◆ operator=()

CbcSimpleIntegerFixed & CbcSimpleIntegerFixed::operator= ( const CbcSimpleIntegerFixed & rhs)

◆ infeasibility()

virtual double CbcSimpleIntegerFixed::infeasibility ( int & preferredWay) const
virtual

Infeasibility - large is 0.5.

◆ createBranch()

virtual CbcBranchingObject * CbcSimpleIntegerFixed::createBranch ( OsiSolverInterface * solver,
const OsiBranchingInformation * info,
int way )
virtual

Creates a branching object.

The preferred direction is set by way, -1 for down, +1 for up. Create a branching object and indicate which way to branch first.

The branching object has to know how to create branches (fix variables, etc.)


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