|
| MultilinearHandler (EnvPtr env, ProblemPtr problem) |
| Default constructor.
|
|
virtual | ~MultilinearHandler () |
| Destroy.
|
|
bool | findOriginalVariable (ConstVariablePtr rv, ConstVariablePtr &ov) const |
|
virtual void | getBranchingCandidates (RelaxationPtr rel, const DoubleVector &x, ModVector &mods, BrVarCandSet &cands, BrCandVector &gencands, bool &is_inf) |
|
bool | isFeasible (ConstSolutionPtr, RelaxationPtr, bool &should_prune, double &inf_meas) |
|
void | relax (RelaxationPtr relaxation, bool &isInfeasible) |
|
void | relaxInitFull (RelaxationPtr, bool *) |
|
void | relaxInitInc (RelaxationPtr, bool *) |
|
void | relaxNodeFull (NodePtr, RelaxationPtr, bool *) |
| Create a relaxation for a node, building from scratch. More...
|
|
void | relaxNodeInc (NodePtr, RelaxationPtr, bool *) |
| Create an incremental relaxation for a node. More...
|
|
void | relaxNode (NodePtr node, RelaxationPtr relaxation, bool &isInfeasible) |
|
std::map< std::vector< ConstVariablePtr >, ConstVariablePtr > | getRevMlterms () |
|
std::map< ConstVariablePtr, std::vector< ConstVariablePtr > > | getMlterms () |
|
std::map< ConstVariablePtr, UInt > | getMaxPow () |
|
std::map< ConstVariablePtr, ConstVariablePair > | getBlterms () |
|
std::map< ConstVariablePair, ConstVariablePtr > | getRevBlterms () |
|
std::map< VarIntMap, ConstVariablePtr > | getMonomialterms () |
|
std::map< ConstVariablePtr, ConstVariablePair > | getSqterms () |
|
std::map< ConstVariablePair, ConstVariablePtr > | getRevSqterms () |
|
std::vector< std::vector< ConstVariablePtr > > | getGroups () |
|
std::vector< std::vector< ConstVariablePtr > > | getAllLambdas () |
|
std::map< ConstVariablePtr, ConstVariablePtr > | getOriginalVariablesMap () |
|
std::map< ConstVariablePtr, ConstVariablePtr > | getRevOriginalVariablesMap () |
|
std::map< ConstVariablePtr, std::vector< ConstVariablePtr > > | getNewCopyVariables () |
|
std::map< VarIntMap, ConstVariablePtr > | getMonomialTerms () |
|
std::map< ConstVariablePair, ConstVariablePtr > | getRevBilinearTerms () |
|
void | separate (ConstSolutionPtr, NodePtr, RelaxationPtr, CutManager *, SolutionPoolPtr, bool *, SeparationStatus *) |
| Can not return any cuts for this case.
|
|
virtual ModificationPtr | getBrMod (BrCandPtr, DoubleVector &, RelaxationPtr, BranchDirection) |
| Get the modifcation that creates a given (up or down) branch. More...
|
|
virtual Branches | getBranches (BrCandPtr cand, DoubleVector &x, RelaxationPtr rel, SolutionPoolPtr s_pool) |
| Return branches for branching. More...
|
|
virtual SolveStatus | presolve (PreModQ *, bool *changed, Solution **) |
| Initial presolve. More...
|
|
virtual bool | presolveNode (RelaxationPtr, NodePtr, SolutionPoolPtr, ModVector &, ModVector &) |
| Presolve the problem and its relaxation at a node. More...
|
|
std::string | getName () const |
| Return the name of the handler. More...
|
|
Public Member Functions inherited from Minotaur::Handler |
| Handler () |
| Default constructor.
|
|
virtual | ~Handler () |
| Destroy.
|
|
virtual void | addConstraint (ConstraintPtr newcon) |
| Add constraint to be handled by this handler. More...
|
|
virtual ConstraintVector::const_iterator | consBegin () const |
|
virtual ConstraintVector::const_iterator | consEnd () const |
|
virtual int | fixNodeErr (RelaxationPtr, ConstSolutionPtr, SolutionPoolPtr, bool &) |
|
virtual Branches | getBranches (BrCandPtr cand, DoubleVector &x, RelaxationPtr rel, SolutionPoolPtr s_pool)=0 |
| Return branches for branching. More...
|
|
virtual void | getBranchingCandidates (RelaxationPtr rel, const DoubleVector &x, ModVector &mods, BrVarCandSet &cands, BrCandVector &gencands, bool &is_inf)=0 |
| find branching candidates. More...
|
|
virtual ModificationPtr | getBrMod (BrCandPtr cand, DoubleVector &x, RelaxationPtr rel, BranchDirection dir)=0 |
| Get the modifcation that creates a given (up or down) branch. More...
|
|
virtual std::string | getName () const =0 |
| Return the name of the handler. More...
|
|
bool | getStrongerMods (RelaxationPtr rel, NodePtr node, SolutionPoolPtr s_pool, ModVector &p_mods, ModVector &r_mods) |
| do node presolve to get mods for stronger branching All params are presolveNode params.
|
|
virtual bool | isFeasible (ConstSolutionPtr sol, RelaxationPtr rel, bool &should_prune, double &inf_meas)=0 |
| Check if a solution is feasible. More...
|
|
virtual bool | isNeeded () |
| Return true if this handler is needed for the problem. More...
|
|
virtual SolveStatus | presolve (PreModQ *pre_mods, bool *changed, Solution **sol)=0 |
| Initial presolve. More...
|
|
virtual bool | presolveNode (RelaxationPtr rel, NodePtr node, SolutionPoolPtr s_pool, ModVector &p_mods, ModVector &r_mods)=0 |
| Presolve the problem and its relaxation at a node. More...
|
|
virtual bool | postSolveRootNode (RelaxationPtr, SolutionPoolPtr, ConstSolutionPtr, ModVector &, ModVector &) |
| At the root node post solve the problem and its relaxation. LP based bound tightening (OBBT) is employed here after filtering variables for which no OBBT is required. More...
|
|
virtual void | relaxInitFull (RelaxationPtr rel, SolutionPool *sp, bool *is_inf)=0 |
| Create root relaxation if doing full node relaxations. More...
|
|
virtual void | relaxInitInc (RelaxationPtr rel, SolutionPool *sp, bool *is_inf)=0 |
| Create root relaxation if doing incremental node relaxations. More...
|
|
virtual void | relaxNodeFull (NodePtr node, RelaxationPtr rel, bool *is_inf)=0 |
| Create a relaxation for a node, building from scratch. More...
|
|
virtual void | relaxNodeInc (NodePtr node, RelaxationPtr rel, bool *is_inf)=0 |
| Create an incremental relaxation for a node. More...
|
|
virtual void | removeCuts (RelaxationPtr, ConstSolutionPtr) |
|
virtual void | separate (ConstSolutionPtr sol, NodePtr node, RelaxationPtr rel, CutManager *cutman, SolutionPoolPtr s_pool, ModVector &p_mods, ModVector &r_mods, bool *sol_found, SeparationStatus *status)=0 |
| add cuts to separate a given point. More...
|
|
virtual void | setModFlags (bool mod_prob, bool mod_rel) |
| Tell the handler whether the problem will be modified or the relaxation will be modified or both. These modifications will be saved in the tree as well. More...
|
|
virtual void | simplePresolve (ProblemPtr, SolutionPoolPtr, ModVector &, SolveStatus &status) |
|
void | undoStrongerMods (ProblemPtr p, RelaxationPtr rel, ModVector &p_mods, ModVector &r_mods) |
| Undo Modifications made during stronger branching. More...
|
|
virtual void | writeStats (std::ostream &) const |
| Write statistics to ostream out. More...
|
|
A MultilinearHandler handles terms like
.