37 Real bias = 10000 * eps;
41 MSG_DEBUG( std::cout <<
"DVECST01 colWeight[]: "; )
42 for (i = base.
nCols(); i--;)
44 x =
vec[i] - base.SPxLP::lower(i);
45 y = base.SPxLP::upper(i) -
vec[i];
58 MSG_DEBUG( std::cout << std::endl << std::endl; )
60 MSG_DEBUG( std::cout <<
"DVECST02 rowWeight[]: "; )
61 for (i = base.
nRows(); i--;)
65 x = (y - base.
lhs(i));
66 y = (base.
rhs(i) - y);
92 for (i = base.
nRows(); i--;)
95 for (i = base.
nCols(); i--;)
98 for (y = len = 0, j = col.
size(); j--;)
Rational spxAbs(const Rational &r)
Absolute.
const VectorBase< R > & maxObj() const
Returns objective vector for maximization problem.
Solution vector based start basis.
const SVectorBase< R > & colVector(int i) const
Returns column vector of column i.
int size() const
Number of used indices.
R & value(int n)
Reference to value of n 'th nonzero.
DataArray< Real > rowWeight
weight value for LP rows.
virtual void setupWeights(SPxSolver &base)
sets up variable weights.
int & index(int n)
Reference to index of n 'th nonzero.
void setupWeights(SPxSolver &base)
sets up variable weights.
int nCols() const
Returns number of columns in LP.
int size() const
return nr. of elements.
DVector vec
the current (approximate) primal or dual vector
int dim() const
Dimension of vector.
Debugging, floating point type and parameter definitions.
int nRows() const
Returns number of rows in LP.
Sequential object-oriented SimPlex.SPxSolver is an LP solver class using the revised Simplex algorith...
const VectorBase< R > & lhs() const
Returns left hand side vector.
Everything should be within this namespace.
Real epsilon() const
values are considered to be 0.
enum soplex::SPxVectorST::@17 state
specifies whether to work on the primal, the dual, or not at all.
const VectorBase< R > & rhs() const
Returns right hand side vector.
const SVectorBase< R > & rowVector(int i) const
Gets row vector of row i.
DataArray< Real > colWeight
weight value for LP columns.
DataArray< bool > colUp
set primal variable to upper bound.
DataArray< bool > rowRight
set variable to rhs?.