Minotaur 0.4.1
Docs for developers
Public Member Functions | List of all members
Minotaur::LinBil Class Reference

#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 $x_0$.
 
VariablePtr getX1 ()
 Get $x_1$.
 
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 $x_0, x_1, y$.
 
void setCons (ConstraintPtr c0, ConstraintPtr c1, ConstraintPtr c2, ConstraintPtr c3)
 

Detailed Description

A LinBil object stores some information about linear-relaxation inequalities for the bilinear constraints of the form $x_0x_1 = y$


The documentation for this class was generated from the following files:

Minotaur source code documented by Doxygen 1.9.4 on Thu Apr 24 2025