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