Minotaur 0.4.1
Docs for developers
|
#include <LinBil.h>
Public Member Functions | |
LinBil (VariablePtr y, VariablePtr x0, VariablePtr x1, ConstraintPtr con) | |
Default constructor. | |
~LinBil () | |
Destroy. | |
ConstraintPtr | getC0 () |
Get the first out of the four constraints. | |
ConstraintPtr | getC1 () |
Get the second out of the four constraints. | |
ConstraintPtr | getC2 () |
Get the third out of the four constraints. | |
ConstraintPtr | getC3 () |
Get the fourth out of the four constraints. | |
ConstraintPtr | getQCon () |
Get the quadratic constraint. | |
VariablePtr | getY () |
Get the auxiliary variable. | |
VariablePtr | getX0 () |
Get ![]() | |
VariablePtr | getX1 () |
Get ![]() | |
VariablePtr | getOtherX (ConstVariablePtr x) const |
Get the variable other than x, in the product. | |
bool | isViolated (const double *x, double &vio) const |
Check if a bilinear constraint is violated at the current point x. | |
bool | isViolated (const double x0val, const double x1val, const double y0val) const |
Check if a bilinear constraint is violated for the given values of ![]() | |
void | setCons (ConstraintPtr c0, ConstraintPtr c1, ConstraintPtr c2, ConstraintPtr c3) |
A LinBil object stores some information about linear-relaxation inequalities for the bilinear constraints of the form