12#ifndef COUENNEOBJECT_HPP
13#define COUENNEOBJECT_HPP
31#define THRES_ZERO_SYMM 0.8
45class CouenneCutGenerator;
IPOPT_DEPRECATED typedef int Index
Cut Generator for linear convexifications.
OsiObject for auxiliary variables $w=f(x)$.
exprVar * reference_
The (auxiliary) variable this branching object refers to.
CouenneProblem * problem_
pointer to Couenne problem
CouNumber feas_tolerance_
feasibility tolerance (equal to that of CouenneProblem)
double downEstimate_
down estimate (to be used in pseudocost)
CouNumber lp_clamp() const
Defines safe interval percentage for using LP point as a branching point.
virtual double feasibleRegion(OsiSolverInterface *, const OsiBranchingInformation *) const
fix (one of the) arguments of reference auxiliary variable
virtual double downEstimate() const
Return "down" estimate (for non-convex, distance old <--> new LP point)
branch_obj
type of object (for branching variable selection)
JnlstPtr jnlst_
SmartPointer to the Journalist.
void setEstimates(const OsiBranchingInformation *info, CouNumber *infeasibility, CouNumber *brpt) const
set up/down estimates based on branching information
bool doFBBT_
shall we do Feasibility based Bound Tightening (FBBT) at branching?
enum brSelStrat strategy_
Branching point selection strategy.
CouenneObject(CouenneCutGenerator *cutgen, CouenneProblem *p, exprVar *ref, Bonmin::BabSetupBase *base, JnlstPtr jnlst)
Constructor with information for branching point selection strategy.
pseudocostMult
type of up/down estimate to return for pseudocosts
CouNumber midInterval(CouNumber x, CouNumber l, CouNumber u, const OsiBranchingInformation *info=NULL) const
returns a point "inside enough" a given interval, or x if it already is.
void setEstimate(double est, int direction)
set up/down estimate (0 for down, 1 for up).
CouenneObject(const CouenneObject &src)
Copy constructor.
virtual OsiBranchingObject * createBranch(OsiSolverInterface *, const OsiBranchingInformation *, int) const
create CouenneBranchingObject or CouenneThreeWayBranchObj based on this object
CouenneObject(exprVar *ref, Bonmin::BabSetupBase *base, JnlstPtr jnlst)
Constructor with lesser information, used for infeasibility only.
enum pseudocostMult pseudoMultType_
multiplier type for pseudocost
enum brSelStrat Strategy() const
return branching point selection strategy
virtual double intInfeasibility(double value, double lb, double ub) const
integer infeasibility: min {value - floor(value), ceil(value) - value}
CouenneCutGenerator * cutGen_
pointer to cut generator (not necessary, can be NULL)
CouNumber alpha_
Combination parameter for the mid-point branching point selection strategy.
exprVar * Reference() const
return reference auxiliary variable
virtual double infeasibility(const OsiBranchingInformation *info, int &way) const
compute infeasibility of this variable, |w - f(x)| (where w is the auxiliary variable defined as w = ...
void setParameters(Bonmin::BabSetupBase *base)
set object parameters by reading from command line
virtual CouenneObject * clone() const
Cloning method.
CouNumber lp_clamp_
Defines safe interval percentage for using LP point as a branching point.
virtual bool isCuttable() const
are we on the bad or good side of the expression?
CouNumber getBrPoint(funtriplet *ft, CouNumber x0, CouNumber l, CouNumber u, const OsiBranchingInformation *info=NULL) const
pick branching point based on current strategy
virtual double upEstimate() const
Return "up" estimate (for non-convex, distance old <--> new LP point)
double upEstimate_
up estimate (to be used in pseudocost)
CouenneObject()
empty constructor (for unused objects)
~CouenneObject()
Destructor.
virtual double checkInfeasibility(const OsiBranchingInformation *info) const
compute infeasibility of this variable, |w - f(x)|, where w is the auxiliary variable defined as w = ...
virtual int columnNumber() const
Returns the column index.
bool doConvCuts_
shall we add convexification cuts at branching?
Class for MINLP problems with symbolic information.
double infeasibility() const
general include file for different compilers
const CouNumber default_clamp
const CouNumber max_pseudocost
const double large_bound
if |branching point| > this, change it
CouNumber minMaxDelta(funtriplet *ft, CouNumber lb, CouNumber ub)
double CouNumber
main number type in Couenne
const CouNumber default_alpha
const CouNumber closeToBounds
CouNumber maxHeight(funtriplet *ft, CouNumber lb, CouNumber ub)
bool isInteger(CouNumber x)
is this number integer?