34 for(
int row = 0; row <
nRows(); ++row)
40 for(
int col = 0; col < rowvec.
size(); ++col)
41 val += rowvec.
value(col) * solu[rowvec.
index(col)];
49 else if(val >
rhs(row))
69 for(
int col = 0; col <
nCols(); ++col)
75 if(solu[col] <
lower(col))
77 else if(solu[col] >
upper(col))
98 for(
int row = 0; row <
nRows(); ++row)
104 for(
int col = 0; col < rowvec.
size(); ++col)
105 val += rowvec.
value(col) * solu[rowvec.
index(col)];
131 for(i = 0; i <
dim(); ++i)
144 for(i = 0; i <
coDim(); ++i)
161 for(i = 0; i <
dim(); ++i)
const VectorBase< R > & rhs() const
Returns right hand side vector.
Rational spxAbs(const Rational &r)
Absolute.
const VectorBase< R > & upper() const
Returns upper bound vector.
const Vector & fTest() const
Violations of fVec.
virtual Status getPrimal(Vector &vector) const
get solution vector for primal variables.
virtual void qualRedCostViolation(Real &maxviol, Real &sumviol) const
get violation of optimality criterion.
int size() const
Number of used indices.
virtual void qualBoundViolation(Real &maxviol, Real &sumviol) const
get violations of bounds.
int dim() const
dimension of basis matrix.
R & value(int n)
Reference to value of n 'th nonzero.
int nRows() const
Returns number of rows in LP.
int & index(int n)
Reference to index of n 'th nonzero.
virtual void qualSlackViolation(Real &maxviol, Real &sumviol) const
get the residuum |Ax-b|.
const VectorBase< R > & lhs() const
Returns left hand side vector.
const Vector & test() const
Violations of pVec.
Real epsilon() const
values are considered to be 0.
Debugging, floating point type and parameter definitions.
Everything should be within this namespace.
const SVectorBase< R > & rowVector(int i) const
Gets row vector of row i.
const Vector & coTest() const
violations of coPvec.
Type type() const
return current Type.
int coDim() const
codimension.
int nCols() const
Returns number of columns in LP.
virtual void qualConstraintViolation(Real &maxviol, Real &sumviol) const
get violation of constraints.
const VectorBase< R > & lower() const
Returns (internal and possibly scaled) lower bound vector.
virtual Status getSlacks(Vector &vector) const
get vector of slack variables.