Couenne 0.5.8
CouenneComplBranchingObject.hpp
Go to the documentation of this file.
1/* $Id: CouenneComplBranchingObject.hpp 490 2011-01-14 16:07:12Z pbelotti $
2 *
3 * Name: CouenneComplBranchingObject.hpp
4 * Authors: Pietro Belotti, Lehigh University
5 * Purpose: Branching object for complementarity constraints
6 *
7 * (C) Carnegie-Mellon University, 2008-09.
8 * This file is licensed under the Eclipse Public License (EPL)
9 */
10
11#ifndef COUENNECOMPLBRANCHINGOBJECT_HPP
12#define COUENNECOMPLBRANCHINGOBJECT_HPP
13
15
16namespace Couenne {
17
25
26public:
27
31 JnlstPtr jnlst,
34 expression *var,
35 expression *var2,
36 int way,
37 CouNumber brpoint,
38 bool doFBBT,
39 bool doConvCuts,
40 int sign);
41
46 sign_ (src.sign_) {}
47
49 virtual OsiBranchingObject *clone () const
50 {return new CouenneComplBranchingObject (*this);}
51
57 virtual double branch (OsiSolverInterface * solver = NULL);
58
59protected:
60
64
68 int sign_;
69};
70
71}
72
73#endif
"Spatial" branching object for complementarity constraints.
virtual OsiBranchingObject * clone() const
cloning method
CouenneComplBranchingObject(OsiSolverInterface *solver, const OsiObject *originalObject, JnlstPtr jnlst, CouenneCutGenerator *c, CouenneProblem *p, expression *var, expression *var2, int way, CouNumber brpoint, bool doFBBT, bool doConvCuts, int sign)
Constructor.
int sign_
-1 if object is for xi * xj <= 0 +1 if object is for xi * xj <= 0 0 if object is for xi * xj = 0 (cla...
virtual double branch(OsiSolverInterface *solver=NULL)
Execute the actions required to branch, as specified by the current state of the branching object,...
expression * variable2_
use CouenneBranchingObject::variable_ as the first variable to set to 0, and this one as the second
CouenneComplBranchingObject(const CouenneComplBranchingObject &src)
Copy constructor.
Cut Generator for linear convexifications.
Class for MINLP problems with symbolic information.
Expression base class.
const OsiObject * originalObject() const
general include file for different compilers
double CouNumber
main number type in Couenne