97 : left(0), right(R(
infinity)), object(0), vec(defDim)
118 : left(row.left), right(row.right), object(row.object), vec(row.vec)
126 : left(row.left), right(row.right), object(row.object), vec(row.vec)
133 : left(p_lhs), right(p_rhs), object(p_obj), vec(p_rowVector)
140 : object(p_obj), vec(p_rowVector)
213 SPX_MSG_ERROR(std::cerr <<
"ELPROW01 RANGE not supported in LPRow::setType()" 290 #ifdef ENABLE_CONSISTENCY_CHECKS 301 #endif // _LPROWBASE_H_ Exception class for things that should NEVER happen.This class is derived from the SoPlex exception b...
LPRowBase(const LPRowBase< R > &row)
Copy constructor.
LPRowBase(const R &p_lhs, const SVectorBase< R > &p_rowVector, const R &p_rhs, const R &p_obj=0)
Constructs LPRowBase with the given left-hand side, right-hand side and rowVector.
const SVectorBase< R > & rowVector() const
Constraint row vector.
R rhs() const
Right-hand side value.
R value() const
Right hand side value of (in)equality.
Dynamic sparse vectors.Class DSVectorBase implements dynamic sparse vectors, i.e. SVectorBases with a...
#define SPX_MSG_ERROR(x)
Prints out message x if the verbosity level is at least SPxOut::ERROR.
void setType(Type p_type)
Sets type of (in)equality.
DSVectorBase< R > vec
the row vector
LPRowBase< R > & operator=(const LPRowBase< R > &row)
Assignment operator.
bool isConsistent() const
Checks consistency.
Type type() const
Gets type of row.
R lhs() const
Left-hand side value.
bool isConsistent() const
Consistency check.
void setObj(const R &p_obj)
Sets objective coefficient value.
SOPLEX_THREADLOCAL const Real infinity
LPRowBase(const LPRowBase< S > &row)
Copy constructor.
(In)equality for LPs.Class LPRowBase provides constraints for linear programs in the form where a is...
Debugging, floating point type and parameter definitions.
void setLhs(const R &p_left)
Sets left-hand side value.
Collection of dense, sparse, and semi-sparse vectors.
Everything should be within this namespace.
Type
(In)Equality type of an LP row.
R obj() const
Objective coefficient value.
void setRowVector(const DSVectorBase< R > &p_vec)
access constraint row vector.
R right
right-hand side of the constraint
R object
objective coefficient of corresponding slack variable s = vec times primal
R left
left-hand side of the constraint
Sparse vectors.Class SVectorBase provides packed sparse vectors. Such are a sparse vectors...
LPRowBase(int defDim=0)
Constructs LPRowBase with a vector ready to hold defDim nonzeros.
LPRowBase(const SVectorBase< R > &p_rowVector, Type p_type, const R &p_value, const R &p_obj=0)
Constructs LPRowBase from passed rowVector, type and value.
void setRhs(const R &p_right)
Sets right-hand side value.