32 assert(base.
nRows() > 0);
33 assert(base.
nCols() > 0);
40 const Real* lhs = base.
lhs().get_const_ptr();
41 const Real* rhs = base.
rhs().get_const_ptr();
42 const Real* up = base.
upper().get_const_ptr();
43 const Real* low = base.
lower().get_const_ptr();
45 for(i = base.
nRows(); --i >= 0;)
55 for(count = 0;; count++)
59 for(i = base.
nCols(); --i >= 0;)
74 for(i = base.
nRows(); --i >= 0;)
const VectorBase< R > & rhs() const
Returns right hand side vector.
void reDim(int newdim, const bool setZero=true)
Resets DVectorBase's dimension to newdim.
const VectorBase< R > & upper() const
Returns upper bound vector.
Dense vector for linear algebra.
int nRows() const
Returns number of rows in LP.
R * get_ptr()
Conversion to C-style pointer.
void setupWeights(SPxSolver &base)
sets up variable weights.
void setupWeights(SPxSolver &base)
sets up variable weights.
const VectorBase< R > & lhs() const
Returns left hand side vector.
Simple heuristic SPxStarter.
Debugging, floating point type and parameter definitions.
Sequential object-oriented SimPlex.SPxSolver is an LP solver class using the revised Simplex algorith...
VectorBase< R > & multAdd(const S &x, const VectorBase< T > &vec)
Addition of scaled vector.
Everything should be within this namespace.
const SVectorBase< R > & rowVector(int i) const
Gets row vector of row i.
void primal(const Vector &v)
sets up primal solution vector.
void clear()
Set vector to 0.
int nCols() const
Returns number of columns in LP.
const VectorBase< R > & lower() const
Returns (internal and possibly scaled) lower bound vector.