|
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpi_spx.cpp
Go to the documentation of this file.
24 * This is an implementation of SCIP's LP interface for SoPlex. While the ratio test is fixed to SoPlex's standard,
25 * different pricing methods can be chosen and an autopricing strategy (start with devex and switch to steepest edge
26 * after too many iterations) is implemented directly. Scaler and simplifier may be applied if solving from scratch.
28 * For debugging purposes, the SoPlex results can be double checked with CPLEX if WITH_LPSCHECK is defined. This may
29 * yield false positives, since the LP is dumped to a file for transfering it to CPLEX, hence, precision may be lost.
32 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
34 #define AUTOPRICING_ITERSWITCH 10000/**< start with devex and switch to steepest edge after this many iterations */
35 #define STRONGBRANCH_RESTOREBASIS /**< if defined then in SCIPlpiStrongbranch() we restore the basis after the
44 #define CHECK_SPXSOLVE true /**< shall the SoPlex results in spxSolve() be double checked using CPLEX? */
45 #define CHECK_SPXSTRONGBRANCH true /**< shall the SoPlex results in SCIPlpStrongbranch() be double checked using CPLEX? */
47 #define EXIT_AT_WRONG_RESULT false/**< shall program be exited if CPLEX returns different result than SoPlex? */
55 SCIPmessagePrintWarning(m_messagehdlr, "CPLEX error <%d>; SoPlex result unchecked\n", _cpxstat_); \
133 /** Macro for a single SoPlex call for which exceptions have to be catched - return an LP error. We
134 * make no distinction between different exception types, e.g., between memory allocation and other
219 SPxSolver::VarStatus* m_rowstat; /**< basis status of rows before starting strong branching (if available, 0 otherwise) */
220 SPxSolver::VarStatus* m_colstat; /**< basis status of columns before starting strong branching (if available, 0 otherwise) */
319 /**< return feastol set by SCIPlpiSetRealpar(), which might be tighter than what SoPlex accepted */
339 /**< return opttol set by SCIPlpiSetRealpar(), which might be tighter than what SoPlex accepted */
532 SCIPdebugMessage("switching to %s representation of the basis\n", p_rep == SPxSolver::ROW ? "row" : "column");
690 m_spxout.setVerbosity(getLpInfo() ? (SPxOut::Verbosity) SOPLEX_VERBLEVEL : (SPxOut::Verbosity) 0);
707 setTerminationIter(m_autopricing && (m_itlim < 0 || m_itlim - m_itused > AUTOPRICING_ITERSWITCH) ? AUTOPRICING_ITERSWITCH : m_itlim - m_itused);
711 if( m_autopricing && m_stat == SPxSolver::ABORT_ITER && (m_itlim < 0 || m_itlim - m_itused > 0) )
734 if( getDoubleCheck() && (m_stat == SPxSolver::OPTIMAL || m_stat == SPxSolver::UNBOUNDED || m_stat == SPxSolver::INFEASIBLE || m_stat == SPxSolver::ABORT_VALUE) )
780 SCIPerrorMessage("In %s: SoPlex returned status=%d (%s) while CPLEX claims obj=%.10f %s %.10f=obj.limit (%s) (checknum=%d)\n",
781 m_probname, m_stat, spxStatusString(m_stat), cpxobj, getSense() == SPxSolver::MINIMIZE ? "<" : ">",
782 getSense() == SPxSolver::MINIMIZE ? getObjUpLimit() : getObjLoLimit(), cpxStatusString(cpxstat), m_checknum);
789 SCIPerrorMessage("In %s: SoPlex returned status=%d (%s) while CPLEX claims obj=%.10f %s %.10f=obj.limit (%s) (checknum=%d)\n",
790 m_probname, m_stat, spxStatusString(m_stat), cpxobj, getSense() == SPxSolver::MINIMIZE ? "<" : ">",
791 getSense() == SPxSolver::MINIMIZE ? getObjUpLimit() : getObjLoLimit(), cpxStatusString(cpxstat), m_checknum);
799 SCIPerrorMessage("In %s: SoPlex returned status=%d (%s) while CPLEX claims obj=%.10f %s %.10f=obj.limit (%s) (checknum=%d)\n",
800 m_probname, m_stat, spxStatusString(m_stat), cpxobj, getSense() == SPxSolver::MINIMIZE ? "<" : ">",
801 getSense() == SPxSolver::MINIMIZE ? getObjUpLimit() : getObjLoLimit(), cpxStatusString(cpxstat), m_checknum);
825 /* SCIPerrorMessage("In %s: LP optimal; SoPlex value=%.10f %s CPLEX value=%.10f too good (checknum=%d)\n", value(),
831 SCIPerrorMessage("In %s: LP optimal; SoPlex value=%.10f %s CPLEX value=%.10f suboptimal (checknum=%d)\n", value(),
877 /* use scaler and simplifier if no basis is loaded, i.e., if solving for the first time or from scratch */
878 if( SPxSolver::getBasisStatus() == SPxBasis::NO_PROBLEM && getScaling() && nCols() > 0 && nRows() > 0 )
888 if( SPxSolver::getBasisStatus() == SPxBasis::NO_PROBLEM && getPresolving() && nCols() > 0 && nRows() > 0 )
913 m_spxout.setVerbosity(getLpInfo() ? (SPxOut::Verbosity) SOPLEX_VERBLEVEL : (SPxOut::Verbosity) 0);
929 SCIPdebugMessage("simplifier ended with status %u (0: OKAY, 1: INFEASIBLE, 2: DUAL_INFEASIBLE, 3: UNBOUNDED, 4: VANISHED)\n", result);
934 SCIPdebugMessage("simplifier detected primal or dual infeasibility - reloading and solving unsimplified LP\n");
1000 if( (simplifier == NULL || result != SPxSimplifier::VANISHED) && SPxSolver::getBasisStatus() >= SPxBasis::REGULAR )
1040 SCIPmessagePrintWarning(m_messagehdlr, "SoPlex unsimplification unsuccessful; solving again without LP presolving (SoPlex says %s)\n",
1238 int namestoragesize, /**< size of namestorage (if 0, storageleft returns the storage needed) */
1283 int namestoragesize, /**< size of namestorage (if 0, -storageleft returns the storage needed) */
1333 typedef SCIP_DUALPACKET COLPACKET; /* each column needs two bits of information (basic/on_lower/on_upper) */
1335 typedef SCIP_DUALPACKET ROWPACKET; /* each row needs two bit of information (basic/on_lower/on_upper) */
1351 SCIP_Real rowrepswitch; /**< use row representation if number of rows divided by number of columns exceeds this value */
1352 SCIP_Real conditionlimit; /**< maximum condition number of LP basis counted as stable (-1.0: no limit) */
1353 SCIP_Bool checkcondition; /**< should condition number of LP basis be checked for stability? */
1372 };
1384 )
1406 )
1435 {
1444 {
1509 )
1535 {
1583 {
1587 sprintf(spxname, "SoPlex %d.%d.%d.%d", SOPLEX_VERSION/100, (SOPLEX_VERSION % 100)/10, SOPLEX_VERSION % 10, SOPLEX_SUBVERSION); /*lint !e778*/
1589 sprintf(spxname, "SoPlex %d.%d.%d", SOPLEX_VERSION/100, (SOPLEX_VERSION % 100)/10, SOPLEX_VERSION % 10); /*lint !e778*/
1598 {
1599 sprintf(spxdesc, "%s", "Linear Programming Solver developed at Zuse Institute Berlin (soplex.zib.de)");
1613 {
1641 /* we use this construction to allocate the memory for the SoPlex class also via the blockmemshell */
1670 {
1769 const int* beg, /**< start index of each column in ind- and val-array, or NULL if nnonz == 0 */
1846 /** deletes columns from SCIP_LP; the new position of a column must not be greater that its old position */
1868 /* SoPlex removeCols() method deletes the columns with dstat[i] < 0, so we have to negate the values */
1961 /** deletes rows from SCIP_LP; the new position of a row must not be greater that its old position */
1983 /* SoPlex removeRows() method deletes the rows with dstat[i] < 0, so we have to negate the values */
1996 {
2126 )
2183 /** multiplies a row with a non-zero scalar; for negative scalars, the row's sense is switched accordingly */
2248 /** multiplies a column with a non-zero scalar; the objective value is multiplied with the scalar, and the bounds
2336 )
2353 )
2370 )
2380 /* SoPlex has no direct method to return the number of nonzeros, so we have to count them manually */
2396 /** gets columns from LP problem object; the arrays have to be large enough to store all values
2533 int namestoragesize, /**< size of namestorage (if 0, storageleft returns the storage needed) */
2559 int namestoragesize, /**< size of namestorage (if 0, -storageleft returns the storage needed) */
2582 )
2590 *objsen = (lpi->spx->getSense() == SPxLP::MINIMIZE) ? SCIP_OBJSEN_MINIMIZE : SCIP_OBJSEN_MAXIMIZE;
2707 /** solves LP -- used for both, primal and dual simplex, because SoPlex doesn't distinct the two cases */
2720 SCIPdebugMessage("calling SoPlex solve(): %d cols, %d rows, rep=%s\n", lpi->spx->nCols(), lpi->spx->nRows(),
2736 SCIPdebugMessage(" -> SoPlex status: %d, basis status: %d\n", lpi->spx->getStatus(), lpi->spx->basis().status());
2760 {
2769 /* first decide if we want to switch the basis representation; in order to avoid oscillatory behaviour, we add the
2793 retcode = rowrep ? spxSolve(lpi, SPxSolver::ROW, SPxSolver::LEAVE) : spxSolve(lpi, SPxSolver::COLUMN, SPxSolver::ENTER);
2804 {
2813 /* first decide if we want to switch the basis representation; in order to avoid oscillatory behaviour, we add the
2837 retcode = rowrep ? spxSolve(lpi, SPxSolver::ROW, SPxSolver::ENTER) : spxSolve(lpi, SPxSolver::COLUMN, SPxSolver::LEAVE);
2844 /** calls barrier or interior point algorithm to solve the LP with crossover to simplex basis */
2848 )
2861 {
2872 {
2906 SCIPdebugMessage("calling SCIPlpiStrongbranch() on variable %d (%d iterations)\n", col, itlim);
2981 /* if cycling or singular basis occured and we started not from the pre-strong-branching basis, then we restore the
2983 if( (status == SPxSolver::ABORT_CYCLING || status == SPxSolver::SINGULAR) && !fromparentbasis && spx->iterations() < itlim )
2985 SCIPdebugMessage(" --> Repeat strong branching down with %d iterations after restoring basis\n", itlim - spx->iterations());
3059 /* if cycling or singular basis occured and we started not from the pre-strong-branching basis, then we restore the
3061 else if( (status == SPxSolver::ABORT_CYCLING || status == SPxSolver::SINGULAR) && !fromparentbasis && spx->iterations() < itlim )
3063 SCIPdebugMessage(" --> Repeat strong branching up with %d iterations after restoring basis\n", itlim - spx->iterations());
3163 retcode = lpiStrongbranch(lpi, cols[j], psols[j], itlim, &(down[j]), &(up[j]), &(downvalid[j]), &(upvalid[j]), iter);
3237 retcode = lpiStrongbranch(lpi, cols[j], psols[j], itlim, &(down[j]), &(up[j]), &(downvalid[j]), &(upvalid[j]), iter);
3265 {
3290 /** returns TRUE iff LP is proven to have a primal unbounded ray (but not necessary a primal feasible point);
3296 {
3305 /** returns TRUE iff LP is proven to have a primal unbounded ray (but not necessary a primal feasible point),
3311 {
3328 {
3334 assert(lpi->spx->getStatus() != SPxSolver::UNBOUNDED || lpi->spx->basis().status() == SPxBasis::UNBOUNDED);
3336 /* if SoPlex returns unbounded, this may only mean that an unbounded ray is available, not necessarily a primal
3346 {
3359 {
3369 /* note that the solver status may be ABORT_VALUE and the basis status optimal; if we are optimal, isPerturbed() may
3375 ((basestatus == SPxBasis::PRIMAL || basestatus == SPxBasis::UNBOUNDED) && !lpi->spx->isPerturbed());
3378 /** returns TRUE iff LP is proven to have a dual unbounded ray (but not necessary a dual feasible point);
3384 {
3393 /** returns TRUE iff LP is proven to have a dual unbounded ray (but not necessary a dual feasible point),
3399 {
3412 {
3418 return (lpi->spx->getStatus() == SPxSolver::INFEASIBLE && lpi->spx->basis().status() == SPxBasis::DUAL
3426 {
3439 {
3445 /* note that the solver status may be ABORT_VALUE and the basis status optimal; if we are optimal, isPerturbed() may
3448 assert(lpi->spx->basis().status() == SPxBasis::OPTIMAL || lpi->spx->getStatus() != SPxSolver::OPTIMAL);
3458 {
3465 /* note that the solver status may be ABORT_VALUE and the basis status optimal; if we are optimal, isPerturbed() may
3475 {
3482 /* If the condition number of the basis should be checked, everything above the specified threshold is counted
3504 return (lpi->spx->getStatus() != SPxSolver::ERROR && lpi->spx->getStatus() != SPxSolver::SINGULAR);
3511 {
3524 {
3537 {
3550 {
3559 /** tries to reset the internal status of the LP solver in order to ignore an instability of the last solving call */
3563 )
3580 )
3650 )
3683 )
3711 )
3725 * Such information is usually only available, if also a (maybe not optimal) solution is available.
3726 * The LPI should return SCIP_INVALID for @p quality, if the requested quality is not available.
3793 /* Return if the vectors are not set up. The vectors are not set up if for instance we preformed
3812 /* In row case for computing the reduced costs one needs to pass through the basis. We skip this expensive part. */
3840 /** gets current basis status for columns and rows; arrays must be large enough to store the basis status */
4016 /** returns the indices of the basic columns and rows; basic column n gives value n, basic row m gives value -1-m */
4020 )
4031 /* the LPi defines the basis as column basis, i.e., as the set of (indices of) non-fixed columns and rows; if SoPlex
4046 /* for row representation, return the complement of the basis; for this, we need to loop through all rows and columns */
4144 * @note The LP interface defines slack variables to have coefficient +1. This means that if, internally, the LP solver
4145 * uses a -1 coefficient, then rows associated with slacks variables whose coefficient is -1, should be negated;
4242 /* should be a valid row index and in the column basis matrix, i.e., not basic w.r.t. row representation */
4254 /* should be a valid column index and in the column basis matrix, i.e., not basic w.r.t. row representation */
4396 /* should be a valid row index and in the column basis matrix, i.e., not basic w.r.t. row representation */
4405 /* should be a valid column index and in the column basis matrix, i.e., not basic w.r.t. row representation */
4433 * @note The LP interface defines slack variables to have coefficient +1. This means that if, internally, the LP solver
4434 * uses a -1 coefficient, then rows associated with slacks variables whose coefficient is -1, should be negated;
4477 * @note The LP interface defines slack variables to have coefficient +1. This means that if, internally, the LP solver
4478 * uses a -1 coefficient, then rows associated with slacks variables whose coefficient is -1, should be negated;
4484 const SCIP_Real* binvrow, /**< row in (A_B)^-1 from prior call to SCIPlpiGetBInvRow(), or NULL */
4536 * @note The LP interface defines slack variables to have coefficient +1. This means that if, internally, the LP solver
4537 * uses a -1 coefficient, then rows associated with slacks variables whose coefficient is -1, should be negated;
4629 /** loads LPi state (like basis information) into solver; note that the LP might have been extended with additional
4736 )
4745 )
4761 )
4820 SCIPdebugMessage("storing SoPlex LPi pricing norms in %p (%d rows, %d cols)\n", (void *) *lpinorms, nrows, ncols);
4843 /** loads LPi pricing norms into solver; note that the LP might have been extended with additional
4867 SCIPdebugMessage("loading LPi simplex norms %p (%d rows, %d cols) into SoPlex LP with %d rows and %d cols\n",
5136 {
5146 )
5170 {
5186 )
5219 )
SCIP_RETCODE SCIPlpiScaleCol(SCIP_LPI *lpi, int col, SCIP_Real scaleval) Definition: lpi_spx.cpp:2254 static void lpistateUnpack(const SCIP_LPISTATE *lpistate, int *cstat, int *rstat) Definition: lpi_spx.cpp:1469 SCIP_Bool SCIPlpiIsPrimalUnbounded(SCIP_LPI *lpi) Definition: lpi_spx.cpp:3328 SCIP_RETCODE SCIPlpiDelCols(SCIP_LPI *lpi, int firstcol, int lastcol) Definition: lpi_spx.cpp:1828 SCIP_RETCODE SCIPlpiReadState(SCIP_LPI *lpi, const char *fname) Definition: lpi_spx.cpp:4745 static SCIP_RETCODE ensureRstatMem(SCIP_LPI *lpi, int num) Definition: lpi_spx.cpp:1406 SCIP_RETCODE SCIPlpiGetSolFeasibility(SCIP_LPI *lpi, SCIP_Bool *primalfeasible, SCIP_Bool *dualfeasible) Definition: lpi_spx.cpp:3275 SCIP_RETCODE SCIPlpiLoadColLP(SCIP_LPI *lpi, SCIP_OBJSEN objsen, int ncols, const SCIP_Real *obj, const SCIP_Real *lb, const SCIP_Real *ub, char **colnames, int nrows, const SCIP_Real *lhs, const SCIP_Real *rhs, char **, int nnonz, const int *beg, const int *ind, const SCIP_Real *val) Definition: lpi_spx.cpp:1703 Definition: type_lpi.h:58 SCIP_RETCODE SCIPlpiSolveBarrier(SCIP_LPI *lpi, SCIP_Bool crossover) Definition: lpi_spx.cpp:2848 Definition: type_lpi.h:50 SCIP_RETCODE SCIPlpiGetObjval(SCIP_LPI *lpi, SCIP_Real *objval) Definition: lpi_spx.cpp:3580 static SCIP_RETCODE getRedCostEst(SPxSCIP *spx, int col, SCIP_Real *val) Definition: lpi_spx.cpp:3789 Definition: type_lpi.h:41 void SCIPdecodeDualBit(const SCIP_DUALPACKET *inp, int *out, int count) Definition: bitencode.c:298 interface methods for specific LP solvers SCIP_RETCODE SCIPlpiGetState(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPISTATE **lpistate) Definition: lpi_spx.cpp:4591 SCIP_RETCODE SCIPlpiGetBase(SCIP_LPI *lpi, int *cstat, int *rstat) Definition: lpi_spx.cpp:3844 Definition: type_lpi.h:52 Definition: type_lpi.h:72 SCIP_RETCODE SCIPlpiWriteLP(SCIP_LPI *lpi, const char *fname) Definition: lpi_spx.cpp:5219 SCIP_RETCODE SCIPlpiGetObj(SCIP_LPI *lpi, int firstcol, int lastcol, SCIP_Real *vals) Definition: lpi_spx.cpp:2599 static void lpistatePack(SCIP_LPISTATE *lpistate, const int *cstat, const int *rstat) Definition: lpi_spx.cpp:1453 Definition: struct_message.h:35 Definition: type_lpi.h:89 SCIP_RETCODE SCIPlpiScaleRow(SCIP_LPI *lpi, int row, SCIP_Real scaleval) Definition: lpi_spx.cpp:2187 Definition: type_retcode.h:38 SCIP_RETCODE SCIPlpiGetPrimalRay(SCIP_LPI *lpi, SCIP_Real *ray) Definition: lpi_spx.cpp:3650 SCIP_RETCODE SCIPlpiGetIterations(SCIP_LPI *lpi, int *iterations) Definition: lpi_spx.cpp:3711 Definition: lpi_cpx.c:191 Definition: type_lpi.h:53 SCIP_Bool SCIPlpiIsPrimalInfeasible(SCIP_LPI *lpi) Definition: lpi_spx.cpp:3346 Definition: type_lpi.h:70 SCIP_RETCODE SCIPlpiStrongbranchFrac(SCIP_LPI *lpi, int col, SCIP_Real psol, int itlim, SCIP_Real *down, SCIP_Real *up, SCIP_Bool *downvalid, SCIP_Bool *upvalid, int *iter) Definition: lpi_spx.cpp:3105 SCIP_RETCODE SCIPlpiDelColset(SCIP_LPI *lpi, int *dstat) Definition: lpi_spx.cpp:1850 SCIP_RETCODE SCIPlpiStartStrongbranch(SCIP_LPI *lpi) Definition: lpi_spx.cpp:2861 SCIP_RETCODE SCIPlpiGetBasisInd(SCIP_LPI *lpi, int *bind) Definition: lpi_spx.cpp:4020 Definition: type_lpi.h:90 packing single and dual bit values static SCIP_RETCODE ensureCstatMem(SCIP_LPI *lpi, int num) Definition: lpi_spx.cpp:1384 static void lpistateFree(SCIP_LPISTATE **lpistate, BMS_BLKMEM *blkmem) Definition: lpi_spx.cpp:1509 Definition: type_retcode.h:36 SCIP_RETCODE SCIPlpiGetSol(SCIP_LPI *lpi, SCIP_Real *objval, SCIP_Real *primsol, SCIP_Real *dualsol, SCIP_Real *activity, SCIP_Real *redcost) Definition: lpi_spx.cpp:3597 Definition: type_retcode.h:42 Definition: type_lpi.h:34 SCIP_RETCODE SCIPlpiGetCols(SCIP_LPI *lpi, int firstcol, int lastcol, SCIP_Real *lb, SCIP_Real *ub, int *nnonz, int *beg, int *ind, SCIP_Real *val) Definition: lpi_spx.cpp:2403 Definition: type_lpi.h:44 SCIP_RETCODE SCIPlpiChgCoef(SCIP_LPI *lpi, int row, int col, SCIP_Real newval) Definition: lpi_spx.cpp:2102 void SCIPmessagePrintWarning(SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) Definition: message.c:411 SCIP_RETCODE SCIPlpiSetState(SCIP_LPI *lpi, BMS_BLKMEM *, SCIP_LPISTATE *lpistate) Definition: lpi_spx.cpp:4635 static SCIP_RETCODE spxSolve(SCIP_LPI *lpi, SPxSolver::Representation rep, SPxSolver::Type type) Definition: lpi_spx.cpp:2712 static SCIP_RETCODE lpiGetBInvVec(SCIP_LPI *lpi, SCIP_Real *rhs, SCIP_Real *coef) Definition: lpi_spx.cpp:4316 Definition: type_lpi.h:51 Definition: type_retcode.h:33 Definition: type_lpi.h:33 Definition: type_lpi.h:45 SCIP_RETCODE SCIPlpiFreeState(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPISTATE **lpistate) Definition: lpi_spx.cpp:4718 Definition: type_retcode.h:46 SCIP_RETCODE SCIPlpiFreeNorms(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPINORMS **lpinorms) Definition: lpi_spx.cpp:4881 SCIP_RETCODE SCIPlpiStrongbranchInt(SCIP_LPI *lpi, int col, SCIP_Real psol, int itlim, SCIP_Real *down, SCIP_Real *up, SCIP_Bool *downvalid, SCIP_Bool *upvalid, int *iter) Definition: lpi_spx.cpp:3179 SCIP_RETCODE SCIPlpiChgSides(SCIP_LPI *lpi, int nrows, const int *ind, const SCIP_Real *lhs, const SCIP_Real *rhs) Definition: lpi_spx.cpp:2058 void SCIPencodeDualBit(const int *inp, SCIP_DUALPACKET *out, int count) Definition: bitencode.c:228 Definition: type_lpi.h:68 SCIP_RETCODE SCIPlpiGetCoef(SCIP_LPI *lpi, int row, int col, SCIP_Real *val) Definition: lpi_spx.cpp:2678 SCIP_RETCODE SCIPlpiSetBase(SCIP_LPI *lpi, int *cstat, int *rstat) Definition: lpi_spx.cpp:3931 SCIP_RETCODE SCIPlpiGetIntpar(SCIP_LPI *lpi, SCIP_LPPARAM type, int *ival) Definition: lpi_spx.cpp:4914 static SCIP_RETCODE lpiStrongbranch(SCIP_LPI *lpi, int col, SCIP_Real psol, int itlim, SCIP_Real *down, SCIP_Real *up, SCIP_Bool *downvalid, SCIP_Bool *upvalid, int *iter) Definition: lpi_spx.cpp:2885 static void setFeastol(SCIP_NLPIPROBLEM *nlpiproblem, SCIP_Real feastol) Definition: nlpi_ipopt.cpp:435 Definition: type_lpi.h:71 Definition: type_lpi.h:67 SCIP_RETCODE SCIPlpiChgObj(SCIP_LPI *lpi, int ncols, int *ind, SCIP_Real *obj) Definition: lpi_spx.cpp:2146 SCIP_RETCODE SCIPlpiGetRowNames(SCIP_LPI *lpi, int firstrow, int lastrow, char **rownames, char *namestorage, int namestoragesize, int *storageleft) Definition: lpi_spx.cpp:2556 Definition: type_lpi.h:43 SCIP_RETCODE SCIPlpiGetColNames(SCIP_LPI *lpi, int firstcol, int lastcol, char **colnames, char *namestorage, int namestoragesize, int *storageleft) Definition: lpi_spx.cpp:2530 SCIP_RETCODE SCIPlpiDelRows(SCIP_LPI *lpi, int firstrow, int lastrow) Definition: lpi_spx.cpp:1943 SCIP_RETCODE SCIPlpiGetNorms(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPINORMS **lpinorms) Definition: lpi_spx.cpp:4794 static SCIP_RETCODE lpistateCreate(SCIP_LPISTATE **lpistate, BMS_BLKMEM *blkmem, int ncols, int nrows) Definition: lpi_spx.cpp:1485 SCIP_RETCODE SCIPlpiSetNorms(SCIP_LPI *lpi, BMS_BLKMEM *blkmem, SCIP_LPINORMS *lpinorms) Definition: lpi_spx.cpp:4849 SCIP_RETCODE SCIPlpiSetIntpar(SCIP_LPI *lpi, SCIP_LPPARAM type, int ival) Definition: lpi_spx.cpp:4959 SCIP_RETCODE SCIPlpiGetBInvRow(SCIP_LPI *lpi, int r, SCIP_Real *coef, int *inds, int *ninds) Definition: lpi_spx.cpp:4151 Definition: type_lpi.h:47 SCIP_RETCODE SCIPlpiStrongbranchesFrac(SCIP_LPI *lpi, int *cols, int ncols, SCIP_Real *psols, int itlim, SCIP_Real *down, SCIP_Real *up, SCIP_Bool *downvalid, SCIP_Bool *upvalid, int *iter) Definition: lpi_spx.cpp:3135 SCIP_RETCODE SCIPlpiGetDualfarkas(SCIP_LPI *lpi, SCIP_Real *dualfarkas) Definition: lpi_spx.cpp:3683 Definition: type_retcode.h:40 Definition: lpi_clp.cpp:121 SCIP_RETCODE SCIPlpiEndStrongbranch(SCIP_LPI *lpi) Definition: lpi_spx.cpp:2872 SCIP_RETCODE SCIPlpiGetBounds(SCIP_LPI *lpi, int firstcol, int lastcol, SCIP_Real *lbs, SCIP_Real *ubs) Definition: lpi_spx.cpp:2622 SCIP_Bool SCIPlpiHasStateBasis(SCIP_LPI *lpi, SCIP_LPISTATE *lpistate) Definition: lpi_spx.cpp:4736 SCIP_RETCODE SCIPlpiAddRows(SCIP_LPI *lpi, int nrows, const SCIP_Real *lhs, const SCIP_Real *rhs, char **, int nnonz, const int *beg, const int *ind, const SCIP_Real *val) Definition: lpi_spx.cpp:1881 SCIP_RETCODE SCIPlpiGetSides(SCIP_LPI *lpi, int firstrow, int lastrow, SCIP_Real *lhss, SCIP_Real *rhss) Definition: lpi_spx.cpp:2650 SCIP_RETCODE SCIPlpiGetRealpar(SCIP_LPI *lpi, SCIP_LPPARAM type, SCIP_Real *dval) Definition: lpi_spx.cpp:5033 public methods for message output Definition: type_lpi.h:79 SCIP_RETCODE SCIPlpiGetRealSolQuality(SCIP_LPI *lpi, SCIP_LPSOLQUALITY qualityindicator, SCIP_Real *quality) Definition: lpi_spx.cpp:3731 Definition: type_lpi.h:69 Definition: lpi_clp.cpp:93 SCIP_RETCODE SCIPlpiGetBInvARow(SCIP_LPI *lpi, int r, const SCIP_Real *binvrow, SCIP_Real *coef, int *inds, int *ninds) Definition: lpi_spx.cpp:4484 SCIP_RETCODE SCIPlpiAddCols(SCIP_LPI *lpi, int ncols, const SCIP_Real *obj, const SCIP_Real *lb, const SCIP_Real *ub, char **, int nnonz, const int *beg, const int *ind, const SCIP_Real *val) Definition: lpi_spx.cpp:1764 SCIP_RETCODE SCIPlpiCreate(SCIP_LPI **lpi, SCIP_MESSAGEHDLR *messagehdlr, const char *name, SCIP_OBJSEN objsen) Definition: lpi_spx.cpp:1632 SCIP_RETCODE SCIPlpiChgBounds(SCIP_LPI *lpi, int ncols, const int *ind, const SCIP_Real *lb, const SCIP_Real *ub) Definition: lpi_spx.cpp:2014 SCIP_RETCODE SCIPlpiReadLP(SCIP_LPI *lpi, const char *fname) Definition: lpi_spx.cpp:5186 SCIP_RETCODE SCIPlpiGetRows(SCIP_LPI *lpi, int firstrow, int lastrow, SCIP_Real *lhs, SCIP_Real *rhs, int *nnonz, int *beg, int *ind, SCIP_Real *val) Definition: lpi_spx.cpp:2468 Definition: type_lpi.h:66 Definition: type_retcode.h:37 Definition: type_lpi.h:46 Definition: type_lpi.h:80 SCIP_RETCODE SCIPlpiIgnoreInstability(SCIP_LPI *lpi, SCIP_Bool *success) Definition: lpi_spx.cpp:3563 Definition: type_retcode.h:43 SCIP_RETCODE SCIPlpiGetBInvACol(SCIP_LPI *lpi, int c, SCIP_Real *coef, int *inds, int *ninds) Definition: lpi_spx.cpp:4543 SCIP_RETCODE SCIPlpiChgObjsen(SCIP_LPI *lpi, SCIP_OBJSEN objsen) Definition: lpi_spx.cpp:2126 SCIP_RETCODE SCIPlpiGetObjsen(SCIP_LPI *lpi, SCIP_OBJSEN *objsen) Definition: lpi_spx.cpp:2582 Definition: type_lpi.h:55 SCIP_RETCODE SCIPlpiStrongbranchesInt(SCIP_LPI *lpi, int *cols, int ncols, SCIP_Real *psols, int itlim, SCIP_Real *down, SCIP_Real *up, SCIP_Bool *downvalid, SCIP_Bool *upvalid, int *iter) Definition: lpi_spx.cpp:3209 Definition: type_lpi.h:82 Definition: type_lpi.h:48 Definition: type_lpi.h:81 SCIP_RETCODE SCIPlpiSetRealpar(SCIP_LPI *lpi, SCIP_LPPARAM type, SCIP_Real dval) Definition: lpi_spx.cpp:5078 SCIP_RETCODE SCIPlpiGetBInvCol(SCIP_LPI *lpi, int c, SCIP_Real *coef, int *inds, int *ninds) Definition: lpi_spx.cpp:4440 SCIP_RETCODE SCIPlpiDelRowset(SCIP_LPI *lpi, int *dstat) Definition: lpi_spx.cpp:1965 SCIP_RETCODE SCIPlpiWriteState(SCIP_LPI *lpi, const char *fname) Definition: lpi_spx.cpp:4761 Definition: type_lpi.h:59 |