Scippy

SoPlex

Sequential object-oriented simPlex

soplex Namespace Reference

Everything should be within this namespace. More...

Classes

class  Array
 Safe arrays of arbitrary types.Class Array provides safe arrays of arbitrary type. Array elements are accessed just like ordinary C++ array elements by means of the index operator[](). Safety is provided by. More...
 
class  ClassArray
 Safe arrays of class objects.Class ClassArray provides safe arrays of general C++ objects (in contrast to data objects). The elements of an instance of ClassArray can be accessed just like ordinary C++ array elements by means of the index operator[](). Safety is provided by. More...
 
class  CLUFactor
 Implementation of sparse LU factorization.This class implements a sparse LU factorization with either FOREST-TOMLIN or ETA updates, using dynamic Markowitz pivoting. More...
 
class  CLUFactorRational
 Implementation of sparse LU factorization with Rational precision.This class implements a sparse LU factorization with either FOREST-TOMLIN or ETA updates, using dynamic Markowitz pivoting. More...
 
class  DataArray
 Safe arrays of data objects.Class DataArray provides safe arrays of Data Objects. For general C++ objects (in contrast to data objects) class Array is provided which manages memory in a C++ compliant way. More...
 
class  DataHashTable
 Generic hash table for data objects.Class DataHashTable provides a generic hash table for Data Objects, i.e., a map that maps arguments called HashItems to values called Infos. HashItem and Info types are passed as template arguments. HashItems must provide a comparison operator==(). Furthermore, both the HashItem and Info must be data objects in the sense that the assignment operator is equivalent to a memcpy() of the structure and no destructor is required. More...
 
class  DataKey
 Entry identifier class for items of a DataSet.Every item in a DataSet is assigned a DataKey by which it can be accessed (using DataSet::operator[]()). A DataKey consists of an integer member idx, which is a positive number for any valid DataKey. No idx of an element in a DataSet may exceed the sets max(). This property may be used to build arrays with additional information to the elements of a DataSet. More...
 
class  DataSet
 Set of data objects.Class DataSet manages of sets of data objects of a template type DATA. For constructing a DataSet the maximum number of entries must be given. The current maximum number may be inquired with method max(). More...
 
class  DIdxSet
 Dynamic index set.Class DIdxSet provides dynamic IdxSet in the sense, that no restrictions are posed on the use of methods add(). However, method indexMem() has been moved to the private members. This is because DIdxSet adds its own memory management to class IdxSet and the user must not interfere with it. More...
 
class  DSVectorBase
 Dynamic sparse vectors.Class DSVectorBase implements dynamic sparse vectors, i.e. SVectorBases with an automatic memory management. This allows the user to freely add() as many nonzeros to a DSVectorBase as desired, without any precautions. For saving memory method setMax() allows to reduce memory consumption to the amount really required. More...
 
class  DVectorBase
 Dynamic dense vectors.Class DVectorBase is a derived class of VectorBase adding automatic memory management to such objects. This allows to implement maths operations operator+() and operator-(). Further, it is possible to reset the dimension of a DVectorBase via method reDim(). However, this may render all references to values of a reDim()ed DVectorBase invalid. More...
 
class  SPxException
 Exception base class.This class implements a base class for our SoPlex exceptions We provide a what() function which returns the exception message. More...
 
class  SPxMemoryException
 Exception class for out of memory exceptions.This class is derived from the SoPlex exception base class. It does not provide any new functionality. More...
 
class  SPxStatusException
 Exception class for status exceptions during the computationsThis class is derived from the SoPlex exception base class. It does not provide any new functionality. More...
 
class  SPxInternalCodeException
 Exception class for things that should NEVER happen.This class is derived from the SoPlex exception base class. It does not provide any new functionality. Most often it is used to replace assert(false) terms in earlier code. More...
 
class  SPxInterfaceException
 Exception class for incorrect usage of interface methods. More...
 
class  IdElement
 Elements for IdLists.IdElements are derived from the template parameter class T and can hence be used as such. The additional methods next() and prev() provide access to the links for the list. They may freely be used by the programmer as long as an IdElement is not member of a IdList. In this case, the IdList controls members next() and prev(). However, IdList should provide enough functionality for the user not to require any modification to these members. More...
 
class  IdList
 Generic Real linked list.Class IdList implements an intrusive Real linked list as a template class. As such, the list elements must provide the links themselfs. For conveniance, we also provide class IdElement that adds both links to an arbitrary class as template parameter. More...
 
class  IdxSet
 Set of indices.Class IdxSet provides a set of indices. At construction it must be given an array of int where to store the indice and its length. The array will from then on be managed by the IdxSet. More...
 
class  IsElement
 Elements for IsLists.Class IsElement allows to easily construct list elements for an intrusive single linked list IsList out of a template class T. It adds a next pointer to each element. An instance of IdElement<T> a can be used just like an instance of T itself, except that method next() has been added (thereby overriding any method next() defined in T). More...
 
class  IsList
 Generic single linked list.Class IsList implements an intrusive single linked list of elements of a template class T. As an intrusive list, the objects of type T must provide methods next() for setting and inquiring a pointer to the next element in a list. The user is responsible for not modifying the next() pointer of elements currently residing in a list, which may destroy the lists integrity. For this, class IsList provides enough methods for modifying a list in a save way. See the method list for a description. More...
 
class  LPColBase
 LP column.Class LPColBase provides a datatype for storing the column of an LP a the form similar to

\[ \begin{array}{rl} \hbox{max} & c^T x \\ \hbox{s.t.} & Ax \le b \\ & l \le x \le u \end{array} \]

Hence, an LPColBase consists of an objective value, a column DSVector and an upper and lower bound to the corresponding variable, which may include $\pm\infty$. However, it depends on the LP code to use, what values are actually treated as $\infty$. More...

 
class  LPColSetBase
 Set of LP columns.Class LPColSetBase implements a set of LPColBase%s. Unless for memory limitations, any number of LPColBases may be added to an LPColSetBase. Single or multiple LPColBases may be added to an LPColSetBase, where each method add() comes with two different signatures. One with and one without a parameter, used for returning the DataKeys assigned to the new LPColBases by the set. See DataKey for a more detailed description of the concept of keys. For the concept of renumbering LPColBases within an LPColSetBase after removal of some LPColBases, see DataSet. More...
 
class  LPRowBase
 (In)equality for LPs.Class LPRowBase provides constraints for linear programs in the form

\[ l \le a^Tx \le r, \]

where a is a DSVector. l is referred to as left hand side, r as right hand side and a as row vector or the constraint vector. l and r may also take values $\pm$ infinity. This static member is predefined, but may be overridden to meet the needs of the LP solver to be used. More...

 
class  LPRowSetBase
 Set of LP rows.Class LPRowSetBase implements a set of LPRowBase%s. Unless for memory limitations, any number of LPRowBases may be added to an LPRowSetBase. Single or multiple LPRowBases may be added to an LPRowSetBase, where each method add() comes with two different signatures. One with and one without a parameter, used for returning the Keys assigned to the new LPRowBases by the set. See DataKey for a more detailed description of the concept of keys. For the concept of renumbering LPRowBases within an LPRowSetBase after removal of some LPRows see DataSet. More...
 
class  MPSInput
 
class  NameSet
 Set of strings.Class NameSet implements a symbol or name table. It allows to store or remove names (i.e., char*), but does not provide means for manipulating stored names. More...
 
class  NoTimer
 
class  Random
 Random numbers.Class Random provides random Real variables, i.e. a value variable that gives another value each time it is accessed. It may be used just like an ordinary Real by means of an overloaded cast operator Real()%. More...
 
class  Rational
 Wrapper for GMP type mpq_class.We wrap mpq_class so that we can replace it by a double type if GMP is not available. More...
 
class  SLinSolver
 Sparse Linear Solver virtual base class.Class SLinSolver provides a class for solving sparse linear systems with a matrix $A$ and arbitrary right-hand side vectors. For doing so, the matrix must be first loaded to an SLinSolver object as an array of pointers to the column SVectors of this matrix. More...
 
class  SLinSolverRational
 Sparse Linear Solver virtual base class with Rational precision.Class SLinSolverRational provides a class for solving sparse linear systems with a matrix $A$ and arbitrary right-hand side vectors. For doing so, the matrix must be first loaded to an SLinSolverRational object as an array of pointers to the column SVectorsRational of this matrix. More...
 
class  SLUFactor
 Implementation of Sparse Linear Solver.This class implements a SLinSolver interface by using the sparse LU factorization implementet in CLUFactor. More...
 
class  SLUFactorRational
 Implementation of Sparse Linear Solver with Rational precision.This class implements a SLinSolverRational interface by using the sparse LU factorization implemented in CLUFactorRational. More...
 
class  SolBase
 Class for storing a primal-dual solution with basis information. More...
 
class  SoPlex
 Preconfigured SoPlex LP-solver. More...
 
class  SoPlexLegacy
 Preconfigured SoPlexLegacy LP-solver. More...
 
class  SPxAutoPR
 Auto pricer.This pricer switches between Devex and Steepest edge pricer based on the difficulty of the problem which is determined by the number of iterations. More...
 
class  SPxBasis
 Simplex basis.Consider the linear program as provided from class SPxLP:

\[ \begin{array}{rl} \hbox{max} & c^T x \\ \hbox{s.t.} & l_r \le Ax \le u_r \\ & l_c \le x \le u_c \end{array} \]

where $c, l_c, u_c, x \in {\bf R}^n$, $l_r, u_r \in {\bf R}^m$ and $A \in {\bf R}^{m \times n}$. Solving this LP with the simplex algorithm requires the definition of a basis. Such can be defined as a set of column vectors or a set of row vectors building a nonsingular matrix. We will refer to the first case as the columnwise representation and the latter case will be called the rowwise representation. In both cases, a basis is a set of vectors forming a nonsigular matrix. The dimension of the vectors is refered to as the basis' dimension, whereas the number of vectors belonging to the LP is called the basis' codimension. More...

 
class  SPxBoundFlippingRT
 Bound flipping ratio test ("long step dual") for SoPlex.Class SPxBoundFlippingRT provides an implementation of the bound flipping ratio test as a derived class of SPxRatioTester. Dual step length is increased beyond some breakpoints and corresponding primal nonbasic variables are set to their other bound to handle the resulting dual infeasibility. More...
 
class  SPxDantzigPR
 Dantzig pricer.Class SPxDantzigPR is an implementation class of an SPxPricer implementing Dantzig's default pricing strategy, i.e., maximal/minimal reduced cost or maximally violated constraint. More...
 
class  SPxDefaultRT
 Textbook ratio test for SoPlex.Class SPxDefaultRT provides an implementation of the textbook ratio test as a derived class of SPxRatioTester. This class is not intended for reliably solving LPs (even though it does the job for ``numerically simple'' LPs). Instead, it should serve as a demonstration of how to write ratio tester classes. More...
 
class  Param
 
class  SPxDevexPR
 Devex pricer.The Devex Pricer for SoPlex implements an approximate steepest edge pricing, that does without solving an extra linear system and computing the scalar products. More...
 
class  SPxEquiliSC
 Equilibrium row/column scaling.This SPxScaler implementation performs equilibrium scaling of the LPs rows and columns. More...
 
class  SPxFastRT
 Fast shifting ratio test.Class SPxFastRT is an implementation class of SPxRatioTester providing fast and stable ratio test. Stability is achieved by allowing some infeasibility to ensure numerical stability such as the Harris procedure. Performance is achieved by skipping the second phase if the first phase already shows a stable enough pivot. More...
 
class  SPxGeometSC
 Geometric mean row/column scaling.This SPxScaler implementation performs geometric mean scaling of the LPs rows and columns. More...
 
class  SPxHarrisRT
 Harris pricing with shifting.Class SPxHarrisRT is a stable implementation of a SPxRatioTester class along the lines of Harris' two phase algorithm. Additionally it uses shifting of bounds in order to avoid cycling. More...
 
class  SPxHybridPR
 Hybrid pricer.The hybrid pricer for SoPlex tries to guess the best pricing strategy to use for pricing the loaded LP with the loaded algorithm type and basis representation. Currently it does so by switching between SPxSteepPR, SPxDevexPR and SPxParMultPR. More...
 
class  SPxColId
 Ids for LP columns.Class SPxColId provides DataKeys for the column indices of an SPxLP. More...
 
class  SPxRowId
 Ids for LP rows.Class SPxRowId provides DataKeys for the row indices of an SPxLP. More...
 
class  SPxId
 Generic Ids for LP rows or columns.Both SPxColIds and SPxRowIds may be treated uniformly as SPxIds: More...
 
class  SPxLPBase
 Saving LPs in a form suitable for SoPlex.Class SPxLPBase provides the data structures required for saving a linear program in the form

\[ \begin{array}{rl} \hbox{max} & c^T x \\ \hbox{s.t.} & l_r \le Ax \le u_r \\ & l_c \le x \le u_c \end{array} \]

suitable for solving with SoPlex. This includes: More...

 
class  SPxMainSM
 LP simplifier for removing uneccessary row/columns.This SPxSimplifier is mainly based on the paper "Presolving in linear programming" by E. Andersen and K. Andersen (Mathematical Programming, 1995). It implements all proposed methods and some other preprocessing techniques for removing redundant rows and columns and bounds. Also infeasibility and unboundedness may be detected. More...
 
class  SPxOut
 Wrapper for several output streams. A verbosity level is used to decide which stream to use and whether to really print a given message. Regardless of whether the verbosity level is set via a manipulator or via the member function, it is persistent until a new value is set. More...
 
class  SPxParMultPR
 Partial multiple pricing.Class SPxParMultPr is an implementation class for SPxPricer implementing Dantzig's default pricing strategy with partial multiple pricing. Partial multiple pricing applies to the entering Simplex only. A set of partialSize eligible pivot indices is selected (partial pricing). In the following Simplex iterations pricing is restricted to these indices (multiple pricing) until no more eliiable pivots are available. Partial multiple pricing significantly reduces the computation time for computing the matrix-vector-product in the Simplex algorithm. More...
 
class  SPxPricer
 Abstract pricer base class.Class SPxPricer is a pure virtual class defining the interface for pricer classes to be used by SoPlex. The pricer's task is to select a vector to enter or leave the simplex basis, depending on the chosen simplex type. More...
 
class  SPxRatioTester
 Abstract ratio test base class.Class SPxRatioTester is the virtual base class for computing the ratio test within the Simplex algorithm driven by SoPlex. After a SoPlex solver has been load()ed to an SPxRatioTester, the solver calls selectLeave() for computing the ratio test for the entering simplex and selectEnter() for computing the ratio test in leaving simplex. More...
 
class  SPxScaler
 LP scaler abstract base class.Instances of classes derived from SPxScaler may be loaded to SoPlex in order to scale LPs before solving them. SoPlex will load() itself to the SPxScaler and then call scale(). Generally any SPxLP can be loaded to a SPxScaler for scale()ing it. The scaling can be undone by calling unscale(). More...
 
class  SPxSimplifier
 LP simplification abstract base class.Instances of classes derived from SPxSimplifier may be loaded to SoPlex in order to simplify LPs before solving them. SoPlex will call simplify() on itself. Generally any SPxLP can be given to a SPxSimplifier for simplify()ing it. The simplification cannot be undone, but given an primal/dual solution for the simplified SPxLP, the simplifier can reconstruct the primal/dual solution of the unsimplified LP. More...
 
class  SPxSolver
 Sequential object-oriented SimPlex.SPxSolver is an LP solver class using the revised Simplex algorithm. It provids two basis representations, namely a column basis and a row basis (see Representation). For both representations, a primal and dual algorithm is available (see Type). More...
 
class  SPxStarter
 SoPlex start basis generation base class.SPxStarter is the virtual base class for classes generating a starter basis for the Simplex solver SoPlex. When a SPxStarter object has been loaded to a SoPlex solver, the latter will call method generate() in order to have a start basis generated. Implementations of method generate() must terminate by loading the generated basis to SoPlex. Loaded bases must be nonsingular. More...
 
class  SPxSteepExPR
 Steepest edge pricer.Class SPxSteepExPR implements a steepest edge pricer to be used with SoPlex. Exact initialization of weights is used. More...
 
class  SPxSteepPR
 Steepest edge pricer.Class SPxSteepPR implements a steepest edge pricer to be used with SoPlex. More...
 
class  SPxSumST
 Simple heuristic SPxStarter.Testing version of an SPxVectorST using a very simplistic heuristic to build up an approximated solution vector. More...
 
class  SPxVectorST
 Solution vector based start basis.This version of SPxWeightST can be used to construct a starting basis for an LP to be solved with SoPlex if an approximate solution vector or dual vector (possibly optained by a heuristic) is available. This is done by setting up weights for the SPxWeightST it is derived from. More...
 
class  SPxWeightPR
 Weighted pricing.Class SPxWeightPR is an implemantation class of SPxPricer that uses weights for columns and rows for selecting the Simplex pivots. The weights are computed by methods computeCP() and computeRP() which may be overridden by derived classes. More...
 
struct  Compare
 Compare class for row weights, used for sorting. More...
 
class  SPxWeightST
 Weighted start basis.Class SPxWeightST is an implementation of a SPxStarter for generating a Simplex starting basis. Using method setupWeights() it sets up arrays weight and coWeight, or equivalently rowWeight and colWeight. (rowWeight and colWeight are just pointers initialized to weight and coWeight according to the representation of SoPlex base passed to method generate().) More...
 
class  SSVectorBase
 Semi sparse vector.This class implements semi-sparse vectors. Such are DVectorBases where the indices of its nonzero elements can be stored in an extra IdxSet. Only elements with absolute value > epsilon are considered to be nonzero. Since really storing the nonzeros is not always convenient, an SSVectorBase provides two different stati: setup and not setup. An SSVectorBase being setup means that the nonzero indices are available, otherwise an SSVectorBase is just an ordinary DVectorBase with an empty IdxSet. Note that due to arithmetic operation, zeros can slip in, i.e., it is only guaranteed that at least every non-zero is in the IdxSet. More...
 
class  Nonzero
 Sparse vector nonzero element. More...
 
class  SVectorBase
 Sparse vectors.Class SVectorBase provides packed sparse vectors. Such are a sparse vectors, with a storage scheme that keeps all data in one contiguous block of memory. This is best suited for using them for parallel computing on a distributed memory multiprocessor. More...
 
class  SVSetBase
 Sparse vector set.Class SVSetBase provides a set of sparse vectors SVectorBase. All SVectorBases in an SVSetBase share one big memory block for their nonzeros. This memory is reffered to as the nonzero memory. The SVectorBases themselves are saved in another memory block refered to as the vector memory. Both memory blocks will grow automatically if required, when adding more SVectorBases to the set or enlarging SVectorBases within the set. For controlling memory consumption, methods are provided to inquire and reset the size of the memory blocks used for vectors and nonzeros. More...
 
class  Timer
 Wrapper for the system time query methods. More...
 
class  TimerFactory
 Class to create new timers and to switch types of exiting ones. More...
 
class  UnitVectorBase
 Sparse vector $e_i$.A UnitVectorBase is an SVectorBase that can take only one nonzero value with value 1 but arbitrary index. More...
 
class  UpdateVector
 Dense vector with semi-sparse vector for updatesIn many algorithms vectors are updated in every iteration, by adding a multiple of another vector to it, i.e., given a vector x, a scalar $\alpha$ and another vector $\delta$, the update to x constists of substituting it by $x \leftarrow x + \alpha\cdot\delta$. More...
 
class  UserTimer
 
class  VectorBase
 Dense vector.Class VectorBase provides dense linear algebra vectors. It does not provide memory management for the array of values. Instead, the constructor requires a pointer to a memory block large enough to fit the desired dimension of Real or Rational values. More...
 
class  WallclockTimer
 

Typedefs

typedef DSVectorBase< RealDSVector
 
typedef DSVectorBase< RealDSVectorReal
 
typedef DSVectorBase< RationalDSVectorRational
 
typedef DVectorBase< RealDVector
 
typedef DVectorBase< RealDVectorReal
 
typedef DVectorBase< RationalDVectorRational
 
typedef LPColBase< RealLPCol
 
typedef LPColBase< RealLPColReal
 
typedef LPColBase< RationalLPColRational
 
typedef LPColSetBase< RealLPColSet
 
typedef LPColSetBase< RealLPColSetReal
 
typedef LPColSetBase< RationalLPColSetRational
 
typedef LPRowBase< RealLPRow
 
typedef LPRowBase< RealLPRowReal
 
typedef LPRowBase< RationalLPRowRational
 
typedef LPRowSetBase< RealLPRowSet
 
typedef LPRowSetBase< RealLPRowSetReal
 
typedef LPRowSetBase< RationalLPRowSetRational
 
typedef SolBase< RealSolReal
 
typedef SolBase< RationalSolRational
 
typedef double Real
 SOPLEX_DEBUG.
 
typedef std::ifstream spxifstream
 
typedef SPxLPBase< RealSPxLP
 
typedef SPxLPBase< RealSPxLPReal
 
typedef SPxLPBase< RationalSPxLPRational
 
typedef SSVectorBase< RealSSVector
 
typedef SSVectorBase< RealSSVectorReal
 
typedef SSVectorBase< RationalSSVectorRational
 
typedef SVectorBase< RealSVector
 
typedef SVectorBase< RealSVectorReal
 
typedef SVectorBase< RationalSVectorRational
 
typedef SVSetBase< RealSVSet
 
typedef UnitVectorBase< RealUnitVector
 
typedef UnitVectorBase< RealUnitVectorReal
 
typedef UnitVectorBase< RationalUnitVectorRational
 
typedef VectorBase< RealVector
 
typedef VectorBase< RealVectorReal
 
typedef VectorBase< RationalVectorRational
 

Functions

template<class R >
std::ostream & operator<< (std::ostream &s, const VectorBase< R > &vec)
 Output operator.
 
template<class R >
DVectorBase< R > operator- (const VectorBase< R > &vec)
 Negation.
 
template<class R >
DVectorBase< R > operator+ (const VectorBase< R > &v, const VectorBase< R > &w)
 Addition.
 
template<class R >
DVectorBase< R > operator+ (const VectorBase< R > &v, const SVectorBase< R > &w)
 Addition.
 
template<class R >
DVectorBase< R > operator+ (const SVectorBase< R > &v, const VectorBase< R > &w)
 Addition.
 
template<class R >
DVectorBase< R > operator- (const VectorBase< R > &v, const VectorBase< R > &w)
 Subtraction.
 
template<class R >
DVectorBase< R > operator- (const VectorBase< R > &v, const SVectorBase< R > &w)
 Subtraction.
 
template<class R >
DVectorBase< R > operator- (const SVectorBase< R > &v, const VectorBase< R > &w)
 Subtraction.
 
template<class R >
DVectorBase< R > operator* (const VectorBase< R > &v, R x)
 Scaling.
 
template<class R >
DVectorBase< R > operator* (R x, const VectorBase< R > &v)
 Scaling.
 
template<class R >
DSVectorBase< R > operator* (const SVectorBase< R > &v, R x)
 Scaling.
 
template<class R >
DSVectorBase< R > operator* (R x, const SVectorBase< R > &v)
 Scaling.
 
template<class R >
std::istream & operator>> (std::istream &s, DVectorBase< R > &vec)
 Input operator.
 
template<class R >
std::ostream & operator<< (std::ostream &os, const SVectorBase< R > &v)
 Output operator.
 
template<class R >
std::ostream & operator<< (std::ostream &os, const SVSetBase< R > &s)
 Output operator.
 
static void enQueueMax (int *heap, int *size, int elem)
 
static int deQueueMax (int *heap, int *size)
 
static void enQueueMin (int *heap, int *size, int elem)
 
static int deQueueMin (int *heap, int *size)
 
static void enQueueMax (int *heap, int *size, int elem)
 
static int deQueueMax (int *heap, int *size)
 
static void enQueueMin (int *heap, int *size, int elem)
 
static int deQueueMin (int *heap, int *size)
 
static void clear_from (char *buf, int pos)
 fill the line from pos up to column 80 with blanks.
 
static void patch_field (char *buf, int beg, int end)
 change all blanks inside a field to PATCH_CHAR.
 
static int NameSetNameHashFunction (const NameSet::Name *str)
 returns the hash value of the name.
 
std::ostream & operator<< (std::ostream &s, const NameSet &nset)
 
Rational operator- (const double &d, const Rational &r)
 subtraction operator for double and Rational
 
Rational operator* (const double &d, const Rational &r)
 multiplication operator for double and Rational
 
Rational operator/ (const double &d, const Rational &r)
 division operator for double and Rational
 
Rational operator- (const int &d, const Rational &r)
 subtraction operator for int and Rational
 
Rational operator* (const int &d, const Rational &r)
 multiplication operator for int and Rational
 
Rational operator/ (const int &d, const Rational &r)
 division operator for int and Rational
 
bool reconstructVector (VectorRational &input, const Rational &denomBoundSquared, const DIdxSet *indexSet)
 
bool reconstructSol (SolRational &solution)
 
static Real betterThreshold (Real th)
 
static Rational betterThreshold (Rational th)
 
template<class T , class COMPARATOR >
void SPxShellsort (T *keys, int end, COMPARATOR &compare, int start=0)
 
template<class T , class COMPARATOR >
void SPxQuicksort (T *keys, int end, COMPARATOR &compare, int start=0, bool type=true)
 Generic QuickSort implementation.
 
template<class T , class COMPARATOR >
int SPxQuicksortPart (T *keys, COMPARATOR &compare, int start, int end, int size, int start2=0, int end2=0, bool type=true)
 Generic implementation of Partial QuickSort.
 
static const char * getRowName (const SPxLP *lp, int idx, const NameSet *rnames, char *buf)
 
static const char * getColName (const SPxLP *lp, int idx, const NameSet *cnames, char *buf)
 
std::ostream & operator<< (std::ostream &os, const SPxBasis::SPxStatus &status)
 Pretty-printing of basis status.
 
static SPxBasis::Desc::Status primalColStatus (int i, const SPxLP *theLP)
 
bool msginconsistent (const char *name, const char *file, int line)
 
Real spxAbs (Real a)
 returns |a|
 
Real spxSqrt (Real a)
 returns square root
 
Real spxNextafter (Real x, Real y)
 
Real spxLdexp (Real x, int exp)
 returns x * 2^exp
 
Real spxFrexp (Real y, int *exp)
 
Real maxAbs (Real a, Real b)
 returns max(|a|,|b|)
 
Real relDiff (Real a, Real b)
 returns (a-b) / max(|a|,|b|,1.0)
 
bool EQ (Real a, Real b, Real eps=Param::epsilon())
 returns true iff |a-b| <= eps
 
bool NE (Real a, Real b, Real eps=Param::epsilon())
 returns true iff |a-b| > eps
 
bool LT (Real a, Real b, Real eps=Param::epsilon())
 returns true iff a < b + eps
 
bool LE (Real a, Real b, Real eps=Param::epsilon())
 returns true iff a <= b + eps
 
bool GT (Real a, Real b, Real eps=Param::epsilon())
 returns true iff a > b + eps
 
bool GE (Real a, Real b, Real eps=Param::epsilon())
 returns true iff a >= b + eps
 
bool isZero (Real a, Real eps=Param::epsilon())
 returns true iff |a| <= eps
 
bool isNotZero (Real a, Real eps=Param::epsilon())
 returns true iff |a| > eps
 
bool EQrel (Real a, Real b, Real eps=Param::epsilon())
 returns true iff |relDiff(a,b)| <= eps
 
bool NErel (Real a, Real b, Real eps=Param::epsilon())
 returns true iff |relDiff(a,b)| > eps
 
bool LTrel (Real a, Real b, Real eps=Param::epsilon())
 returns true iff relDiff(a,b) <= -eps
 
bool LErel (Real a, Real b, Real eps=Param::epsilon())
 returns true iff relDiff(a,b) <= eps
 
bool GTrel (Real a, Real b, Real eps=Param::epsilon())
 returns true iff relDiff(a,b) > eps
 
bool GErel (Real a, Real b, Real eps=Param::epsilon())
 returns true iff relDiff(a,b) > -eps
 
std::ostream & operator<< (std::ostream &os, const SPxBasis::Desc::Status &stat)
 
static const char * makename (bool doBoth)
 
const char * getGitHash ()
 
std::ostream & operator<< (std::ostream &os, const SPxId &id)
 
static bool LPFisSpace (int c)
 Is c a space, tab, nl or cr ?
 
static bool LPFisValue (const char *s)
 Is there a number at the beginning of s ?
 
static bool LPFisColName (const char *s)
 Is there a possible column name at the beginning of s ?
 
static bool LPFisSense (const char *s)
 Is there a comparison operator at the beginning of s ?
 
static bool LPFisInfinity (const char *s)
 
static bool LPFisFree (const char *s)
 
static Rational LPFreadValue (char *&pos, SPxOut *spxout, const int lineno=-1)
 Read the next number and advance pos.
 
static int LPFreadColName (char *&pos, NameSet *colnames, LPColSetBase< Rational > &colset, const LPColBase< Rational > *emptycol, SPxOut *spxout)
 Read the next column name from the input.
 
static int LPFreadSense (char *&pos)
 Read the next <,>,=,==,<=,=<,>=,=> and advance pos.
 
static bool LPFhasKeyword (char *&pos, const char *keyword)
 Is the keyword present in buf ? If yes, advance pos.
 
static bool LPFhasRowName (char *&pos, NameSet *rownames)
 If buf start with "name:" store the name in rownames and advance pos.
 
static Rational LPFreadInfinity (char *&pos)
 
static void MPSreadName (MPSInput &mps, SPxOut *spxout)
 Process NAME section.
 
static void MPSreadObjsen (MPSInput &mps)
 Process OBJSEN section. This Section is an ILOG extension.
 
static void MPSreadObjname (MPSInput &mps)
 Process OBJNAME section. This Section is an ILOG extension.
 
static void MPSreadRows (MPSInput &mps, LPRowSetBase< Rational > &rset, NameSet &rnames, SPxOut *spxout)
 Process ROWS section.
 
static void MPSreadCols (MPSInput &mps, const LPRowSetBase< Rational > &rset, const NameSet &rnames, LPColSetBase< Rational > &cset, NameSet &cnames, DIdxSet *intvars, SPxOut *spxout)
 Process COLUMNS section.
 
static void MPSreadRhs (MPSInput &mps, LPRowSetBase< Rational > &rset, const NameSet &rnames, SPxOut *spxout)
 Process RHS section.
 
static void MPSreadRanges (MPSInput &mps, LPRowSetBase< Rational > &rset, const NameSet &rnames, SPxOut *spxout)
 Process RANGES section.
 
static void MPSreadBounds (MPSInput &mps, LPColSetBase< Rational > &cset, const NameSet &cnames, DIdxSet *intvars, SPxOut *spxout)
 Process BOUNDS section.
 
static const char * LPFgetRowName (const SPxLPBase< Rational > &p_lp, int p_idx, const NameSet *p_rnames, char *p_buf, int p_num_written_rows)
 
static const char * getColName (const SPxLPBase< Rational > &p_lp, int p_idx, const NameSet *p_cnames, char *p_buf)
 
static void LPFwriteSVector (const SPxLPBase< Rational > &p_lp, std::ostream &p_output, const NameSet *p_cnames, const SVectorBase< Rational > &p_svec, SPxOut *spxout)
 
static void LPFwriteObjective (const SPxLPBase< Rational > &p_lp, std::ostream &p_output, const NameSet *p_cnames, SPxOut *spxout)
 
static void LPFwriteRow (const SPxLPBase< Rational > &p_lp, std::ostream &p_output, const NameSet *p_cnames, const SVectorBase< Rational > &p_svec, const Rational &p_lhs, const Rational &p_rhs, SPxOut *spxout)
 
static void LPFwriteRows (const SPxLPBase< Rational > &p_lp, std::ostream &p_output, const NameSet *p_rnames, const NameSet *p_cnames, SPxOut *spxout)
 
static void LPFwriteBounds (const SPxLPBase< Rational > &p_lp, std::ostream &p_output, const NameSet *p_cnames, SPxOut *spxout)
 
static void LPFwriteGenerals (const SPxLPBase< Rational > &p_lp, std::ostream &p_output, const NameSet *p_cnames, const DIdxSet *p_intvars)
 
static void MPSwriteRecord (std::ostream &os, const char *indicator, const char *name, SPxOut *spxout, const char *name1=0, const Rational value1=0, const char *name2=0, const Rational value2=0)
 
static Rational MPSgetRHS (Rational left, Rational right)
 
static const char * MPSgetRowName (const SPxLPBase< Rational > &lp, int idx, const NameSet *rnames, char *buf)
 
static bool LPFisSpace (int c)
 Is c a space, tab, nl or cr ?
 
static bool LPFisValue (const char *s)
 Is there a number at the beginning of s ?
 
static bool LPFisColName (const char *s)
 Is there a possible column name at the beginning of s ?
 
static bool LPFisSense (const char *s)
 Is there a comparison operator at the beginning of s ?
 
static bool LPFisInfinity (const char *s)
 
static bool LPFisFree (const char *s)
 
static Real LPFreadValue (char *&pos, SPxOut *spxout)
 Read the next number and advance pos.
 
static int LPFreadColName (char *&pos, NameSet *colnames, LPColSetBase< Real > &colset, const LPColBase< Real > *emptycol, SPxOut *spxout)
 Read the next column name from the input.
 
static int LPFreadSense (char *&pos)
 Read the next <,>,=,==,<=,=<,>=,=> and advance pos.
 
static bool LPFhasKeyword (char *&pos, const char *keyword)
 Is the keyword present in buf ? If yes, advance pos.
 
static bool LPFhasRowName (char *&pos, NameSet *rownames)
 If buf start with "name:" store the name in rownames and advance pos.
 
static Real LPFreadInfinity (char *&pos)
 
static void MPSreadName (MPSInput &mps, SPxOut *spxout)
 Process NAME section.
 
static void MPSreadObjsen (MPSInput &mps)
 Process OBJSEN section. This Section is an ILOG extension.
 
static void MPSreadObjname (MPSInput &mps)
 Process OBJNAME section. This Section is an ILOG extension.
 
static void MPSreadRows (MPSInput &mps, LPRowSetBase< Real > &rset, NameSet &rnames, SPxOut *spxout)
 Process ROWS section.
 
static void MPSreadCols (MPSInput &mps, const LPRowSetBase< Real > &rset, const NameSet &rnames, LPColSetBase< Real > &cset, NameSet &cnames, DIdxSet *intvars)
 Process COLUMNS section.
 
static void MPSreadRhs (MPSInput &mps, LPRowSetBase< Real > &rset, const NameSet &rnames, SPxOut *spxout)
 Process RHS section.
 
static void MPSreadRanges (MPSInput &mps, LPRowSetBase< Real > &rset, const NameSet &rnames, SPxOut *spxout)
 Process RANGES section.
 
static void MPSreadBounds (MPSInput &mps, LPColSetBase< Real > &cset, const NameSet &cnames, DIdxSet *intvars, SPxOut *spxout)
 Process BOUNDS section.
 
static const char * LPFgetRowName (const SPxLPBase< Real > &p_lp, int p_idx, const NameSet *p_rnames, char *p_buf, int p_num_written_rows)
 
static const char * getColName (const SPxLPBase< Real > &p_lp, int p_idx, const NameSet *p_cnames, char *p_buf)
 
static void LPFwriteSVector (const SPxLPBase< Real > &p_lp, std::ostream &p_output, const NameSet *p_cnames, const SVectorBase< Real > &p_svec)
 
static void LPFwriteObjective (const SPxLPBase< Real > &p_lp, std::ostream &p_output, const NameSet *p_cnames)
 
static void LPFwriteRow (const SPxLPBase< Real > &p_lp, std::ostream &p_output, const NameSet *p_cnames, const SVectorBase< Real > &p_svec, const Real &p_lhs, const Real &p_rhs)
 
static void LPFwriteRows (const SPxLPBase< Real > &p_lp, std::ostream &p_output, const NameSet *p_rnames, const NameSet *p_cnames)
 
static void LPFwriteBounds (const SPxLPBase< Real > &p_lp, std::ostream &p_output, const NameSet *p_cnames)
 
static void LPFwriteGenerals (const SPxLPBase< Real > &p_lp, std::ostream &p_output, const NameSet *p_cnames, const DIdxSet *p_intvars)
 
static void MPSwriteRecord (std::ostream &os, const char *indicator, const char *name, const char *name1=0, const Real value1=0.0, const char *name2=0, const Real value2=0.0)
 
static Real MPSgetRHS (Real left, Real right)
 
static const char * MPSgetRowName (const SPxLPBase< Real > &lp, int idx, const NameSet *rnames, char *buf)
 
std::ostream & operator<< (std::ostream &s, const SPxScaler &sc)
 
std::ostream & operator<< (std::ostream &os, const SPxSolver::VarStatus &status)
 Pretty-printing of variable status.
 
std::ostream & operator<< (std::ostream &os, const SPxSolver::Status &status)
 Pretty-printing of solver status.
 
std::ostream & operator<< (std::ostream &os, const SPxSolver::Type &status)
 Pretty-printing of algorithm.
 
std::ostream & operator<< (std::ostream &os, const SPxSolver::Representation &status)
 Pretty-printing of representation.
 
static void setDualStatus (SPxBasis::Desc &desc, const SPxSolver &base, const SPxId &id)
 
static void initPrefs (DataArray< SPxId > &pref, const SPxSolver &base, const DataArray< Real > &rowWeight, const DataArray< Real > &colWeight)
 
std::string rationalToString (const Rational &r, const int precision)
 convert rational number to string
 
bool readStringRational (const char *s, Rational &value)
 read Rational from string
 
std::ostream & operator<< (std::ostream &os, const Rational &r)
 print Rational
 
int compareRational (const Rational &r, const Rational &s)
 comparison operator returning a positive value if r > s, zero if r = s, and a negative value if r < s
 
bool operator== (const Rational &r, const Rational &s)
 equality operator
 
bool operator!= (const Rational &r, const Rational &s)
 inequality operator
 
bool operator< (const Rational &r, const Rational &s)
 less than operator
 
bool operator<= (const Rational &r, const Rational &s)
 less than or equal to operator
 
bool operator> (const Rational &r, const Rational &s)
 greater than operator
 
bool operator>= (const Rational &r, const Rational &s)
 greater than or equal to operator
 
bool operator== (const Rational &r, const double &s)
 equality operator for Rational and double
 
bool operator!= (const Rational &r, const double &s)
 inequality operator for Rational and double
 
bool operator< (const Rational &r, const double &s)
 less than operator for Rational and double
 
bool operator<= (const Rational &r, const double &s)
 less than or equal to operator for Rational and double
 
bool operator> (const Rational &r, const double &s)
 greater than operator for Rational and double
 
bool operator>= (const Rational &r, const double &s)
 greater than or equal to operator for Rational and double
 
bool operator== (const double &r, const Rational &s)
 equality operator for double and Rational
 
bool operator!= (const double &r, const Rational &s)
 inequality operator double and Rational
 
bool operator< (const double &r, const Rational &s)
 less than operator double and Rational
 
bool operator<= (const double &r, const Rational &s)
 less than or equal to operator double and Rational
 
bool operator> (const double &r, const Rational &s)
 greater than operator double and Rational
 
bool operator>= (const double &r, const Rational &s)
 greater than or equal to operator double and Rational
 
bool operator== (const Rational &r, const long double &s)
 equality operator for Rational and long double
 
bool operator!= (const Rational &r, const long double &s)
 inequality operator for Rational and long double
 
bool operator< (const Rational &r, const long double &s)
 less than operator for Rational and long double
 
bool operator<= (const Rational &r, const long double &s)
 less than or equal to operator for Rational and long double
 
bool operator> (const Rational &r, const long double &s)
 greater than operator for Rational and long double
 
bool operator>= (const Rational &r, const long double &s)
 greater than or equal to operator for Rational and long double
 
bool operator== (const long double &r, const Rational &s)
 equality operator for long double and Rational
 
bool operator!= (const long double &r, const Rational &s)
 inequality operator long double and Rational
 
bool operator< (const long double &r, const Rational &s)
 less than operator long double and Rational
 
bool operator<= (const long double &r, const Rational &s)
 less than or equal to operator long double and Rational
 
bool operator> (const long double &r, const Rational &s)
 greater than operator long double and Rational
 
bool operator>= (const long double &r, const Rational &s)
 greater than or equal to operator long double and Rational
 
bool operator== (const Rational &r, const int &s)
 equality operator for Rational and int
 
bool operator!= (const Rational &r, const int &s)
 inequality operator for Rational and int
 
bool operator< (const Rational &r, const int &s)
 less than operator for Rational and int
 
bool operator<= (const Rational &r, const int &s)
 less than or equal to operator for Rational and int
 
bool operator> (const Rational &r, const int &s)
 greater than operator for Rational and int
 
bool operator>= (const Rational &r, const int &s)
 greater than or equal to operator for Rational and int
 
bool operator== (const int &r, const Rational &s)
 equality operator for int and Rational
 
bool operator!= (const int &r, const Rational &s)
 inequality operator for int and Rational
 
bool operator< (const int &r, const Rational &s)
 less than operator for int and Rational
 
bool operator<= (const int &r, const Rational &s)
 less than or equal to operator for int and Rational
 
bool operator> (const int &r, const Rational &s)
 greater than operator for int and Rational
 
bool operator>= (const int &r, const Rational &s)
 greater than or equal to operator for int and Rational
 
Rational operator+ (const double &d, const Rational &r)
 addition operator for double and Rational
 
Rational operator+ (const int &d, const Rational &r)
 addition operator for int and Rational
 
Rational spxAbs (const Rational &r)
 Absolute.
 
int sign (const Rational &r)
 Sign function; returns 1 if r > 0, 0 if r = 0, and -1 if r < 0.
 
Rational operator- (const Rational &r)
 Negation.
 
int totalSizeRational (const Rational *vector, const int length, const int base)
 Total size of rational vector.
 
int dlcmSizeRational (const Rational *vector, const int length, const int base)
 Size of least common multiple of denominators in rational vector.
 
int dmaxSizeRational (const Rational *vector, const int length, const int base)
 Size of largest denominator in rational vector.
 
Memory allocation routines

Here we have cover functions for malloc/realloc/free, to make sure that we allays succeed. Otherwise an exception is thrown.

We use templates to get the types right, otherwise casts would have been neccessary.

template<class T >
void spx_alloc (T &p, int n=1)
 Allocate memory.
 
template<class T >
void spx_realloc (T &p, int n)
 Change amount of allocated memory.
 
template<class T >
void spx_free (T &p)
 Release memory.
 
Verbosity manipulator

Manipulators are implemented in a similar way as done for setw(), setprecision(), etc. in the standard library file iomanip. For instance, the non-member function verb(v) returns a struct struct_Severity which contains only the verbosity level. Calling

SPxOut spxout;
spxout << verb( SPxOut::ERROR ) << "This is an error!" << std::endl;

passes such a struct to the output operator defined below, which extracts the verbosity level from the struct and passes it to the member function SPxOut::setVerbosity().

SPxOut::struct_Verbosity verb (const SPxOut::Verbosity &v)
 manipulator to be used in an output statement
 
SPxOutoperator<< (SPxOut &stream, const SPxOut::struct_Verbosity &verbosity)
 output operator with verbosity level struct
 
Output of standard manipulators and other types

We have to define an output operator for many kinds of numeric types here because they can all be more or less casted into each other. When using only a template type, it is not clear what the compiler makes out of it (according to lint).

SPxOutoperator<< (SPxOut &_spxout, std::ostream &(*manip)(std::ostream &))
 Passes standard manipulators without arguments, like std::endl or std::ios::right to the current stream.
 
template<typename T >
SPxOutoperator<< (SPxOut &_spxout, T t)
 Passes everything else to the current stream. In particular, this includes structs corresponding to manipulators with arguments, such as the struct _Setw for the setw() manipulator.
 

Variables

static const Real verySparseFactor = 0.001
 
static const Real verySparseFactor4right = 0.2
 
static const Real verySparseFactor4left = 0.1
 
static const Real verySparseFactor = 0.001
 
static const Real verySparseFactor4right = 0.2
 
static const Real verySparseFactor4left = 0.1
 
static const Real reject_leave_tol = 1e-10
 
const Real infinity = DEFAULT_INFINITY
 

Detailed Description

Everything should be within this namespace.

We have put the whole class library in the namespace soplex. If anything here is defined outside, this is a mistake and should be reported.

Todo:

SoPlex should also have an spxout object to avoid using a global one

introduce status codes for SoPlex, especially for rational solving

implement main IR loop for primal and dual feasible case with fail otherwise (Ambros)

implement statistical info (time, factor time, iters, ...) since last call to solveReal() or solveRational() (Ambros?)

implement performInfeasibilityIR (Ambros?)

extend IR loop to infeasible case (Dan?)

extend IR loop to unbounded case (Dan?)

integrate rational reconstruction into IR loop

templatize SPxSolver and necessary components (SLUFactor, pricer, ratiotester)

integrate rational SPxSolver and distinguish between original and transformed rational LP

rational scalers

rational simplifier

Todo:
try to move to cpp file by forward declaration
Todo:
implement automatic rep switch, based on row/col dim
Todo:
record and return "best" solutions found during IR (Ambros)
Todo:
interface rational reconstruction code for rational vectors

Typedef Documentation

Definition at line 28 of file dsvector.h.

Definition at line 30 of file dsvector.h.

Definition at line 29 of file dsvector.h.

typedef DVectorBase< Real > DVector

Definition at line 28 of file dvector.h.

Definition at line 30 of file dvector.h.

Definition at line 29 of file dvector.h.

typedef LPColBase< Real > LPCol

Definition at line 29 of file lpcol.h.

Definition at line 31 of file lpcol.h.

typedef LPColBase< Real > LPColReal

Definition at line 30 of file lpcol.h.

Definition at line 27 of file lpcolset.h.

Definition at line 29 of file lpcolset.h.

Definition at line 28 of file lpcolset.h.

typedef LPRowBase< Real > LPRow

Definition at line 27 of file lprow.h.

Definition at line 29 of file lprow.h.

typedef LPRowBase< Real > LPRowReal

Definition at line 28 of file lprow.h.

Definition at line 27 of file lprowset.h.

Definition at line 29 of file lprowset.h.

Definition at line 28 of file lprowset.h.

typedef double Real

SOPLEX_DEBUG.

Definition at line 197 of file spxdefines.h.

Definition at line 29 of file sol.h.

typedef SolBase<Real> SolReal

Definition at line 28 of file sol.h.

typedef std::ifstream spxifstream

Definition at line 43 of file spxfileio.h.

typedef SPxLPBase< Real > SPxLP

Definition at line 35 of file spxlp.h.

Definition at line 37 of file spxlp.h.

typedef SPxLPBase< Real > SPxLPReal

Definition at line 36 of file spxlp.h.

Definition at line 28 of file ssvector.h.

Definition at line 30 of file ssvector.h.

Definition at line 29 of file ssvector.h.

typedef SVectorBase< Real > SVector

Definition at line 29 of file svector.h.

Definition at line 31 of file svector.h.

Definition at line 30 of file svector.h.

typedef SVSetBase<Real> SVSet

Definition at line 28 of file svset.h.

Definition at line 29 of file unitvector.h.

Definition at line 31 of file unitvector.h.

Definition at line 30 of file unitvector.h.

typedef VectorBase< Real > Vector

Definition at line 29 of file vector.h.

Definition at line 31 of file vector.h.

Definition at line 30 of file vector.h.

Function Documentation

static Rational soplex::betterThreshold ( Rational  th)
static

Definition at line 912 of file slufactor_rational.cpp.

static Real soplex::betterThreshold ( Real  th)
static

Definition at line 1208 of file slufactor.cpp.

References LT(), and REAL.

Referenced by SLUFactor::load(), and SLUFactorRational::load().

static void soplex::clear_from ( char *  buf,
int  pos 
)
static

fill the line from pos up to column 80 with blanks.

Definition at line 35 of file mpsinput.cpp.

References BLANK.

Referenced by MPSInput::readLine().

int compareRational ( const Rational &  r,
const Rational &  s 
)

comparison operator returning a positive value if r > s, zero if r = s, and a negative value if r < s

Definition at line 3495 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

static int soplex::deQueueMax ( int *  heap,
int *  size 
)
static

Definition at line 70 of file clufactor_rational.cpp.

static int soplex::deQueueMin ( int *  heap,
int *  size 
)
static
static int soplex::deQueueMin ( int *  heap,
int *  size 
)
static

Definition at line 154 of file clufactor_rational.cpp.

int dlcmSizeRational ( const Rational *  vector,
const int  length,
const int  base 
)

Size of least common multiple of denominators in rational vector.

Definition at line 3973 of file rational.cpp.

Referenced by SolBase< Real >::dlcmSizeDual(), and SolBase< Real >::dlcmSizePrimal().

int dmaxSizeRational ( const Rational *  vector,
const int  length,
const int  base 
)

Size of largest denominator in rational vector.

Definition at line 3985 of file rational.cpp.

Referenced by SolBase< Real >::dmaxSizeDual(), and SolBase< Real >::dmaxSizePrimal().

static void soplex::enQueueMax ( int *  heap,
int *  size,
int  elem 
)
static

Definition at line 40 of file clufactor_rational.cpp.

static void soplex::enQueueMin ( int *  heap,
int *  size,
int  elem 
)
static
static void soplex::enQueueMin ( int *  heap,
int *  size,
int  elem 
)
static

Definition at line 124 of file clufactor_rational.cpp.

bool soplex::EQ ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)
bool soplex::GE ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)

returns true iff a >= b + eps

Definition at line 396 of file spxdefines.h.

Referenced by SoPlex::_solveRealStable(), SoPlex::areLPsInSync(), and SoPlex::solve().

bool soplex::GErel ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)

returns true iff relDiff(a,b) > -eps

Definition at line 444 of file spxdefines.h.

References relDiff().

Referenced by SPxMainSM::duplicateCols(), SPxMainSM::ZeroObjColSingletonPS::execute(), SPxMainSM::DuplicateColsPS::execute(), and SPxMainSM::simplifyRows().

static const char* soplex::getColName ( const SPxLP *  lp,
int  idx,
const NameSet *  cnames,
char *  buf 
)
static
static const char* soplex::getColName ( const SPxLPBase< Real > &  p_lp,
int  p_idx,
const NameSet *  p_cnames,
char *  p_buf 
)
static
static const char* soplex::getColName ( const SPxLPBase< Rational > &  p_lp,
int  p_idx,
const NameSet *  p_cnames,
char *  p_buf 
)
static
const char * getGitHash ( )

returns the current git hash of SoPlex

Definition at line 23 of file spxgithash.cpp.

References SPX_GITHASH.

Referenced by main(), and SoPlex::printVersion().

static const char* soplex::getRowName ( const SPxLP *  lp,
int  idx,
const NameSet *  rnames,
char *  buf 
)
static

Definition at line 542 of file spxbasis.cpp.

References NameSet::has(), and SPxLPBase< R >::rId().

Referenced by SPxBasis::writeBasis().

bool soplex::GT ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)
bool soplex::GTrel ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)

returns true iff relDiff(a,b) > eps

Definition at line 438 of file spxdefines.h.

References relDiff().

Referenced by SPxMainSM::removeRowSingleton(), SPxMainSM::simplifyCols(), SPxMainSM::simplifyDual(), and SPxMainSM::simplifyRows().

static void soplex::initPrefs ( DataArray< SPxId > &  pref,
const SPxSolver &  base,
const DataArray< Real > &  rowWeight,
const DataArray< Real > &  colWeight 
)
static

The following method initializes pref such that it contains the set of SPxIds ordered following rowWeight and colWeight. For the sorting we take the following approach: first we sort the rows, then the columns. Finally we perform a mergesort of both.

Definition at line 157 of file spxweightst.cpp.

References SPxLPBase< R >::cId(), DataArray< T >::get_const_ptr(), SPxLPBase< R >::nCols(), SPxLPBase< R >::nRows(), SPxLPBase< R >::rId(), DataArray< T >::size(), SPxQuicksort(), and Compare::weight.

Referenced by SPxWeightST::generate().

bool soplex::LE ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)

returns true iff a <= b + eps

Definition at line 384 of file spxdefines.h.

Referenced by SoPlex::areLPsInSync().

bool soplex::LErel ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)

returns true iff relDiff(a,b) <= eps

Definition at line 432 of file spxdefines.h.

References relDiff().

Referenced by SPxMainSM::duplicateCols(), SPxMainSM::ZeroObjColSingletonPS::execute(), SPxMainSM::DuplicateColsPS::execute(), and SPxMainSM::simplifyRows().

static const char* soplex::LPFgetRowName ( const SPxLPBase< Real > &  p_lp,
int  p_idx,
const NameSet *  p_rnames,
char *  p_buf,
int  p_num_written_rows 
)
static
static const char* soplex::LPFgetRowName ( const SPxLPBase< Rational > &  p_lp,
int  p_idx,
const NameSet *  p_rnames,
char *  p_buf,
int  p_num_written_rows 
)
static

Definition at line 1681 of file spxlpbase_rational.cpp.

References NameSet::has(), SPxLPBase< R >::nRows(), and SPxLPBase< R >::rId().

Referenced by LPFwriteRows().

static bool soplex::LPFhasKeyword ( char *&  pos,
const char *  keyword 
)
static

Is the keyword present in buf ? If yes, advance pos.

keyword should be lower case. It can contain optional sections which are enclosed in '[' ']' like "min[imize]".

Definition at line 256 of file spxlpbase_real.cpp.

References LPFisSense(), LPFisSpace(), and MSG_DEBUG.

static bool soplex::LPFhasKeyword ( char *&  pos,
const char *  keyword 
)
static

Is the keyword present in buf ? If yes, advance pos.

keyword should be lower case. It can contain optional sections which are enclosed in '[' ']' like "min[imize]".

Definition at line 286 of file spxlpbase_rational.cpp.

References LPFisSense(), LPFisSpace(), and MSG_DEBUG.

Referenced by LPFreadInfinity(), and SPxLPBase< R >::readLPF().

static bool soplex::LPFhasRowName ( char *&  pos,
NameSet *  rownames 
)
static

If buf start with "name:" store the name in rownames and advance pos.

Definition at line 303 of file spxlpbase_real.cpp.

References NameSet::add(), and LPF_MAX_LINE_LEN.

static bool soplex::LPFhasRowName ( char *&  pos,
NameSet *  rownames 
)
static

If buf start with "name:" store the name in rownames and advance pos.

Definition at line 333 of file spxlpbase_rational.cpp.

References NameSet::add(), and LPF_MAX_LINE_LEN.

Referenced by SPxLPBase< R >::readLPF().

static bool soplex::LPFisColName ( const char *  s)
static

Is there a possible column name at the beginning of s ?

Definition at line 56 of file spxlpbase_real.cpp.

static bool soplex::LPFisColName ( const char *  s)
static

Is there a possible column name at the beginning of s ?

Definition at line 59 of file spxlpbase_rational.cpp.

Referenced by LPFreadColName(), and SPxLPBase< R >::readLPF().

static bool soplex::LPFisFree ( const char *  s)
static

Definition at line 87 of file spxlpbase_real.cpp.

static bool soplex::LPFisFree ( const char *  s)
static

Definition at line 90 of file spxlpbase_rational.cpp.

Referenced by SPxLPBase< R >::readLPF().

static bool soplex::LPFisInfinity ( const char *  s)
static

Definition at line 77 of file spxlpbase_real.cpp.

static bool soplex::LPFisInfinity ( const char *  s)
static

Definition at line 80 of file spxlpbase_rational.cpp.

Referenced by LPFreadInfinity(), and SPxLPBase< R >::readLPF().

static bool soplex::LPFisSense ( const char *  s)
static

Is there a comparison operator at the beginning of s ?

Definition at line 70 of file spxlpbase_real.cpp.

static bool soplex::LPFisSense ( const char *  s)
static

Is there a comparison operator at the beginning of s ?

Definition at line 73 of file spxlpbase_rational.cpp.

Referenced by LPFhasKeyword(), LPFreadSense(), and SPxLPBase< R >::readLPF().

static bool soplex::LPFisSpace ( int  c)
static

Is c a space, tab, nl or cr ?

Definition at line 40 of file spxlpbase_real.cpp.

static bool soplex::LPFisSpace ( int  c)
static

Is c a space, tab, nl or cr ?

Definition at line 43 of file spxlpbase_rational.cpp.

Referenced by LPFhasKeyword(), LPFreadColName(), LPFreadSense(), LPFreadValue(), and SPxLPBase< R >::readLPF().

static bool soplex::LPFisValue ( const char *  s)
static

Is there a number at the beginning of s ?

Definition at line 48 of file spxlpbase_real.cpp.

static bool soplex::LPFisValue ( const char *  s)
static

Is there a number at the beginning of s ?

Definition at line 51 of file spxlpbase_rational.cpp.

Referenced by LPFreadValue(), and SPxLPBase< R >::readLPF().

static int soplex::LPFreadColName ( char *&  pos,
NameSet *  colnames,
LPColSetBase< Real > &  colset,
const LPColBase< Real > *  emptycol,
SPxOut *  spxout 
)
static

Read the next column name from the input.

The name read is looked up and if not found emptycol is added to colset. pos is advanced behind the name.

Returns
The Index of the named column.

Definition at line 189 of file spxlpbase_real.cpp.

References NameSet::add(), LPColSetBase< R >::add(), LPF_MAX_LINE_LEN, LPFisColName(), LPFisSpace(), MSG_DEBUG, MSG_WARNING, NameSet::num(), and NameSet::number().

static int soplex::LPFreadColName ( char *&  pos,
NameSet *  colnames,
LPColSetBase< Rational > &  colset,
const LPColBase< Rational > *  emptycol,
SPxOut *  spxout 
)
static

Read the next column name from the input.

The name read is looked up and if not found emptycol is added to colset. pos is advanced behind the name.

Returns
The Index of the named column.

Definition at line 219 of file spxlpbase_rational.cpp.

References NameSet::add(), LPColSetBase< R >::add(), LPF_MAX_LINE_LEN, LPFisColName(), LPFisSpace(), MSG_DEBUG, MSG_WARNING, NameSet::num(), and NameSet::number().

Referenced by SPxLPBase< R >::readLPF().

static Real soplex::LPFreadInfinity ( char *&  pos)
static

Definition at line 356 of file spxlpbase_real.cpp.

References infinity, LPFhasKeyword(), and LPFisInfinity().

static Rational soplex::LPFreadInfinity ( char *&  pos)
static

Definition at line 386 of file spxlpbase_rational.cpp.

References infinity, LPFhasKeyword(), and LPFisInfinity().

Referenced by SPxLPBase< R >::readLPF().

static int soplex::LPFreadSense ( char *&  pos)
static

Read the next <,>,=,==,<=,=<,>=,=> and advance pos.

Definition at line 232 of file spxlpbase_real.cpp.

References LPFisSense(), LPFisSpace(), and MSG_DEBUG.

static int soplex::LPFreadSense ( char *&  pos)
static

Read the next <,>,=,==,<=,=<,>=,=> and advance pos.

Definition at line 262 of file spxlpbase_rational.cpp.

References LPFisSense(), LPFisSpace(), and MSG_DEBUG.

Referenced by SPxLPBase< R >::readLPF().

static Real soplex::LPFreadValue ( char *&  pos,
SPxOut *  spxout 
)
static

Read the next number and advance pos.

If only a sign is encountered, the number is assumed to be sign * 1.0. This routine will not catch malformatted numbers like .e10 !

Definition at line 101 of file spxlpbase_real.cpp.

References LPF_MAX_LINE_LEN, LPFisSpace(), LPFisValue(), MSG_DEBUG, and MSG_WARNING.

static Rational soplex::LPFreadValue ( char *&  pos,
SPxOut *  spxout,
const int  lineno = -1 
)
static

Read the next number and advance pos.

If only a sign is encountered, the number is assumed to be sign * 1. This routine will not catch malformatted numbers like .e10 !

Definition at line 104 of file spxlpbase_rational.cpp.

References LPF_MAX_LINE_LEN, LPFisSpace(), LPFisValue(), MSG_DEBUG, MSG_WARNING, and Rational::readString().

Referenced by SPxLPBase< R >::readLPF().

static void soplex::LPFwriteBounds ( const SPxLPBase< Real > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames 
)
static
Parameters
p_lpthe LP to write
p_outputoutput stream
p_cnamescolumn names

Definition at line 1798 of file spxlpbase_real.cpp.

References getColName(), infinity, SPxLPBase< R >::lower(), SPxLPBase< R >::nCols(), and SPxLPBase< R >::upper().

static void soplex::LPFwriteBounds ( const SPxLPBase< Rational > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames,
SPxOut *  spxout 
)
static
Parameters
p_lpthe LP to write
p_outputoutput stream
p_cnamescolumn names
spxoutout stream

Definition at line 1907 of file spxlpbase_rational.cpp.

References getColName(), infinity, SPxLPBase< R >::lower(), MAX_LINE_WRITE_LEN, MSG_WARNING, SPxLPBase< R >::nCols(), and SPxLPBase< R >::upper().

Referenced by SPxLPBase< R >::writeLPF().

static void soplex::LPFwriteGenerals ( const SPxLPBase< Real > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames,
const DIdxSet *  p_intvars 
)
static
Parameters
p_lpthe LP to write
p_outputoutput stream
p_cnamescolumn names
p_intvarsinteger variables

Definition at line 1849 of file spxlpbase_real.cpp.

References getColName(), SPxLPBase< R >::nCols(), IdxSet::number(), and IdxSet::size().

static void soplex::LPFwriteGenerals ( const SPxLPBase< Rational > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames,
const DIdxSet *  p_intvars 
)
static
Parameters
p_lpthe LP to write
p_outputoutput stream
p_cnamescolumn names
p_intvarsinteger variables

Definition at line 1969 of file spxlpbase_rational.cpp.

References getColName(), SPxLPBase< R >::nCols(), IdxSet::number(), and IdxSet::size().

Referenced by SPxLPBase< R >::writeLPF().

static void soplex::LPFwriteObjective ( const SPxLPBase< Real > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames 
)
static
Parameters
p_lpthe LP
p_outputoutput stream
p_cnamescolumn names

Definition at line 1708 of file spxlpbase_real.cpp.

References VectorBase< R >::dim(), LPFwriteSVector(), SPxLPBase< R >::maxObj(), and SPxLPBase< R >::spxSense().

static void soplex::LPFwriteObjective ( const SPxLPBase< Rational > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames,
SPxOut *  spxout 
)
static
Parameters
p_lpthe LP
p_outputoutput stream
p_cnamescolumn names
spxoutout stream

Definition at line 1791 of file spxlpbase_rational.cpp.

References VectorBase< R >::dim(), LPFwriteSVector(), SPxLPBase< R >::maxObj(), and SPxLPBase< R >::spxSense().

Referenced by SPxLPBase< R >::writeLPF().

static void soplex::LPFwriteRow ( const SPxLPBase< Real > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames,
const SVectorBase< Real > &  p_svec,
const Real &  p_lhs,
const Real &  p_rhs 
)
static
Parameters
p_lpthe LP
p_outputoutput stream
p_cnamescolumn names
p_svecvector of the row
p_lhslhs of the row
p_rhsrhs of the row

Definition at line 1731 of file spxlpbase_real.cpp.

References infinity, and LPFwriteSVector().

static void soplex::LPFwriteRow ( const SPxLPBase< Rational > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames,
const SVectorBase< Rational > &  p_svec,
const Rational &  p_lhs,
const Rational &  p_rhs,
SPxOut *  spxout 
)
static
Parameters
p_lpthe LP
p_outputoutput stream
p_cnamescolumn names
p_svecvector of the row
p_lhslhs of the row
p_rhsrhs of the row
spxoutout stream

Definition at line 1815 of file spxlpbase_rational.cpp.

References infinity, LPFwriteSVector(), MAX_LINE_WRITE_LEN, MSG_WARNING, and rationalToString().

Referenced by LPFwriteRows().

static void soplex::LPFwriteRows ( const SPxLPBase< Real > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_rnames,
const NameSet *  p_cnames 
)
static
Parameters
p_lpthe LP
p_outputoutput stream
p_rnamesrow names
p_cnamescolumn names

Definition at line 1759 of file spxlpbase_real.cpp.

References infinity, SPxLPBase< R >::lhs(), LPFgetRowName(), LPFwriteRow(), SPxLPBase< R >::nRows(), SPxLPBase< R >::rhs(), and SPxLPBase< R >::rowVector().

static void soplex::LPFwriteRows ( const SPxLPBase< Rational > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_rnames,
const NameSet *  p_cnames,
SPxOut *  spxout 
)
static
Parameters
p_lpthe LP
p_outputoutput stream
p_rnamesrow names
p_cnamescolumn names
spxoutout stream

Definition at line 1867 of file spxlpbase_rational.cpp.

References infinity, SPxLPBase< R >::lhs(), LPFgetRowName(), LPFwriteRow(), SPxLPBase< R >::nRows(), SPxLPBase< R >::rhs(), and SPxLPBase< R >::rowVector().

Referenced by SPxLPBase< R >::writeLPF().

static void soplex::LPFwriteSVector ( const SPxLPBase< Real > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames,
const SVectorBase< Real > &  p_svec 
)
static
Parameters
p_lpthe LP
p_outputoutput stream
p_cnamescolumn names
p_svecvector to write

Definition at line 1668 of file spxlpbase_real.cpp.

References getColName(), SPxLPBase< R >::nCols(), and NUM_ENTRIES_PER_LINE.

static void soplex::LPFwriteSVector ( const SPxLPBase< Rational > &  p_lp,
std::ostream &  p_output,
const NameSet *  p_cnames,
const SVectorBase< Rational > &  p_svec,
SPxOut *  spxout 
)
static
Parameters
p_lpthe LP
p_outputoutput stream
p_cnamescolumn names
p_svecvector to write
spxoutout stream

Definition at line 1737 of file spxlpbase_rational.cpp.

References getColName(), MAX_LINE_WRITE_LEN, MSG_WARNING, SPxLPBase< R >::nCols(), NUM_ENTRIES_PER_LINE, and rationalToString().

Referenced by LPFwriteObjective(), and LPFwriteRow().

bool soplex::LT ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)
bool soplex::LTrel ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)
static const char* soplex::makename ( bool  doBoth)
static

Definition at line 26 of file spxequilisc.cpp.

static Real soplex::MPSgetRHS ( Real  left,
Real  right 
)
static

This includes ranges

Definition at line 1928 of file spxlpbase_real.cpp.

References infinity.

static Rational soplex::MPSgetRHS ( Rational  left,
Rational  right 
)
static

This includes ranges

Definition at line 2054 of file spxlpbase_rational.cpp.

References infinity.

Referenced by SPxLPBase< R >::writeMPS().

static const char* soplex::MPSgetRowName ( const SPxLPBase< Real > &  lp,
int  idx,
const NameSet *  rnames,
char *  buf 
)
static
static const char* soplex::MPSgetRowName ( const SPxLPBase< Rational > &  lp,
int  idx,
const NameSet *  rnames,
char *  buf 
)
static
static void soplex::MPSreadBounds ( MPSInput &  mps,
LPColSetBase< Real > &  cset,
const NameSet &  cnames,
DIdxSet *  intvars,
SPxOut *  spxout 
)
static
static void soplex::MPSreadCols ( MPSInput &  mps,
const LPRowSetBase< Real > &  rset,
const NameSet &  rnames,
LPColSetBase< Real > &  cset,
NameSet &  cnames,
DIdxSet *  intvars 
)
static
static void soplex::MPSreadCols ( MPSInput &  mps,
const LPRowSetBase< Rational > &  rset,
const NameSet &  rnames,
LPColSetBase< Rational > &  cset,
NameSet &  cnames,
DIdxSet *  intvars,
SPxOut *  spxout 
)
static
static void soplex::MPSreadName ( MPSInput &  mps,
SPxOut *  spxout 
)
static
static void soplex::MPSreadName ( MPSInput &  mps,
SPxOut *  spxout 
)
static
static void soplex::MPSreadObjname ( MPSInput &  mps)
static

Process OBJNAME section. This Section is an ILOG extension.

Definition at line 976 of file spxlpbase_real.cpp.

References MPSInput::field0(), MPSInput::field1(), MPSInput::readLine(), ROWS, MPSInput::setObjName(), MPSInput::setSection(), and MPSInput::syntaxError().

static void soplex::MPSreadObjname ( MPSInput &  mps)
static

Process OBJNAME section. This Section is an ILOG extension.

Definition at line 1009 of file spxlpbase_rational.cpp.

References MPSInput::field0(), MPSInput::field1(), MPSInput::readLine(), MPSInput::ROWS, MPSInput::setObjName(), MPSInput::setSection(), and MPSInput::syntaxError().

Referenced by SPxLPBase< R >::readMPS().

static void soplex::MPSreadObjsen ( MPSInput &  mps)
static

Process OBJSEN section. This Section is an ILOG extension.

Definition at line 940 of file spxlpbase_real.cpp.

References MPSInput::field0(), MPSInput::field1(), MPSInput::readLine(), ROWS, MPSInput::setObjSense(), MPSInput::setSection(), and MPSInput::syntaxError().

static void soplex::MPSreadObjsen ( MPSInput &  mps)
static
static void soplex::MPSreadRows ( MPSInput &  mps,
LPRowSetBase< Real > &  rset,
NameSet &  rnames,
SPxOut *  spxout 
)
static
static void soplex::MPSwriteRecord ( std::ostream &  os,
const char *  indicator,
const char *  name,
const char *  name1 = 0,
const Real  value1 = 0.0,
const char *  name2 = 0,
const Real  value2 = 0.0 
)
static

Definition at line 1896 of file spxlpbase_real.cpp.

References REAL_FORMAT.

static void soplex::MPSwriteRecord ( std::ostream &  os,
const char *  indicator,
const char *  name,
SPxOut *  spxout,
const char *  name1 = 0,
const Rational  value1 = 0,
const char *  name2 = 0,
const Rational  value2 = 0 
)
static

Definition at line 2016 of file spxlpbase_rational.cpp.

References MAX_LINE_WRITE_LEN, and MSG_WARNING.

Referenced by SPxLPBase< R >::writeMPS().

bool msginconsistent ( const char *  name,
const char *  file,
int  line 
)

Definition at line 33 of file spxdefines.cpp.

References MSG_ERROR.

static int soplex::NameSetNameHashFunction ( const NameSet::Name *  str)
static

returns the hash value of the name.

Definition at line 184 of file nameset.cpp.

References NameSet::Name::name.

bool soplex::NE ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)

returns true iff |a-b| > eps

Definition at line 372 of file spxdefines.h.

References spxAbs().

Referenced by SPxMainSM::fixColumn(), SPxMainSM::handleExtremes(), SPxSolver::nonbasicValue(), and SPxLPBase< R >::readLPF().

bool soplex::NErel ( Real  a,
Real  b,
Real  eps = Param::epsilon() 
)

returns true iff |relDiff(a,b)| > eps

Definition at line 420 of file spxdefines.h.

References relDiff(), and spxAbs().

Referenced by SPxMainSM::duplicateCols(), SPxMainSM::duplicateRows(), SPxMainSM::simplifyCols(), and SPxMainSM::simplifyRows().

bool operator!= ( const Rational &  r,
const Rational &  s 
)

inequality operator

Definition at line 3516 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator!= ( const Rational &  r,
const double &  s 
)

inequality operator for Rational and double

Definition at line 3565 of file rational.cpp.

References DEFAULT_EPS_ZERO, Rational::dpointer, and Rational::Private::privatevalue.

bool operator!= ( const double &  r,
const Rational &  s 
)

inequality operator double and Rational

inequality operator for double and Rational

Definition at line 3615 of file rational.cpp.

References DEFAULT_EPS_ZERO, Rational::dpointer, and Rational::Private::privatevalue.

bool operator!= ( const Rational &  r,
const long double &  s 
)

inequality operator for Rational and long double

Definition at line 3666 of file rational.cpp.

References DEFAULT_EPS_ZERO, Rational::dpointer, and Rational::Private::privatevalue.

bool operator!= ( const long double &  r,
const Rational &  s 
)

inequality operator long double and Rational

inequality operator for long double and Rational

Definition at line 3716 of file rational.cpp.

References DEFAULT_EPS_ZERO, Rational::dpointer, and Rational::Private::privatevalue.

bool operator!= ( const Rational &  r,
const int &  s 
)

inequality operator for Rational and int

Definition at line 3765 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator!= ( const int &  r,
const Rational &  s 
)

inequality operator for int and Rational

Definition at line 3813 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

DVectorBase<R> soplex::operator* ( const VectorBase< R > &  v,
x 
)

Scaling.

Definition at line 1210 of file basevectors.h.

References VectorBase< R >::dim().

Referenced by VectorBase< R >::operator*().

DVectorBase<R> soplex::operator* ( x,
const VectorBase< R > &  v 
)

Scaling.

Definition at line 1225 of file basevectors.h.

DSVectorBase<R> soplex::operator* ( const SVectorBase< R > &  v,
x 
)
DSVectorBase<R> soplex::operator* ( x,
const SVectorBase< R > &  v 
)

Scaling.

Definition at line 1250 of file basevectors.h.

Rational soplex::operator* ( const double &  d,
const Rational &  r 
)

multiplication operator for double and Rational

Definition at line 3873 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

Rational soplex::operator* ( const int &  d,
const Rational &  r 
)

multiplication operator for int and Rational

Definition at line 3909 of file rational.cpp.

DVectorBase<R> soplex::operator+ ( const VectorBase< R > &  v,
const VectorBase< R > &  w 
)

Addition.

Definition at line 1121 of file basevectors.h.

References VectorBase< R >::dim().

DVectorBase<R> soplex::operator+ ( const VectorBase< R > &  v,
const SVectorBase< R > &  w 
)

Addition.

Definition at line 1138 of file basevectors.h.

DVectorBase<R> soplex::operator+ ( const SVectorBase< R > &  v,
const VectorBase< R > &  w 
)

Addition.

Definition at line 1152 of file basevectors.h.

Rational operator+ ( const double &  d,
const Rational &  r 
)

addition operator for double and Rational

Definition at line 3853 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

Rational operator+ ( const int &  d,
const Rational &  r 
)

addition operator for int and Rational

Definition at line 3893 of file rational.cpp.

DVectorBase<R> soplex::operator- ( const VectorBase< R > &  vec)

Negation.

Definition at line 1106 of file basevectors.h.

References VectorBase< R >::dim().

DVectorBase<R> soplex::operator- ( const VectorBase< R > &  v,
const VectorBase< R > &  w 
)

Subtraction.

Definition at line 1162 of file basevectors.h.

References VectorBase< R >::dim().

DVectorBase<R> soplex::operator- ( const VectorBase< R > &  v,
const SVectorBase< R > &  w 
)

Subtraction.

Definition at line 1179 of file basevectors.h.

DVectorBase<R> soplex::operator- ( const SVectorBase< R > &  v,
const VectorBase< R > &  w 
)

Subtraction.

Definition at line 1193 of file basevectors.h.

References VectorBase< R >::dim().

Rational soplex::operator- ( const double &  d,
const Rational &  r 
)

subtraction operator for double and Rational

Definition at line 3863 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

Rational soplex::operator- ( const int &  d,
const Rational &  r 
)

subtraction operator for int and Rational

Definition at line 3901 of file rational.cpp.

Rational operator- ( const Rational &  r)

Negation.

Definition at line 3946 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

Rational soplex::operator/ ( const double &  d,
const Rational &  r 
)

division operator for double and Rational

Definition at line 3883 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

Rational soplex::operator/ ( const int &  d,
const Rational &  r 
)

division operator for int and Rational

Definition at line 3917 of file rational.cpp.

bool operator< ( const Rational &  r,
const Rational &  s 
)

less than operator

Definition at line 3524 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator< ( const Rational &  r,
const double &  s 
)

less than operator for Rational and double

Definition at line 3574 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator< ( const double &  r,
const Rational &  s 
)

less than operator double and Rational

less than operator for double and Rational

Definition at line 3624 of file rational.cpp.

bool operator< ( const Rational &  r,
const long double &  s 
)

less than operator for Rational and long double

Definition at line 3675 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator< ( const long double &  r,
const Rational &  s 
)

less than operator long double and Rational

less than operator for long double and Rational

Definition at line 3725 of file rational.cpp.

bool operator< ( const Rational &  r,
const int &  s 
)

less than operator for Rational and int

Definition at line 3773 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator< ( const int &  r,
const Rational &  s 
)

less than operator for int and Rational

Definition at line 3821 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

std::ostream& soplex::operator<< ( std::ostream &  s,
const SPxScaler &  sc 
)
std::ostream& soplex::operator<< ( std::ostream &  os,
const SPxId &  id 
)

Definition at line 52 of file spxid.cpp.

References SPxId::COL_ID, SPxId::INVALID, and SPxId::ROW_ID.

std::ostream& soplex::operator<< ( std::ostream &  os,
const SPxBasis::Desc::Status &  stat 
)
SPxOut& soplex::operator<< ( SPxOut &  stream,
const SPxOut::struct_Verbosity &  verbosity 
)

output operator with verbosity level struct

Definition at line 214 of file spxout.h.

References SPxOut::setVerbosity(), and SPxOut::struct_Verbosity::v_.

SPxOut& soplex::operator<< ( SPxOut &  _spxout,
std::ostream &(*)(std::ostream &)  manip 
)

Passes standard manipulators without arguments, like std::endl or std::ios::right to the current stream.

Definition at line 257 of file spxout.h.

References PASS_TO_CURRENT_OSTREAM.

SPxOut& soplex::operator<< ( SPxOut &  _spxout,
t 
)

Passes everything else to the current stream. In particular, this includes structs corresponding to manipulators with arguments, such as the struct _Setw for the setw() manipulator.

Definition at line 267 of file spxout.h.

References PASS_TO_CURRENT_OSTREAM.

std::ostream & operator<< ( std::ostream &  s,
const NameSet &  nset 
)

Definition at line 288 of file nameset.cpp.

References DataKey::idx, DataKey::info, NameSet::key(), and NameSet::num().

std::ostream& soplex::operator<< ( std::ostream &  s,
const VectorBase< R > &  vec 
)

Output operator.

Definition at line 1087 of file basevectors.h.

std::ostream & operator<< ( std::ostream &  os,
const SPxBasis::SPxStatus &  status 
)
std::ostream& soplex::operator<< ( std::ostream &  os,
const SVectorBase< R > &  v 
)

Output operator.

Definition at line 1310 of file basevectors.h.

std::ostream& soplex::operator<< ( std::ostream &  os,
const SVSetBase< R > &  s 
)

Output operator.

Definition at line 1339 of file basevectors.h.

std::ostream & operator<< ( std::ostream &  os,
const SPxSolver::VarStatus &  status 
)

Pretty-printing of variable status.

Definition at line 1775 of file spxsolver.cpp.

References SPxSolver::BASIC, SPxSolver::FIXED, SPxSolver::ON_LOWER, SPxSolver::ON_UPPER, SPxSolver::UNDEFINED, and SPxSolver::ZERO.

std::ostream & operator<< ( std::ostream &  os,
const SPxSolver::Type &  status 
)

Pretty-printing of algorithm.

Definition at line 1870 of file spxsolver.cpp.

References SPxSolver::ENTER, and SPxSolver::LEAVE.

std::ostream & operator<< ( std::ostream &  os,
const SPxSolver::Representation &  status 
)

Pretty-printing of representation.

Definition at line 1889 of file spxsolver.cpp.

References SPxSolver::COLUMN, and SPxSolver::ROW.

std::ostream & operator<< ( std::ostream &  os,
const Rational &  r 
)

print Rational

Definition at line 3486 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator<= ( const Rational &  r,
const Rational &  s 
)

less than or equal to operator

Definition at line 3532 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator<= ( const Rational &  r,
const double &  s 
)

less than or equal to operator for Rational and double

Definition at line 3582 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator<= ( const double &  r,
const Rational &  s 
)

less than or equal to operator double and Rational

less than or equal to operator for double and Rational

Definition at line 3632 of file rational.cpp.

bool operator<= ( const Rational &  r,
const long double &  s 
)

less than or equal to operator for Rational and long double

Definition at line 3683 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator<= ( const long double &  r,
const Rational &  s 
)

less than or equal to operator long double and Rational

less than or equal to operator for long double and Rational

Definition at line 3733 of file rational.cpp.

bool operator<= ( const Rational &  r,
const int &  s 
)

less than or equal to operator for Rational and int

Definition at line 3781 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator<= ( const int &  r,
const Rational &  s 
)

less than or equal to operator for int and Rational

Definition at line 3829 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator== ( const Rational &  r,
const Rational &  s 
)

equality operator

Definition at line 3508 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator== ( const Rational &  r,
const double &  s 
)

equality operator for Rational and double

Definition at line 3556 of file rational.cpp.

References DEFAULT_EPS_ZERO, Rational::dpointer, and Rational::Private::privatevalue.

bool operator== ( const double &  r,
const Rational &  s 
)

equality operator for double and Rational

Definition at line 3606 of file rational.cpp.

References DEFAULT_EPS_ZERO, Rational::dpointer, and Rational::Private::privatevalue.

bool operator== ( const Rational &  r,
const long double &  s 
)

equality operator for Rational and long double

Definition at line 3657 of file rational.cpp.

References DEFAULT_EPS_ZERO, Rational::dpointer, and Rational::Private::privatevalue.

bool operator== ( const long double &  r,
const Rational &  s 
)

equality operator for long double and Rational

Definition at line 3707 of file rational.cpp.

References DEFAULT_EPS_ZERO, Rational::dpointer, and Rational::Private::privatevalue.

bool operator== ( const Rational &  r,
const int &  s 
)

equality operator for Rational and int

Definition at line 3757 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator== ( const int &  r,
const Rational &  s 
)

equality operator for int and Rational

Definition at line 3805 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator> ( const Rational &  r,
const Rational &  s 
)

greater than operator

Definition at line 3540 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator> ( const Rational &  r,
const double &  s 
)

greater than operator for Rational and double

Definition at line 3590 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator> ( const double &  r,
const Rational &  s 
)

greater than operator double and Rational

greater than operator for double and Rational

Definition at line 3640 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator> ( const Rational &  r,
const long double &  s 
)

greater than operator for Rational and long double

Definition at line 3691 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator> ( const long double &  r,
const Rational &  s 
)

greater than operator long double and Rational

greater than operator for long double and Rational

Definition at line 3741 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator> ( const Rational &  r,
const int &  s 
)

greater than operator for Rational and int

Definition at line 3789 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator> ( const int &  r,
const Rational &  s 
)

greater than operator for int and Rational

Definition at line 3837 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator>= ( const Rational &  r,
const Rational &  s 
)

greater than or equal to operator

Definition at line 3548 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator>= ( const Rational &  r,
const double &  s 
)

greater than or equal to operator for Rational and double

Definition at line 3598 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator>= ( const double &  r,
const Rational &  s 
)

greater than or equal to operator double and Rational

greater than or equal to operator for double and Rational

Definition at line 3648 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator>= ( const Rational &  r,
const long double &  s 
)

greater than or equal to operator for Rational and long double

Definition at line 3699 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator>= ( const long double &  r,
const Rational &  s 
)

greater than or equal to operator long double and Rational

greater than or equal to operator for long double and Rational

Definition at line 3749 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator>= ( const Rational &  r,
const int &  s 
)

greater than or equal to operator for Rational and int

Definition at line 3797 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

bool operator>= ( const int &  r,
const Rational &  s 
)

greater than or equal to operator for int and Rational

Definition at line 3845 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

std::istream& soplex::operator>> ( std::istream &  s,
DVectorBase< R > &  vec 
)

Input operator.

Definition at line 1260 of file basevectors.h.

References VectorBase< R >::dim(), and DVectorBase< R >::reDim().

static void soplex::patch_field ( char *  buf,
int  beg,
int  end 
)
static

change all blanks inside a field to PATCH_CHAR.

Definition at line 43 of file mpsinput.cpp.

References BLANK, and PATCH_CHAR.

Referenced by MPSInput::readLine().

bool readStringRational ( const char *  s,
Rational &  value 
)

read Rational from string

Definition at line 3478 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

Referenced by SoPlex::_parseSettingsLine(), and SoPlex::parseSettingsString().

bool reconstructSol ( SolRational &  solution)
bool reconstructVector ( VectorRational &  input,
const Rational &  denomBoundSquared,
const DIdxSet *  indexSet 
)

reconstruct a rational vector

Definition at line 228 of file ratrecon.cpp.

References VectorBase< R >::dim(), IdxSet::index(), MSG_DEBUG, IdxSet::size(), spx_alloc(), and spx_free().

Referenced by SoPlex::_reconstructSolutionRational(), and reconstructSol().

Real soplex::relDiff ( Real  a,
Real  b 
)

returns (a-b) / max(|a|,|b|,1.0)

Definition at line 360 of file spxdefines.h.

References maxAbs().

Referenced by EQrel(), GErel(), GTrel(), LErel(), LTrel(), and NErel().

static void soplex::setDualStatus ( SPxBasis::Desc &  desc,
const SPxSolver &  base,
const SPxId &  id 
)
static
int sign ( const Rational &  r)

Sign function; returns 1 if r > 0, 0 if r = 0, and -1 if r < 0.

Definition at line 3938 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

Referenced by SoPlex::_reconstructSolutionRational(), SPxSolver::enter(), and SPxSolver::leave().

void soplex::spx_alloc ( T &  p,
int  n = 1 
)

Allocate memory.

Parameters
psome pointer
nthe number of elements p will point to.
Exceptions
SPxMemoryExceptionif memory could not be allocated.

Definition at line 48 of file spxalloc.h.

Referenced by SoPlex::_ensureRationalLP(), SoPlex::_preprocessAndSolveReal(), SoPlex::_solveRealForRational(), SoPlex::_unitVectorRational(), DSVectorBase< Real >::allocMem(), DSVectorBase< R >::allocMem(), Array< soplex::UnitVectorBase >::Array(), SLUFactor::assign(), SLUFactorRational::assign(), ClassArray< Nonzero< Real > >::ClassArray(), SLUFactor::clear(), SLUFactorRational::clear(), SPxMainSM::FixBoundsPS::clone(), SPxMainSM::FreeZeroObjVariablePS::clone(), SPxMainSM::ZeroObjColSingletonPS::clone(), SPxMainSM::FreeColSingletonPS::clone(), SPxMainSM::DoubletonEquationPS::clone(), SPxMainSM::DuplicateRowsPS::clone(), SPxMainSM::DuplicateColsPS::clone(), TimerFactory::createTimer(), DataArray< const soplex::SVectorBase * >::DataArray(), DataSet< soplex::SVSetBase::DLPSV >::DataSet(), DIdxSet::DIdxSet(), SPxMainSM::duplicateCols(), SPxMainSM::duplicateRows(), DVectorBase< Real >::DVectorBase(), DVectorBase< R >::DVectorBase(), SPxMainSM::fixColumn(), SoPlex::getBasisInverseColReal(), SoPlex::getBasisInverseRowReal(), SoPlex::getBasisInverseTimesVecReal(), SPxMainSM::handleExtremes(), SPxMainSM::handleRowObjectives(), IdxSet::IdxSet(), CLUFactor::initFactorRings(), CLUFactorRational::initFactorRings(), Array< soplex::UnitVectorBase >::insert(), main(), NameSet::memPack(), NameSet::NameSet(), SoPlex::operator=(), IdxSet::operator=(), Rational::Rational(), SPxBasis::readBasis(), SoPlex::readBasisFile(), SPxLPBase< R >::readLPF(), SPxLPBase< R >::readMPS(), reconstructVector(), ClassArray< Nonzero< Real > >::reMax(), DataArray< const soplex::SVectorBase * >::reMax(), Array< soplex::UnitVectorBase >::remove(), SPxMainSM::removeEmpty(), SPxMainSM::removeRowSingleton(), DVectorBase< Real >::reSize(), DSVectorBase< Real >::setMax(), CLUFactor::setupColVals(), CLUFactor::setupRowVals(), CLUFactorRational::setupRowVals(), SPxMainSM::simplifyCols(), SPxMainSM::simplifyDual(), SPxMainSM::simplifyRows(), SLUFactor::SLUFactor(), SLUFactorRational::SLUFactorRational(), SoPlex::SoPlex(), SPxOut::SPxOut(), SSVectorBase< Real >::SSVectorBase(), and SoPlexLegacy::unsimplify().

void soplex::spx_free ( T &  p)

Release memory.

Definition at line 109 of file spxalloc.h.

Referenced by SoPlex::_ensureRealLPLoaded(), SoPlex::_preprocessAndSolveReal(), SoPlex::_readFileRational(), SoPlex::_solveRational(), SoPlex::_solveRealForRational(), CLUFactor::Temp::clear(), CLUFactorRational::Temp::clear(), SLUFactor::clear(), SLUFactorRational::clear(), Array< soplex::UnitVectorBase >::clear(), IsList< soplex::SVSetBase::DLPSV >::clear(), DataSet< soplex::SVSetBase::DLPSV >::DataSet(), SPxMainSM::duplicateCols(), SPxMainSM::duplicateRows(), SLUFactorRational::freeAll(), SLUFactor::freeAll(), CLUFactor::freeFactorRings(), CLUFactorRational::freeFactorRings(), SoPlex::getBasisInverseColReal(), SoPlex::getBasisInverseRowReal(), SoPlex::getBasisInverseTimesVecReal(), Array< soplex::UnitVectorBase >::insert(), main(), NameSet::memPack(), IdxSet::operator=(), SPxMainSM::operator=(), SPxBasis::readBasis(), SoPlex::readBasisFile(), SPxLPBase< R >::readLPF(), SPxLPBase< R >::readMPS(), reconstructVector(), ClassArray< Nonzero< Real > >::reMax(), DataArray< const soplex::SVectorBase * >::reMax(), Array< soplex::UnitVectorBase >::remove(), DVectorBase< Real >::reSize(), SoPlex::setIntParam(), DSVectorBase< Real >::setMax(), CLUFactor::setupColVals(), CLUFactor::setupRowVals(), CLUFactorRational::setupRowVals(), SPxMainSM::simplify(), TimerFactory::switchTimer(), SoPlexLegacy::unsimplify(), SPxMainSM::unsimplify(), Array< soplex::UnitVectorBase >::~Array(), ClassArray< Nonzero< Real > >::~ClassArray(), DataArray< const soplex::SVectorBase * >::~DataArray(), DataSet< soplex::SVSetBase::DLPSV >::~DataSet(), DIdxSet::~DIdxSet(), DSVectorBase< Real >::~DSVectorBase(), DSVectorBase< R >::~DSVectorBase(), DVectorBase< Real >::~DVectorBase(), IdxSet::~IdxSet(), NameSet::~NameSet(), Rational::~Rational(), SLUFactor::~SLUFactor(), SoPlex::~SoPlex(), SPxBasis::~SPxBasis(), SPxMainSM::~SPxMainSM(), SPxOut::~SPxOut(), SPxSimplifier::~SPxSimplifier(), SPxSolver::~SPxSolver(), SSVectorBase< Real >::~SSVectorBase(), and SoPlex::Statistics::~Statistics().

Real soplex::spxAbs ( Real  a)

returns |a|

Definition at line 318 of file spxdefines.h.

Rational spxAbs ( const Rational &  r)

Absolute.

absolute function

Definition at line 3925 of file rational.cpp.

References Rational::dpointer, and Rational::Private::privatevalue.

Referenced by SoPlex::_computeInfeasBox(), SoPlex::_lift(), SoPlex::_performOptIRStable(), SoPlex::_project(), SPxScaler::computeScalingVecs(), SPxBasis::condition(), SPxSolver::enter(), EQ(), EQrel(), SPxMainSM::ForceConstraintPS::execute(), SPxBoundFlippingRT::flipAndUpdate(), CLUFactorRational::forestUpdate(), CLUFactor::forestUpdate(), SPxWeightST::generate(), SPxBoundFlippingRT::getData(), SPxMainSM::handleExtremes(), CLUFactor::initFactorMatrix(), CLUFactorRational::initFactorMatrix(), SSVectorBase< Real >::isConsistent(), isNotZero(), SPxBoundFlippingRT::isSmaller(), isZero(), SPxSolver::leave(), SPxDevexPR::left4(), SPxSteepPR::left4(), VectorBase< Real >::maxAbs(), maxAbs(), SVectorBase< Real >::maxAbs(), SSVectorBase< Real >::maxAbs(), SPxScaler::maxAbsColscale(), SPxScaler::maxAbsRowscale(), SPxScaler::maxColRatio(), SPxScaler::maxRowRatio(), VectorBase< Real >::minAbs(), SVectorBase< Real >::minAbs(), SPxScaler::minAbsColscale(), SPxScaler::minAbsRowscale(), MPSreadRanges(), NE(), NErel(), SSVectorBase< Real >::operator=(), SoPlexLegacy::qualBoundViolation(), SPxSolver::qualBoundViolation(), SoPlexLegacy::qualConstraintViolation(), SPxSolver::qualConstraintViolation(), SPxSolver::qualSlackViolation(), SPxLPBase< R >::readLPF(), SPxBoundFlippingRT::selectEnter(), SPxBoundFlippingRT::selectLeave(), CLUFactor::selectPivots(), CLUFactorRational::selectPivots(), CLUFactor::setPivot(), CLUFactorRational::setPivot(), SSVectorBase< Real >::setup(), SSVectorBase< Real >::setup_and_assign(), CLUFactor::setupColVals(), CLUFactorRational::setupColVals(), SPxVectorST::setupWeights(), SPxWeightST::setupWeights(), SSVectorBase< Real >::setValue(), SPxMainSM::simplifyRows(), SPxSolver::solve(), CLUFactor::solveUleft(), CLUFactorRational::update(), CLUFactor::update(), CLUFactorRational::updateNoClear(), and CLUFactor::updateNoClear().

Real soplex::spxNextafter ( Real  x,
Real  y 
)

Definition at line 331 of file spxdefines.h.

Referenced by SoPlex::_restoreLPReal().

void soplex::SPxQuicksort ( T *  keys,
int  end,
COMPARATOR &  compare,
int  start = 0,
bool  type = true 
)

Generic QuickSort implementation.

This template function sorts an array t holding n elements of type T using compare for comparisons. Class COMPARATOR must provide an overloaded operator()(const T& t1,const T& t2) which returns

  • < 0, if t1 is to appear before t2,
  • = 0, if t1 and t2 can appear in any order, or
  • > 0, if t1 is to appear after t2.

Definition at line 73 of file sorter.h.

References SHELLSORTMAX, and SPxShellsort().

Referenced by SPxMainSM::duplicateCols(), SPxMainSM::duplicateRows(), initPrefs(), SPxMainSM::simplifyCols(), and SPxQuicksortPart().

int soplex::SPxQuicksortPart ( T *  keys,
COMPARATOR &  compare,
int  start,
int  end,
int  size,
int  start2 = 0,
int  end2 = 0,
bool  type = true 
)

Generic implementation of Partial QuickSort.

This template function sorts an array t holding n elements of type T partially using compare for comparisons, i.e. ensures that the size smallest elements are sorted to the front.

Class COMPARATOR must provide an overloaded operator()(const T& t1,const T& t2) which returns

  • < 0, if t1 is to appear before t2,
  • = 0, if t1 and t2 can appear in any order, or
  • > 0, if t1 is to appear after t2.
Parameters
keysarray of elements to be sorted between index start and end
comparecomparator
startindex of first element in range to be sorted
endindex of last element in range to be sorted, plus 1
sizeguaranteed number of sorted elements
start2auxiliary start index of sub range used for recursive call
end2auxiliary end index of sub range used for recursive call
typetype of sorting, to be more flexable on degenerated cases

Definition at line 219 of file sorter.h.

References SPxQuicksort().

Referenced by SPxDevexPR::buildBestPriceVectorEnterCoDim(), SPxSteepPR::buildBestPriceVectorEnterCoDim(), SPxDevexPR::buildBestPriceVectorEnterDim(), SPxSteepPR::buildBestPriceVectorEnterDim(), SPxDevexPR::buildBestPriceVectorLeave(), SPxSteepPR::buildBestPriceVectorLeave(), SPxBoundFlippingRT::selectEnter(), and SPxBoundFlippingRT::selectLeave().

void soplex::SPxShellsort ( T *  keys,
int  end,
COMPARATOR &  compare,
int  start = 0 
)

shell-sort an array of data elements; use it only for arrays smaller than 25 entries

Definition at line 31 of file sorter.h.

Referenced by SPxQuicksort().

Real soplex::spxSqrt ( Real  a)
int totalSizeRational ( const Rational *  vector,
const int  length,
const int  base 
)

Total size of rational vector.

Definition at line 3956 of file rational.cpp.

Referenced by SolBase< Real >::totalSizeDual(), and SolBase< Real >::totalSizePrimal().

SPxOut::struct_Verbosity soplex::verb ( const SPxOut::Verbosity &  v)

manipulator to be used in an output statement

Definition at line 205 of file spxout.h.

References SPxOut::struct_Verbosity::v_.

Variable Documentation

const Real infinity = DEFAULT_INFINITY

Definition at line 26 of file spxdefines.cpp.

Referenced by SoPlex::_rangeTypeReal(), SoPlex::_restoreLPReal(), SPxScaler::applyScaling(), SPxSolver::changeLhsStatus(), SPxSolver::changeLowerStatus(), SPxSolver::changeRhsStatus(), SPxSolver::changeUpperStatus(), SPxSolver::clearDualBounds(), SPxBoundFlippingRT::collectBreakpointsMax(), SPxBoundFlippingRT::collectBreakpointsMin(), SPxSolver::computeEnterCoPrhs4Col(), SPxSolver::computeEnterCoPrhs4Row(), SPxSolver::computeFrhs(), SPxSolver::computeFrhs1(), SPxSolver::computeFrhs2(), SPxSolver::computeFrhsXtra(), SPxSolver::computeLeaveCoPrhs4Col(), SPxSolver::computeLeaveCoPrhs4Row(), SPxScaler::computeScalingVecs(), SPxBasis::dualColStatus(), SPxBasis::dualRowStatus(), SPxMainSM::duplicateCols(), SPxMainSM::duplicateRows(), SPxSolver::enter(), SPxSteepPR::entered4(), SPxMainSM::FreeZeroObjVariablePS::execute(), SPxMainSM::ZeroObjColSingletonPS::execute(), SPxMainSM::DuplicateColsPS::execute(), SPxMainSM::FixBoundsPS::FixBoundsPS(), SPxMainSM::fixColumn(), SPxBoundFlippingRT::flipAndUpdate(), SPxWeightST::generate(), SPxSolver::getEnterVals(), SPxSolver::getLeaveVals(), SPxSolver::getLeaveVals2(), SPxMainSM::handleExtremes(), SPxSolver::isBasisValid(), SPxBasis::isDescValid(), SPxSolver::isTimeLimitReached(), SPxSolver::leave(), SPxSteepPR::left4(), SPxBasis::loadDesc(), LPFreadInfinity(), LPFwriteBounds(), LPFwriteRow(), LPFwriteRows(), LPRowBase< R >::LPRowBase(), main(), SPxScaler::maxColRatio(), SPxHarrisRT::maxDelta(), SPxFastRT::maxDelta(), SPxScaler::maxRowRatio(), SPxFastRT::maxSelect(), SVectorBase< Real >::minAbs(), SPxScaler::minAbsColscale(), SPxLPBase< Real >::minAbsNzo(), SPxScaler::minAbsRowscale(), SPxHarrisRT::minDelta(), SPxFastRT::minDelta(), SPxFastRT::minSelect(), MPSgetRHS(), MPSreadBounds(), MPSreadCols(), MPSreadRanges(), MPSreadRhs(), MPSreadRows(), primalColStatus(), SPxLPBase< Real >::printProblemStatistics(), SPxBasis::readBasis(), SPxLPBase< R >::readLPF(), SPxMainSM::removeEmpty(), SPxMainSM::removeRowSingleton(), SPxDefaultRT::selectEnter(), SPxHarrisRT::selectEnter(), SPxWeightPR::selectEnter(), SPxDevexPR::selectEnterHyperCoDim(), SPxSteepPR::selectEnterHyperCoDim(), SPxDevexPR::selectEnterHyperDim(), SPxSteepPR::selectEnterHyperDim(), SPxSteepPR::selectEnterX(), SPxDefaultRT::selectLeave(), SPxHarrisRT::selectLeave(), SPxWeightPR::selectLeave(), SPxDevexPR::selectLeaveHyper(), SPxSteepPR::selectLeaveHyper(), SPxSteepPR::selectLeaveSparse(), SPxSteepPR::selectLeaveX(), SPxSolver::setEnterBound4Col(), SPxSolver::setEnterBound4Row(), SPxSolver::setLeaveBound4Col(), SPxSolver::setLeaveBound4Row(), SPxWeightST::setPrimalStatus(), SPxSolver::setTerminationTime(), LPRowBase< R >::setType(), LPRowSetBase< Real >::setType(), SPxWeightST::setupWeights(), SPxMainSM::simplify(), SPxMainSM::simplifyCols(), SPxMainSM::simplifyDual(), SPxMainSM::simplifyRows(), SPxSolver::solve(), CLUFactor::solveUleft(), SPxSolver::terminate(), LPRowBase< R >::type(), LPRowSetBase< Real >::type(), LPRowBase< R >::value(), LPRowSetBase< Real >::value(), SPxSolver::value(), SPxSolver::varStatusToBasisStatusCol(), SPxSolver::varStatusToBasisStatusRow(), SPxBasis::writeBasis(), SPxLPBase< R >::writeMPS(), and SPxSolver::writeState().

const Real reject_leave_tol = 1e-10
static

Definition at line 30 of file leave.cpp.

Referenced by SPxSolver::leave().

const Real verySparseFactor = 0.001
static

Definition at line 34 of file clufactor.cpp.

Referenced by CLUFactorRational::forestUpdate(), and CLUFactor::forestUpdate().

const Real verySparseFactor = 0.001
static

Definition at line 35 of file clufactor_rational.cpp.

const Real verySparseFactor4left = 0.1
static

Definition at line 36 of file clufactor.cpp.

Referenced by CLUFactorRational::vSolveLeft(), and CLUFactor::vSolveLeft().

const Real verySparseFactor4left = 0.1
static

Definition at line 37 of file clufactor_rational.cpp.

const Real verySparseFactor4right = 0.2
static

Definition at line 36 of file clufactor_rational.cpp.