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