#include <lemon/lp_base.h>
<=
, ==
and >=
are defined between expressions, or even between constraints whenever it makes sense. Therefore if e
and f
are linear expressions and s
and t
are numbers, then the followings are valid expressions and thus they can be used directly e.g. in addRow() whenever it makes sense. e<=s e<=f e==f s<=e<=t e>=t
x[1]<=x[2]<=5
) will compile, but will throw a LogicError exception.
Value& lowerBound | ( | ) | [inline] |
Value& upperBound | ( | ) | [inline] |
LpSolverBase::Constr operator<= | ( | const LpSolverBase::Value & | n, | |
const LpSolverBase::Constr & | c | |||
) | [related] |
LpSolverBase::Constr operator<= | ( | const LpSolverBase::Constr & | c, | |
const LpSolverBase::Value & | n | |||
) | [related] |
LpSolverBase::Constr operator>= | ( | const LpSolverBase::Value & | n, | |
const LpSolverBase::Constr & | c | |||
) | [related] |
LpSolverBase::Constr operator>= | ( | const LpSolverBase::Constr & | c, | |
const LpSolverBase::Value & | n | |||
) | [related] |