|
internal methods for NLPI solver interfaces
- Author
- Stefan Vigerske
-
Thorsten Gellermann
Definition in file nlpi.h.
Go to the source code of this file.
|
| SCIP_DECL_SORTPTRCOMP (SCIPnlpiComp) |
|
SCIP_RETCODE | SCIPnlpiCreate (SCIP_NLPI **nlpi, const char *name, const char *description, int priority, SCIP_DECL_NLPICOPY((*nlpicopy)), SCIP_DECL_NLPIFREE((*nlpifree)), SCIP_DECL_NLPIGETSOLVERPOINTER((*nlpigetsolverpointer)), SCIP_DECL_NLPICREATEPROBLEM((*nlpicreateproblem)), SCIP_DECL_NLPIFREEPROBLEM((*nlpifreeproblem)), SCIP_DECL_NLPIGETPROBLEMPOINTER((*nlpigetproblempointer)), SCIP_DECL_NLPIADDVARS((*nlpiaddvars)), SCIP_DECL_NLPIADDCONSTRAINTS((*nlpiaddconstraints)), SCIP_DECL_NLPISETOBJECTIVE((*nlpisetobjective)), SCIP_DECL_NLPICHGVARBOUNDS((*nlpichgvarbounds)), SCIP_DECL_NLPICHGCONSSIDES((*nlpichgconssides)), SCIP_DECL_NLPIDELVARSET((*nlpidelvarset)), SCIP_DECL_NLPIDELCONSSET((*nlpidelconsset)), SCIP_DECL_NLPICHGLINEARCOEFS((*nlpichglinearcoefs)), SCIP_DECL_NLPICHGQUADCOEFS((*nlpichgquadcoefs)), SCIP_DECL_NLPICHGEXPRTREE((*nlpichgexprtree)), SCIP_DECL_NLPICHGNONLINCOEF((*nlpichgnonlincoef)), SCIP_DECL_NLPICHGOBJCONSTANT((*nlpichgobjconstant)), SCIP_DECL_NLPISETINITIALGUESS((*nlpisetinitialguess)), SCIP_DECL_NLPISOLVE((*nlpisolve)), SCIP_DECL_NLPIGETSOLSTAT((*nlpigetsolstat)), SCIP_DECL_NLPIGETTERMSTAT((*nlpigettermstat)), SCIP_DECL_NLPIGETSOLUTION((*nlpigetsolution)), SCIP_DECL_NLPIGETSTATISTICS((*nlpigetstatistics)), SCIP_DECL_NLPIGETWARMSTARTSIZE((*nlpigetwarmstartsize)), SCIP_DECL_NLPIGETWARMSTARTMEMO((*nlpigetwarmstartmemo)), SCIP_DECL_NLPISETWARMSTARTMEMO((*nlpisetwarmstartmemo)), SCIP_DECL_NLPIGETINTPAR((*nlpigetintpar)), SCIP_DECL_NLPISETINTPAR((*nlpisetintpar)), SCIP_DECL_NLPIGETREALPAR((*nlpigetrealpar)), SCIP_DECL_NLPISETREALPAR((*nlpisetrealpar)), SCIP_DECL_NLPIGETSTRINGPAR((*nlpigetstringpar)), SCIP_DECL_NLPISETSTRINGPAR((*nlpisetstringpar)), SCIP_DECL_NLPISETMESSAGEHDLR((*nlpisetmessagehdlr)), SCIP_NLPIDATA *nlpidata) |
|
SCIP_RETCODE | SCIPnlpiCopy (BMS_BLKMEM *blkmem, SCIP_NLPI *sourcenlpi, SCIP_NLPI **targetnlpi) |
|
SCIP_RETCODE | SCIPnlpiFree (SCIP_NLPI **nlpi) |
|
void * | SCIPnlpiGetSolverPointer (SCIP_NLPI *nlpi) |
|
SCIP_RETCODE | SCIPnlpiCreateProblem (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM **problem, const char *name) |
|
SCIP_RETCODE | SCIPnlpiFreeProblem (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM **problem) |
|
void * | SCIPnlpiGetProblemPointer (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem) |
|
SCIP_RETCODE | SCIPnlpiAddVars (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int nvars, const SCIP_Real *lbs, const SCIP_Real *ubs, const char **varnames) |
|
SCIP_RETCODE | SCIPnlpiAddConstraints (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int nconss, const SCIP_Real *lhss, const SCIP_Real *rhss, const int *nlininds, int *const *lininds, SCIP_Real *const *linvals, const int *nquadelems, SCIP_QUADELEM *const *quadelems, int *const *exprvaridxs, SCIP_EXPRTREE *const *exprtrees, const char **names) |
|
SCIP_RETCODE | SCIPnlpiSetObjective (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int nlins, const int *lininds, const SCIP_Real *linvals, int nquadelems, const SCIP_QUADELEM *quadelems, const int *exprvaridxs, const SCIP_EXPRTREE *exprtree, const SCIP_Real constant) |
|
SCIP_RETCODE | SCIPnlpiChgVarBounds (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int nvars, const int *indices, const SCIP_Real *lbs, const SCIP_Real *ubs) |
|
SCIP_RETCODE | SCIPnlpiChgConsSides (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int nconss, const int *indices, const SCIP_Real *lhss, const SCIP_Real *rhss) |
|
SCIP_RETCODE | SCIPnlpiDelVarSet (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int *dstats) |
|
SCIP_RETCODE | SCIPnlpiDelConsSet (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int *dstats) |
|
SCIP_RETCODE | SCIPnlpiChgLinearCoefs (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, const int idx, int nvals, const int *varidxs, const SCIP_Real *vals) |
|
SCIP_RETCODE | SCIPnlpiChgQuadCoefs (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int idx, int nquadelems, const SCIP_QUADELEM *quadelems) |
|
SCIP_RETCODE | SCIPnlpiChgExprtree (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int idxcons, const int *exprvaridxs, SCIP_EXPRTREE *exprtree) |
|
SCIP_RETCODE | SCIPnlpiChgNonlinCoef (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, int idxcons, int idxparam, SCIP_Real value) |
|
SCIP_RETCODE | SCIPnlpiChgObjConstant (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_Real objconstant) |
|
SCIP_RETCODE | SCIPnlpiSetInitialGuess (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_Real *primalvalues, SCIP_Real *consdualvalues, SCIP_Real *varlbdualvalues, SCIP_Real *varubdualvalues) |
|
SCIP_RETCODE | SCIPnlpiSolve (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem) |
|
SCIP_NLPSOLSTAT | SCIPnlpiGetSolstat (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem) |
|
SCIP_NLPTERMSTAT | SCIPnlpiGetTermstat (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem) |
|
SCIP_RETCODE | SCIPnlpiGetSolution (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_Real **primalvalues, SCIP_Real **consdualvalues, SCIP_Real **varlbdualvalues, SCIP_Real **varubdualvalues) |
|
SCIP_RETCODE | SCIPnlpiGetStatistics (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_NLPSTATISTICS *statistics) |
|
SCIP_RETCODE | SCIPnlpiGetWarmstartSize (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, size_t *size) |
|
SCIP_RETCODE | SCIPnlpiGetWarmstartMemo (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, void *buffer) |
|
SCIP_RETCODE | SCIPnlpiSetWarmstartMemo (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, void *buffer) |
|
|
SCIP_RETCODE | SCIPnlpiGetIntPar (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_NLPPARAM type, int *ival) |
|
SCIP_RETCODE | SCIPnlpiSetIntPar (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_NLPPARAM type, int ival) |
|
SCIP_RETCODE | SCIPnlpiGetRealPar (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_NLPPARAM type, SCIP_Real *dval) |
|
SCIP_RETCODE | SCIPnlpiSetRealPar (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_NLPPARAM type, SCIP_Real dval) |
|
SCIP_RETCODE | SCIPnlpiGetStringPar (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_NLPPARAM type, const char **sval) |
|
SCIP_RETCODE | SCIPnlpiSetStringPar (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem, SCIP_NLPPARAM type, const char *sval) |
|
SCIP_RETCODE | SCIPnlpiSetMessageHdlr (SCIP_NLPI *nlpi, SCIP_MESSAGEHDLR *messagehdlr) |
|
SCIP_NLPIDATA * | SCIPnlpiGetData (SCIP_NLPI *nlpi) |
|
const char * | SCIPnlpiGetName (SCIP_NLPI *nlpi) |
|
const char * | SCIPnlpiGetDesc (SCIP_NLPI *nlpi) |
|
int | SCIPnlpiGetPriority (SCIP_NLPI *nlpi) |
|
void | SCIPnlpiSetPriority (SCIP_NLPI *nlpi, int priority) |
|
SCIP_RETCODE | SCIPnlpStatisticsCreate (SCIP_NLPSTATISTICS **statistics) |
|
void | SCIPnlpStatisticsFree (SCIP_NLPSTATISTICS **statistics) |
|
int | SCIPnlpStatisticsGetNIterations (SCIP_NLPSTATISTICS *statistics) |
|
SCIP_Real | SCIPnlpStatisticsGetTotalTime (SCIP_NLPSTATISTICS *statistics) |
|
void | SCIPnlpStatisticsSetNIterations (SCIP_NLPSTATISTICS *statistics, int niterations) |
|
void | SCIPnlpStatisticsSetTotalTime (SCIP_NLPSTATISTICS *statistics, SCIP_Real totaltime) |
|
SCIP_DECL_SORTPTRCOMP |
( |
SCIPnlpiComp |
| ) |
|
compares two NLPIs w.r.t. their priority
Definition at line 34 of file nlpi.c.
SCIP_RETCODE SCIPnlpiCreate |
( |
SCIP_NLPI ** |
nlpi, |
|
|
const char * |
name, |
|
|
const char * |
description, |
|
|
int |
priority, |
|
|
SCIP_DECL_NLPICOPY((*nlpicopy)) |
, |
|
|
SCIP_DECL_NLPIFREE((*nlpifree)) |
, |
|
|
SCIP_DECL_NLPIGETSOLVERPOINTER((*nlpigetsolverpointer)) |
, |
|
|
SCIP_DECL_NLPICREATEPROBLEM((*nlpicreateproblem)) |
, |
|
|
SCIP_DECL_NLPIFREEPROBLEM((*nlpifreeproblem)) |
, |
|
|
SCIP_DECL_NLPIGETPROBLEMPOINTER((*nlpigetproblempointer)) |
, |
|
|
SCIP_DECL_NLPIADDVARS((*nlpiaddvars)) |
, |
|
|
SCIP_DECL_NLPIADDCONSTRAINTS((*nlpiaddconstraints)) |
, |
|
|
SCIP_DECL_NLPISETOBJECTIVE((*nlpisetobjective)) |
, |
|
|
SCIP_DECL_NLPICHGVARBOUNDS((*nlpichgvarbounds)) |
, |
|
|
SCIP_DECL_NLPICHGCONSSIDES((*nlpichgconssides)) |
, |
|
|
SCIP_DECL_NLPIDELVARSET((*nlpidelvarset)) |
, |
|
|
SCIP_DECL_NLPIDELCONSSET((*nlpidelconsset)) |
, |
|
|
SCIP_DECL_NLPICHGLINEARCOEFS((*nlpichglinearcoefs)) |
, |
|
|
SCIP_DECL_NLPICHGQUADCOEFS((*nlpichgquadcoefs)) |
, |
|
|
SCIP_DECL_NLPICHGEXPRTREE((*nlpichgexprtree)) |
, |
|
|
SCIP_DECL_NLPICHGNONLINCOEF((*nlpichgnonlincoef)) |
, |
|
|
SCIP_DECL_NLPICHGOBJCONSTANT((*nlpichgobjconstant)) |
, |
|
|
SCIP_DECL_NLPISETINITIALGUESS((*nlpisetinitialguess)) |
, |
|
|
SCIP_DECL_NLPISOLVE((*nlpisolve)) |
, |
|
|
SCIP_DECL_NLPIGETSOLSTAT((*nlpigetsolstat)) |
, |
|
|
SCIP_DECL_NLPIGETTERMSTAT((*nlpigettermstat)) |
, |
|
|
SCIP_DECL_NLPIGETSOLUTION((*nlpigetsolution)) |
, |
|
|
SCIP_DECL_NLPIGETSTATISTICS((*nlpigetstatistics)) |
, |
|
|
SCIP_DECL_NLPIGETWARMSTARTSIZE((*nlpigetwarmstartsize)) |
, |
|
|
SCIP_DECL_NLPIGETWARMSTARTMEMO((*nlpigetwarmstartmemo)) |
, |
|
|
SCIP_DECL_NLPISETWARMSTARTMEMO((*nlpisetwarmstartmemo)) |
, |
|
|
SCIP_DECL_NLPIGETINTPAR((*nlpigetintpar)) |
, |
|
|
SCIP_DECL_NLPISETINTPAR((*nlpisetintpar)) |
, |
|
|
SCIP_DECL_NLPIGETREALPAR((*nlpigetrealpar)) |
, |
|
|
SCIP_DECL_NLPISETREALPAR((*nlpisetrealpar)) |
, |
|
|
SCIP_DECL_NLPIGETSTRINGPAR((*nlpigetstringpar)) |
, |
|
|
SCIP_DECL_NLPISETSTRINGPAR((*nlpisetstringpar)) |
, |
|
|
SCIP_DECL_NLPISETMESSAGEHDLR((*nlpisetmessagehdlr)) |
, |
|
|
SCIP_NLPIDATA * |
nlpidata |
|
) |
| |
copies an NLPI
- Parameters
-
blkmem | block memory in target SCIP |
sourcenlpi | pointer to NLPI data structure to copy |
targetnlpi | buffer to store pointer to copied NLPI data structure |
Definition at line 165 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPsetCopyPlugins().
void* SCIPnlpiGetSolverPointer |
( |
SCIP_NLPI * |
nlpi | ) |
|
gets pointer for NLP solver
- Returns
- void pointer to solver
- Parameters
-
nlpi | pointer to NLPI datastructure |
Definition at line 201 of file nlpi.c.
References NULL.
creates a problem instance
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to store problem data |
name | name of problem, can be NULL |
Definition at line 211 of file nlpi.c.
References NULL.
Referenced by SCIPnlpCreate().
frees a problem instance
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer where problem data is stored |
Definition at line 224 of file nlpi.c.
References NULL.
Referenced by SCIPnlpFree().
gets pointer to solver-internal problem instance
- Returns
- void pointer to problem instance
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer where problem data is stored |
Definition at line 238 of file nlpi.c.
References NULL.
add variables to nlpi
- Parameters
-
nlpi | pointer to NLPI data structure |
problem | pointer to problem data structure |
nvars | number of variables |
lbs | lower bounds of variables, can be NULL if -infinity |
ubs | ubs upper bounds of variables, can be NULL if +infinity |
varnames | varnames names of variables, can be NULL |
Definition at line 250 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlpFlushVarAdditions().
SCIP_RETCODE SCIPnlpiAddConstraints |
( |
SCIP_NLPI * |
nlpi, |
|
|
SCIP_NLPIPROBLEM * |
problem, |
|
|
int |
nconss, |
|
|
const SCIP_Real * |
lhss, |
|
|
const SCIP_Real * |
rhss, |
|
|
const int * |
nlininds, |
|
|
int *const * |
lininds, |
|
|
SCIP_Real *const * |
linvals, |
|
|
const int * |
nquadelems, |
|
|
SCIP_QUADELEM *const * |
quadelems, |
|
|
int *const * |
exprvaridxs, |
|
|
SCIP_EXPRTREE *const * |
exprtrees, |
|
|
const char ** |
names |
|
) |
| |
add constraints to nlpi
- Parameters
-
nlpi | pointer to NLPI data structure |
problem | pointer to problem data structure |
nconss | number of added constraints |
lhss | left hand sides of constraints |
rhss | right hand sides of constraints |
nlininds | number of linear coefficients for each constraint, may be NULL in case of no linear part |
lininds | indices of variables for linear coefficients for each constraint, may be NULL in case of no linear part |
linvals | values of linear coefficient for each constraint, may be NULL in case of no linear part |
nquadelems | number of elements in matrix of quadratic part for each constraint, may be NULL in case of no quadratic part in any constraint |
quadelems | quadratic elements specifying quadratic part for each constraint, entry of array may be NULL in case of no quadratic part, may be NULL in case of no quadratic part in any constraint |
exprvaridxs | indices of variables in expression tree, maps variable indices in expression tree to indices in nlp, entry of array may be NULL in case of no expression tree, may be NULL in case of no expression tree in any constraint |
exprtrees | exprtrees expression tree for nonquadratic part of constraints, entry of array may be NULL in case of no nonquadratic part, may be NULL in case of no nonquadratic part in any constraint |
names | names of constraints, may be NULL or entries may be NULL |
Definition at line 268 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlpFlushNlRowAdditions(), SCIPaddToNlpiProblemQuadratic(), and SCIPaddToNlpiProblemSOC().
sets or overwrites objective, a minimization problem is expected
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
nlins | number of linear variables |
lininds | variable indices, may be NULL in case of no linear part |
linvals | coefficient values, may be NULL in case of no linear part |
nquadelems | number of entries in matrix of quadratic part |
quadelems | entries in matrix of quadratic part, may be NULL in case of no quadratic part |
exprvaridxs | indices of variables in expression tree, maps variable indices in expression tree to indices in nlp, may be NULL in case of no expression tree |
exprtree | expression tree for nonquadratic part of objective function, may be NULL in case of no nonquadratic part |
constant | objective value offset |
Definition at line 300 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlpFlushObjective().
change constraint sides
change constraint bounds
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
nconss | number of constraints to change sides |
indices | indices of constraints to change sides |
lhss | new left hand sides |
rhss | new right hand sides |
Definition at line 343 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlrowConstantChanged(), and nlrowSideChanged().
delete a set of variables
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
dstats | deletion status of vars; 1 if var should be deleted, 0 if not; afterwards -1 if var was deleted |
Definition at line 361 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlpFlushVarDeletions().
delete a set of constraints
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
dstats | deletion status of rows; 1 if row should be deleted, 0 if not; afterwards -1 if row was deleted |
Definition at line 377 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlpFlushNlRowDeletions().
changes or adds coefficients in the quadratic part of a constraint or objective
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
idx | index of constraint or -1 for objective |
nquadelems | number of entries in quadratic constraint to change |
quadelems | new elements in quadratic matrix (replacing already existing ones or adding new ones) |
Definition at line 411 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlrowQuadElemChanged().
change the expression tree in the nonlinear part
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
idxcons | index of constraint or -1 for objective |
exprvaridxs | indices of variables in expression tree, maps variable indices in expression tree to indices in nlp, or NULL |
exprtree | new expression tree, or NULL for no tree |
Definition at line 428 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlrowExprtreeChanged().
change the value of one parameter in the nonlinear part
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
considx | index of constraint or -1 for objective |
paramidx | index of parameter |
value | new value for nonlinear parameter |
Definition at line 445 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlrowExprtreeParamChanged().
change the constant offset in the objective
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
objconstant | new value for objective constant |
Definition at line 462 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
sets initial guess for primal variables
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
primalvalues | initial primal values for variables, or NULL to clear previous values |
consdualvalues | initial dual values for constraints, or NULL to clear previous values |
varlbdualvalues | initial dual values for variable lower bounds, or NULL to clear previous values |
varubdualvalues | initial dual values for variable upper bounds, or NULL to clear previous values |
Definition at line 477 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlpSolve(), and SCIPnlpSetInitialGuess().
tries to solve NLP
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
Definition at line 495 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlpSolve().
gives solution status
- Returns
- solution status
gives solution status, return: Solution Status
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
Definition at line 509 of file nlpi.c.
References NULL.
Referenced by nlpSolve().
gives termination reason
- Returns
- termination status
gives termination reason; return: Termination Status
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
Definition at line 521 of file nlpi.c.
References NULL.
Referenced by nlpSolve().
gives primal and dual solution for a ranged constraint, the dual variable is positive if the right hand side is active and negative if the left hand side is active
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
primalvalues | buffer to store pointer to array to primal values, or NULL if not needed |
consdualvalues | buffer to store pointer to array to dual values of constraints, or NULL if not needed |
varlbdualvalues | buffer to store pointer to array to dual values of variable lower bounds, or NULL if not needed |
varubdualvalues | buffer to store pointer to array to dual values of variable lower bounds, or NULL if not needed |
Definition at line 535 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by nlpSolve().
gives solve statistics
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
statistics | pointer to store statistics |
Definition at line 553 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPnlpGetStatistics().
gives required size of a buffer to store a warmstart object
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
size | pointer to store required size for warmstart buffer |
Definition at line 568 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
stores warmstart information in buffer
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
buffer | memory to store warmstart information |
Definition at line 583 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
sets warmstart information in solver
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
buffer | warmstart information |
Definition at line 598 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
gets integer parameter of NLP
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
type | parameter number |
ival | pointer to store the parameter value |
Definition at line 616 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPnlpGetIntPar().
sets integer parameter of NLP
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
type | parameter number |
ival | parameter value |
Definition at line 633 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPnlpSetIntPar().
gets floating point parameter of NLP if problem is NULL and type == SCIP_NLPPAR_INFINITY, then gets solver-wide value for infinity
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure, can be NULL only if type == SCIP_NLPPAR_INFINITY |
type | parameter number |
dval | pointer to store the parameter value |
Definition at line 650 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPnlpGetRealPar().
sets floating point parameter of NLP if problem is NULL and type == SCIP_NLPPAR_INFINITY, then sets solver-wide value for infinity
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure, can be NULL only if type == SCIP_NLPPAR_INFINITY |
type | parameter number |
dval | parameter value |
Definition at line 668 of file nlpi.c.
References NULL, SCIP_CALL, SCIP_NLPPAR_INFINITY, and SCIP_OKAY.
Referenced by SCIP_DECL_NLPICOPY(), and SCIPnlpSetRealPar().
gets string parameter of NLP
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
type | parameter number |
sval | pointer to store the parameter value, the user must not modify the string |
Definition at line 684 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPnlpGetStringPar().
sets string parameter of NLP
- Parameters
-
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
type | parameter number |
sval | parameter value |
Definition at line 701 of file nlpi.c.
References NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPnlpSetStringPar().
const char* SCIPnlpiGetName |
( |
SCIP_NLPI * |
nlpi | ) |
|
const char* SCIPnlpiGetDesc |
( |
SCIP_NLPI * |
nlpi | ) |
|
void SCIPnlpiSetPriority |
( |
SCIP_NLPI * |
nlpi, |
|
|
int |
priority |
|
) |
| |
|