lpinterface
 All Classes Namespaces Files Functions Variables Enumerations Enumerator
Public Member Functions | List of all members
lpint::Variable Class Reference

Class representing a variable in the LP. More...

#include <data_objects.hpp>

Public Member Functions

 Variable ()=default
 Construct a non-negative variable.
 
 Variable (double lb, double ub)
 Construct a new Variable object. More...
 
double upper () const
 Retrieve the upper bound of this variable.
 
double lower () const
 Retrieve the lower bound of this variable.
 

Detailed Description

Class representing a variable in the LP.

This class represents a variable in the linear program, referred to as a column by some solvers. In essense, it encodes an element of the vector x in

\[ max c^T x l \leq x \leq u \]

Concretely, it simply keeps track of the lower and upper bounds of the variable.

Constructor & Destructor Documentation

lpint::Variable::Variable ( double  lb,
double  ub 
)
inline

Construct a new Variable object.

Parameters
lbLower bound of this variable.
ubUpper bound of this variable.

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