NLP interface that uses all available NLP interfaces.
Definition in file nlpi_all.c.
Go to the source code of this file.
Macros | |
#define | NLPI_NAME "all" /* short concise name of solver */ |
#define | NLPI_DESC "NLP interface that uses all available NLP interfaces" /* description of solver */ |
#define | NLPI_PRIORITY -3000 /* priority of NLP solver */ |
Functions | |
static | SCIP_DECL_NLPICOPY (nlpiCopyAll) |
static | SCIP_DECL_NLPIFREE (nlpiFreeAll) |
static | SCIP_DECL_NLPIGETSOLVERPOINTER (nlpiGetSolverPointerAll) |
static | SCIP_DECL_NLPICREATEPROBLEM (nlpiCreateProblemAll) |
static | SCIP_DECL_NLPIFREEPROBLEM (nlpiFreeProblemAll) |
static | SCIP_DECL_NLPIGETPROBLEMPOINTER (nlpiGetProblemPointerAll) |
static | SCIP_DECL_NLPIADDVARS (nlpiAddVarsAll) |
static | SCIP_DECL_NLPIADDCONSTRAINTS (nlpiAddConstraintsAll) |
static | SCIP_DECL_NLPISETOBJECTIVE (nlpiSetObjectiveAll) |
static | SCIP_DECL_NLPICHGVARBOUNDS (nlpiChgVarBoundsAll) |
static | SCIP_DECL_NLPICHGCONSSIDES (nlpiChgConsSidesAll) |
static | SCIP_DECL_NLPIDELVARSET (nlpiDelVarSetAll) |
static | SCIP_DECL_NLPIDELCONSSET (nlpiDelConstraintSetAll) |
static | SCIP_DECL_NLPICHGLINEARCOEFS (nlpiChgLinearCoefsAll) |
static | SCIP_DECL_NLPICHGQUADCOEFS (nlpiChgQuadraticCoefsAll) |
static | SCIP_DECL_NLPICHGEXPRTREE (nlpiChgExprtreeAll) |
static | SCIP_DECL_NLPICHGNONLINCOEF (nlpiChgNonlinCoefAll) |
static | SCIP_DECL_NLPICHGOBJCONSTANT (nlpiChgObjConstantAll) |
static | SCIP_DECL_NLPISETINITIALGUESS (nlpiSetInitialGuessAll) |
static | SCIP_DECL_NLPISOLVE (nlpiSolveAll) |
static | SCIP_DECL_NLPIGETSOLSTAT (nlpiGetSolstatAll) |
static | SCIP_DECL_NLPIGETTERMSTAT (nlpiGetTermstatAll) |
static | SCIP_DECL_NLPIGETSOLUTION (nlpiGetSolutionAll) |
static | SCIP_DECL_NLPIGETSTATISTICS (nlpiGetStatisticsAll) |
static | SCIP_DECL_NLPIGETWARMSTARTSIZE (nlpiGetWarmstartSizeAll) |
static | SCIP_DECL_NLPIGETWARMSTARTMEMO (nlpiGetWarmstartMemoAll) |
static | SCIP_DECL_NLPISETWARMSTARTMEMO (nlpiSetWarmstartMemoAll) |
static | SCIP_DECL_NLPIGETINTPAR (nlpiGetIntParAll) |
static | SCIP_DECL_NLPISETINTPAR (nlpiSetIntParAll) |
static | SCIP_DECL_NLPIGETREALPAR (nlpiGetRealParAll) |
static | SCIP_DECL_NLPISETREALPAR (nlpiSetRealParAll) |
static | SCIP_DECL_NLPIGETSTRINGPAR (nlpiGetStringParAll) |
static | SCIP_DECL_NLPISETSTRINGPAR (nlpiSetStringParAll) |
static | SCIP_DECL_NLPISETMESSAGEHDLR (nlpiSetMessageHdlrAll) |
SCIP_RETCODE | SCIPcreateNlpSolverAll (BMS_BLKMEM *blkmem, SCIP_NLPI **nlpi, SCIP_NLPI **nlpis, int nnlpis) |
#define NLPI_NAME "all" /* short concise name of solver */ |
Definition at line 30 of file nlpi_all.c.
Referenced by SCIPcreateNlpSolverAll().
#define NLPI_DESC "NLP interface that uses all available NLP interfaces" /* description of solver */ |
Definition at line 31 of file nlpi_all.c.
Referenced by SCIPcreateNlpSolverAll().
#define NLPI_PRIORITY -3000 /* priority of NLP solver */ |
Definition at line 32 of file nlpi_all.c.
Referenced by SCIPcreateNlpSolverAll().
|
static |
copy method of NLP interface (called when SCIP copies plugins)
input:
Definition at line 73 of file nlpi_all.c.
References infinity, SCIP_CALL, SCIP_NLPPAR_INFINITY, SCIP_OKAY, SCIP_Real, SCIPcreateNlpSolverAll(), SCIPnlpiGetData(), SCIPnlpiGetRealPar(), SCIPnlpiSetMessageHdlr(), and SCIPnlpiSetRealPar().
|
static |
destructor of NLP interface to free nlpi data
input:
Definition at line 103 of file nlpi_all.c.
References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, SCIP_CALL, SCIP_OKAY, SCIPnlpiFree(), and SCIPnlpiGetData().
|
static |
gets pointer for NLP solver
to do dirty stuff
input:
return: void pointer to solver
Definition at line 134 of file nlpi_all.c.
|
static |
creates a problem instance
input:
Definition at line 149 of file nlpi_all.c.
References BMSallocBlockMemory, BMSallocBlockMemoryArray, BMSclearMemory, SCIP_ALLOC, SCIP_CALL, SCIP_NOMEMORY, SCIP_OKAY, SCIPnlpiCreateProblem(), and SCIPnlpiGetData().
|
static |
free a problem instance
input:
Definition at line 185 of file nlpi_all.c.
References BMSfreeBlockMemory, BMSfreeBlockMemoryArrayNull, SCIP_CALL, SCIP_OKAY, SCIPnlpiFreeProblem(), and SCIPnlpiGetData().
|
static |
gets pointer to solver-internal problem instance
to do dirty stuff
input:
return: void pointer to problem instance
Definition at line 220 of file nlpi_all.c.
|
static |
add variables
input:
Definition at line 239 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiAddVars(), and SCIPnlpiGetData().
|
static |
add constraints quadratic coefficiens: row oriented matrix for each constraint
input:
Definition at line 298 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiAddConstraints(), and SCIPnlpiGetData().
|
static |
sets or overwrites objective, a minimization problem is expected May change sparsity pattern.
input:
Definition at line 346 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiSetObjective().
|
static |
change variable bounds
input:
Definition at line 377 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiChgVarBounds(), and SCIPnlpiGetData().
|
static |
change constraint bounds
input:
Definition at line 407 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiChgConsSides(), and SCIPnlpiGetData().
|
static |
delete a set of variables
input:
output:
Definition at line 438 of file nlpi_all.c.
References BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArray, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPnlpiDelVarSet(), and SCIPnlpiGetData().
|
static |
delete a set of constraints
input:
output:
Definition at line 488 of file nlpi_all.c.
References BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSfreeBlockMemoryArray, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPnlpiDelConsSet(), and SCIPnlpiGetData().
|
static |
changes (or adds) linear coefficients in a constraint or objective
input:
Definition at line 538 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiChgLinearCoefs(), and SCIPnlpiGetData().
|
static |
changes (or adds) coefficients in the quadratic part of a constraint or objective
input:
Definition at line 569 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiChgQuadCoefs(), and SCIPnlpiGetData().
|
static |
replaces the expression tree of a constraint or objective
input:
Definition at line 598 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiChgExprtree(), and SCIPnlpiGetData().
|
static |
change one coefficient in the nonlinear part
input:
return: Error if parameter does not exist
Definition at line 629 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiChgNonlinCoef(), and SCIPnlpiGetData().
|
static |
change the constant offset in the objective
input:
Definition at line 656 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiChgObjConstant(), and SCIPnlpiGetData().
|
static |
sets initial guess for primal variables
input:
Definition at line 686 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiSetInitialGuess().
|
static |
tries to solve NLP
input:
Definition at line 713 of file nlpi_all.c.
References FALSE, infinity, SCIP_Bool, SCIP_CALL, SCIP_NLPPAR_INFINITY, SCIP_NLPSOLSTAT_FEASIBLE, SCIP_NLPSOLSTAT_LOCINFEASIBLE, SCIP_NLPSOLSTAT_UNKNOWN, SCIP_NLPTERMSTAT_OTHER, SCIP_OKAY, SCIP_Real, SCIPnlpiGetData(), SCIPnlpiGetName(), SCIPnlpiGetRealPar(), SCIPnlpiGetSolstat(), SCIPnlpiGetSolution(), SCIPnlpiGetStatistics(), SCIPnlpiGetTermstat(), SCIPnlpiSolve(), SCIPnlpStatisticsGetNIterations(), SCIPnlpStatisticsGetTotalTime(), SCIPstatisticMessage, and TRUE.
|
static |
gives solution status
input:
return: Solution Status
Definition at line 810 of file nlpi_all.c.
References SCIPnlpiGetData(), and SCIPnlpiGetSolstat().
|
static |
gives termination reason
input:
return: Termination Status
Definition at line 834 of file nlpi_all.c.
References SCIPnlpiGetData(), and SCIPnlpiGetTermstat().
|
static |
gives primal and dual solution values
solver can return NULL in dual values if not available but if solver provides dual values for one side of variable bounds, then it must also provide those for the other side
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
input:
Definition at line 866 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiGetSolution().
|
static |
gives solve statistics
input:
output:
Definition at line 895 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiGetStatistics().
|
static |
gives required size of a buffer to store a warmstart object
input:
output:
Definition at line 924 of file nlpi_all.c.
References SCIP_OKAY, and SCIPerrorMessage.
|
static |
stores warmstart information in buffer
required size of buffer should have been obtained by SCIPnlpiGetWarmstartSize before
input:
output:
Definition at line 943 of file nlpi_all.c.
References SCIP_OKAY, and SCIPerrorMessage.
|
static |
sets warmstart information in solver
write warmstart to buffer
input:
Definition at line 959 of file nlpi_all.c.
References SCIP_OKAY, and SCIPerrorMessage.
|
static |
gets integer parameter of NLP
input:
output:
Definition at line 977 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiGetIntPar().
|
static |
sets integer parameter of NLP
input:
Definition at line 1001 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiSetIntPar().
|
static |
gets floating point parameter of NLP
input:
output:
Definition at line 1032 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiGetRealPar().
|
static |
sets floating point parameter of NLP
input:
Definition at line 1056 of file nlpi_all.c.
References SCIP_CALL, SCIP_NLPPAR_INFINITY, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiSetRealPar().
|
static |
gets string parameter of NLP
input:
output:
Definition at line 1096 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiGetStringPar().
|
static |
sets string parameter of NLP
input:
Definition at line 1120 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiSetStringPar().
|
static |
sets message handler for message output
input:
Definition at line 1146 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), and SCIPnlpiSetMessageHdlr().