46 const int *which,
const double *
weights,
int identifier,
62 virtual double infeasibility(
const OsiBranchingInformation *info,
90 OsiSOS *
osiObject(
const OsiSolverInterface *solver)
const;
228 virtual void fix(OsiSolverInterface *solver,
229 double *lower,
double *upper,
230 int branchState)
const;
244 virtual void print();
virtual double infeasibility(const OsiBranchingInformation *info, int &preferredWay) const
Infeasibility - large is 0.5.
Branching object for Special ordered sets.
Branching object for Special Ordered Sets of type 1 and 2.
double shadowEstimateDown_
Current pseudo-shadow price estimate down.
int sosType() const
SOS type.
double * mutableWeights() const
Array of weights.
virtual void feasibleRegion()=0
For the variable(s) referenced by the object, look at the current solution and set bounds to match th...
virtual void feasibleRegion()
This looks at solution and sets bounds to contain solution.
virtual ~CbcSOSBranchingObject()
virtual void fix(OsiSolverInterface *solver, double *lower, double *upper, int branchState) const
Update bounds in solver as in 'branch' and update given bounds.
OsiSOS * osiObject(const OsiSolverInterface *solver) const
Construct an OsiSOS object.
virtual CbcRangeCompare compareBranchingObject(const CbcBranchingObject *brObj, const bool replaceIfOverlap=false)
Compare the this with brObj.
bool integerValued_
Whether integer valued.
int numberMembers() const
Number of members.
virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
Creates a branching object.
int numberTimesDown() const
Down number times.
virtual void print()
Print something about branch - only if log level high.
virtual int compareOriginalObject(const CbcBranchingObject *brObj) const
Compare the original object of this with the original object of brObj.
virtual CbcObject * clone() const
Clone.
int firstNonzero_
The following two members describe the range in the members_ of the original object that whose upper ...
CbcModel * model() const
Return model.
CbcSOS & operator=(const CbcSOS &rhs)
virtual void redoSequenceEtc(CbcModel *model, int numberColumns, const int *originalColumns)
Redoes data when sequence numbers change.
virtual CbcBranchingObject * clone() const
Clone.
int numberMembers_
Number of members.
double shadowEstimateUp_
Current pseudo-shadow price estimate up.
int way() const
Get the state of the branching object.
virtual void updateInformation(const CbcObjectUpdateData &data)
Update object by CbcObjectUpdateData.
CbcSOSBranchingObject & operator=(const CbcSOSBranchingObject &rhs)
Abstract branching object base class Now just difference with OsiBranchingObject. ...
void setIntegerValued(bool yesNo)
Set whether set is integer valued or not.
virtual void previousBranch()
Reset every information so that the branching object appears to point to the previous child...
void computeNonzeroRange()
Fill out the firstNonzero_ and lastNonzero_ data members.
Information required while the node is live.
int numberTimesUp() const
Up number times.
virtual double branch()
Does next branch and updates state.
CbcModel * model() const
Return model.
double downDynamicPseudoRatio_
Down pseudo ratio.
virtual double branch()=0
Execute the actions required to branch, as specified by the current state of the branching object...
int * mutableMembers() const
Members (indices in range 0 ... numberColumns-1)
virtual void previousBranch()
Reset every information so that the branching object appears to point to the previous child...
virtual void print() const
Print something about branch - only if log level high.
double upDynamicPseudoRatio_
Up pseudo ratio.
int numberTimesUp_
Number of times we have gone up.
virtual bool canDoHeuristics() const
Return true if object can take part in normal heuristics.
double separator_
separator
virtual CbcBranchObjType type() const
Return the type (an integer identifier) of this.
virtual OsiSolverBranch * solverBranch() const
Create an OsiSolverBranch object.
bool oddValues_
Whether odd values e.g. negative.
virtual OsiSolverBranch * solverBranch() const
Create an OsiSolverBranch object.
void setNumberMembers(int n)
Set number of members.
const int * members() const
Members (indices in range 0 ... numberColumns-1)
int numberTimesDown_
Number of times we have gone down.
Simple Branch and bound class.
int preferredWay() const
If -1 down always chosen first, +1 up always, 0 normal.
double * weights_
Weights for individual members.
const double * weights() const
Array of weights.
virtual CbcObjectUpdateData createUpdateInformation(const OsiSolverInterface *solver, const CbcNode *node, const CbcBranchingObject *branchingObject)
Pass in information on branch just done and create CbcObjectUpdateData instance.