Worhp NLP interface.
Definition in file nlpi_worhp.c.
#include "nlpi/nlpi_worhp.h"
#include "nlpi/nlpi.h"
#include "nlpi/nlpioracle.h"
#include "nlpi/exprinterpret.h"
#include "scip/interrupt.h"
#include "scip/misc.h"
#include <stdio.h>
#include <stdlib.h>
#include "worhp/worhp.h"
Go to the source code of this file.
Macros | |
#define | NLPI_DESC "Worhp interface" |
#define | NLPI_PRIORITY_IP 0 |
#define | NLPI_PRIORITY_SQP -2000 |
#define | DEFAULT_VERBLEVEL 0 |
#define | DEFAULT_SCALEDKKT TRUE |
#define | DEFAULT_MAXITER 3000 |
#define | DEFAULT_RANDSEED 107 |
#define | MAXPERTURB 0.01 |
Functions | |
static void | invalidateSolution (SCIP_NLPIPROBLEM *problem) |
static SCIP_RETCODE | evaluateWorhpRun (SCIP_NLPIPROBLEM *problem) |
static SCIP_RETCODE | userF (SCIP_NLPIPROBLEM *problem) |
static SCIP_RETCODE | userG (SCIP_NLPIPROBLEM *problem) |
static SCIP_RETCODE | userDF (SCIP_NLPIPROBLEM *problem) |
static SCIP_RETCODE | userDG (SCIP_NLPIPROBLEM *problem) |
static SCIP_RETCODE | userHM (SCIP_NLPIPROBLEM *problem) |
static void | noprint (int mode, const char s[]) |
static SCIP_RETCODE | initWorhp (SCIP_NLPI *nlpi, SCIP_NLPIPROBLEM *problem) |
static SCIP_RETCODE | updateWorhp (SCIP_NLPIPROBLEM *problem) |
static SCIP_RETCODE | freeWorhp (SCIP_NLPIPROBLEM *problem) |
static | SCIP_DECL_NLPICOPY (nlpiCopyWorhp) |
static | SCIP_DECL_NLPIFREE (nlpiFreeWorhp) |
static | SCIP_DECL_NLPIGETSOLVERPOINTER (nlpiGetSolverPointerWorhp) |
static | SCIP_DECL_NLPICREATEPROBLEM (nlpiCreateProblemWorhp) |
static | SCIP_DECL_NLPIFREEPROBLEM (nlpiFreeProblemWorhp) |
static | SCIP_DECL_NLPIGETPROBLEMPOINTER (nlpiGetProblemPointerWorhp) |
static | SCIP_DECL_NLPIADDVARS (nlpiAddVarsWorhp) |
static | SCIP_DECL_NLPIADDCONSTRAINTS (nlpiAddConstraintsWorhp) |
static | SCIP_DECL_NLPISETOBJECTIVE (nlpiSetObjectiveWorhp) |
static | SCIP_DECL_NLPICHGVARBOUNDS (nlpiChgVarBoundsWorhp) |
static | SCIP_DECL_NLPICHGCONSSIDES (nlpiChgConsSidesWorhp) |
static | SCIP_DECL_NLPIDELVARSET (nlpiDelVarSetWorhp) |
static | SCIP_DECL_NLPIDELCONSSET (nlpiDelConstraintSetWorhp) |
static | SCIP_DECL_NLPICHGLINEARCOEFS (nlpiChgLinearCoefsWorhp) |
static | SCIP_DECL_NLPICHGQUADCOEFS (nlpiChgQuadraticCoefsWorhp) |
static | SCIP_DECL_NLPICHGEXPRTREE (nlpiChgExprtreeWorhp) |
static | SCIP_DECL_NLPICHGNONLINCOEF (nlpiChgNonlinCoefWorhp) |
static | SCIP_DECL_NLPICHGOBJCONSTANT (nlpiChgObjConstantWorhp) |
static | SCIP_DECL_NLPISETINITIALGUESS (nlpiSetInitialGuessWorhp) |
static | SCIP_DECL_NLPISOLVE (nlpiSolveWorhp) |
static | SCIP_DECL_NLPIGETSOLSTAT (nlpiGetSolstatWorhp) |
static | SCIP_DECL_NLPIGETTERMSTAT (nlpiGetTermstatWorhp) |
static | SCIP_DECL_NLPIGETSOLUTION (nlpiGetSolutionWorhp) |
static | SCIP_DECL_NLPIGETSTATISTICS (nlpiGetStatisticsWorhp) |
static | SCIP_DECL_NLPIGETWARMSTARTSIZE (nlpiGetWarmstartSizeWorhp) |
static | SCIP_DECL_NLPIGETWARMSTARTMEMO (nlpiGetWarmstartMemoWorhp) |
static | SCIP_DECL_NLPISETWARMSTARTMEMO (nlpiSetWarmstartMemoWorhp) |
static | SCIP_DECL_NLPIGETINTPAR (nlpiGetIntParWorhp) |
static | SCIP_DECL_NLPISETINTPAR (nlpiSetIntParWorhp) |
static | SCIP_DECL_NLPIGETREALPAR (nlpiGetRealParWorhp) |
static | SCIP_DECL_NLPISETREALPAR (nlpiSetRealParWorhp) |
static | SCIP_DECL_NLPIGETSTRINGPAR (nlpiGetStringParWorhp) |
static | SCIP_DECL_NLPISETSTRINGPAR (nlpiSetStringParWorhp) |
static | SCIP_DECL_NLPISETMESSAGEHDLR (nlpiSetMessageHdlrWorhp) |
SCIP_RETCODE | SCIPcreateNlpSolverWorhp (BMS_BLKMEM *blkmem, SCIP_NLPI **nlpi, SCIP_Bool useip) |
const char * | SCIPgetSolverNameWorhp (void) |
const char * | SCIPgetSolverDescWorhp (void) |
SCIP_Bool | SCIPisWorhpAvailableWorhp (void) |
#define NLPI_DESC "Worhp interface" |
description of solver
Definition at line 44 of file nlpi_worhp.c.
Referenced by SCIPcreateNlpSolverWorhp().
#define NLPI_PRIORITY_IP 0 |
priority of NLP solver (Interior Point)
Definition at line 45 of file nlpi_worhp.c.
Referenced by SCIPcreateNlpSolverWorhp().
#define NLPI_PRIORITY_SQP -2000 |
priority of NLP solver (SQP)
Definition at line 46 of file nlpi_worhp.c.
Referenced by SCIPcreateNlpSolverWorhp().
#define DEFAULT_VERBLEVEL 0 |
default verbosity level (0: normal 1: full 2: debug >2: more debug)
Definition at line 48 of file nlpi_worhp.c.
Referenced by SCIP_DECL_NLPICREATEPROBLEM().
#define DEFAULT_SCALEDKKT TRUE |
default whether KKT conditions are allowed to be scaled in the solver
Definition at line 49 of file nlpi_worhp.c.
Referenced by SCIP_DECL_NLPISOLVE().
#define DEFAULT_MAXITER 3000 |
default iteration limit for Worhp
Definition at line 50 of file nlpi_worhp.c.
Referenced by SCIP_DECL_NLPICREATEPROBLEM().
#define DEFAULT_RANDSEED 107 |
initial random seed
Definition at line 51 of file nlpi_worhp.c.
Referenced by SCIP_DECL_NLPICREATEPROBLEM().
#define MAXPERTURB 0.01 |
maximal perturbation of bounds in starting point heuristic
Definition at line 53 of file nlpi_worhp.c.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
clears the last solution information
problem | pointer to problem data structure |
Definition at line 113 of file nlpi_worhp.c.
References SCIP_NlpiProblem::blkmem, BMSfreeBlockMemoryArrayNull, SCIP_NlpiProblem::lastdualcons, SCIP_NlpiProblem::lastdualconssize, SCIP_NlpiProblem::lastduallb, SCIP_NlpiProblem::lastduallbsize, SCIP_NlpiProblem::lastdualub, SCIP_NlpiProblem::lastdualubsize, SCIP_NlpiProblem::lastprimal, SCIP_NlpiProblem::lastprimalsize, SCIP_NlpiProblem::lastsolstat, SCIP_NlpiProblem::lasttermstat, SCIP_NLPSOLSTAT_UNKNOWN, and SCIP_NLPTERMSTAT_OTHER.
Referenced by evaluateWorhpRun(), SCIP_DECL_NLPIADDCONSTRAINTS(), SCIP_DECL_NLPIADDVARS(), SCIP_DECL_NLPICHGCONSSIDES(), SCIP_DECL_NLPICHGEXPRTREE(), SCIP_DECL_NLPICHGLINEARCOEFS(), SCIP_DECL_NLPICHGNONLINCOEF(), SCIP_DECL_NLPICHGQUADCOEFS(), SCIP_DECL_NLPICHGVARBOUNDS(), SCIP_DECL_NLPIDELCONSSET(), SCIP_DECL_NLPIDELVARSET(), SCIP_DECL_NLPIFREEPROBLEM(), and SCIP_DECL_NLPISETOBJECTIVE().
|
static |
evaluate last Worhp run
problem | pointer to problem data structure |
Definition at line 135 of file nlpi_worhp.c.
References SCIP_NlpiProblem::blkmem, BMSallocBlockMemoryArray, BMScopyMemoryArray, BMSduplicateBlockMemoryArray, SCIP_NlpiProblem::cnt, invalidateSolution(), SCIP_NlpiProblem::lastdualcons, SCIP_NlpiProblem::lastdualconssize, SCIP_NlpiProblem::lastduallb, SCIP_NlpiProblem::lastduallbsize, SCIP_NlpiProblem::lastdualub, SCIP_NlpiProblem::lastdualubsize, SCIP_NlpiProblem::lastprimal, SCIP_NlpiProblem::lastprimalsize, SCIP_NlpiProblem::lastsolstat, SCIP_NlpiProblem::lasttermstat, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::par, SCIP_ALLOC, SCIP_NLPSOLSTAT_FEASIBLE, SCIP_NLPSOLSTAT_GLOBINFEASIBLE, SCIP_NLPSOLSTAT_LOCINFEASIBLE, SCIP_NLPSOLSTAT_LOCOPT, SCIP_NLPSOLSTAT_UNBOUNDED, SCIP_NLPSOLSTAT_UNKNOWN, SCIP_NLPTERMSTAT_EVALERR, SCIP_NLPTERMSTAT_ITLIM, SCIP_NLPTERMSTAT_LICERR, SCIP_NLPTERMSTAT_MEMERR, SCIP_NLPTERMSTAT_NUMERR, SCIP_NLPTERMSTAT_OKAY, SCIP_NLPTERMSTAT_OTHER, SCIP_NLPTERMSTAT_TILIM, SCIP_OKAY, SCIPdebugMessage, SCIPerrorMessage, and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
evaluates objective function and store the result in the corresponding Worhp data fields
problem | pointer to problem data structure |
Definition at line 422 of file nlpi_worhp.c.
References SCIP_NlpiProblem::blkmem, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::oracle, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPnlpiOracleEvalObjectiveValue(), SCIPnlpiOracleGetNConstraints(), SCIPnlpiOracleGetNVars(), and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
evaluates constraints and store the result in the corresponding Worhp data fields
problem | pointer to problem data structure |
Definition at line 455 of file nlpi_worhp.c.
References SCIP_NlpiProblem::blkmem, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::oracle, SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleEvalConstraintValues(), SCIPnlpiOracleGetNConstraints(), SCIPnlpiOracleGetNVars(), and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
computes objective gradient and store the result in the corresponding Worhp data fields
problem | pointer to problem data structure |
Definition at line 487 of file nlpi_worhp.c.
References SCIP_NlpiProblem::blkmem, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::oracle, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPnlpiOracleEvalObjectiveGradient(), SCIPnlpiOracleGetNConstraints(), SCIPnlpiOracleGetNVars(), TRUE, and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
computes jacobian matrix and store the result in the corresponding Worhp data fields
problem | pointer to problem data structure |
Definition at line 531 of file nlpi_worhp.c.
References SCIP_NlpiProblem::blkmem, BMSallocBlockMemoryArray, BMSfreeBlockMemoryArray, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::oracle, SCIP_ALLOC, SCIP_OKAY, SCIP_Real, SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleGetNConstraints(), SCIPnlpiOracleGetNVars(), TRUE, and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
computes hessian matrix and store the result in the corresponding Worhp data fields
problem | pointer to problem data structure |
Definition at line 576 of file nlpi_worhp.c.
References SCIP_NlpiProblem::blkmem, BMSallocBlockMemoryArray, BMSfreeBlockMemoryArray, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::oracle, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPnlpiOracleEvalHessianLag(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetNConstraints(), SCIPnlpiOracleGetNVars(), TRUE, and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
Worhp print callback function that does nothing
mode | the mode |
s | a string |
Definition at line 632 of file nlpi_worhp.c.
Referenced by SCIP_DECL_NLPISOLVE(), and SCIPcreateNlpSolverWorhp().
|
static |
initialize Worhp data
nlpi | pointer to NLPI datastructure |
problem | pointer to problem data structure |
Definition at line 641 of file nlpi_worhp.c.
References BMScopyMemoryArray, SCIP_NlpiProblem::cnt, FALSE, SCIP_NlpiProblem::firstrun, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::oracle, SCIP_NlpiProblem::par, SCIP_Bool, SCIP_CALL, SCIP_ERROR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPdebugPrintf, SCIPerrorMessage, SCIPmessagePrintWarning(), SCIPnlpiGetData(), SCIPnlpiOracleGetConstraintLhs(), SCIPnlpiOracleGetConstraintRhs(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetJacobianSparsity(), SCIPnlpiOracleGetNConstraints(), SCIPnlpiOracleGetNVars(), SCIPnlpiOracleGetVarLbs(), SCIPnlpiOracleGetVarUbs(), TRUE, and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
update Worhp data
problem | pointer to problem data structure |
Definition at line 846 of file nlpi_worhp.c.
References SCIP_NlpiProblem::cnt, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::oracle, SCIP_NlpiProblem::par, SCIP_OKAY, SCIP_Real, SCIPnlpiOracleGetConstraintLhs(), SCIPnlpiOracleGetConstraintRhs(), SCIPnlpiOracleGetNConstraints(), SCIPnlpiOracleGetNVars(), SCIPnlpiOracleGetVarLbs(), SCIPnlpiOracleGetVarUbs(), and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPISOLVE().
|
static |
frees Worhp data
problem | pointer to problem data structure |
Definition at line 886 of file nlpi_worhp.c.
References SCIP_NlpiProblem::cnt, SCIP_NlpiProblem::opt, SCIP_NlpiProblem::par, SCIP_OKAY, and SCIP_NlpiProblem::wsp.
Referenced by SCIP_DECL_NLPIFREEPROBLEM(), and SCIP_DECL_NLPISOLVE().
|
static |
copy method of NLP interface (called when SCIP copies plugins)
input:
Definition at line 917 of file nlpi_worhp.c.
References SCIP_CALL, SCIP_NLPPAR_INFINITY, SCIP_OKAY, SCIPcreateNlpSolverWorhp(), SCIPnlpiGetData(), SCIPnlpiSetMessageHdlr(), and SCIPnlpiSetRealPar().
|
static |
destructor of NLP interface to free nlpi data
input:
Definition at line 942 of file nlpi_worhp.c.
References BMSfreeBlockMemory, SCIP_OKAY, and SCIPnlpiGetData().
|
static |
gets pointer for NLP solver
to do dirty stuff
input:
return: void pointer to solver
Definition at line 967 of file nlpi_worhp.c.
|
static |
creates a problem instance
input:
Definition at line 982 of file nlpi_worhp.c.
References BMSallocBlockMemory, BMSclearMemory, DEFAULT_MAXITER, DEFAULT_RANDSEED, DEFAULT_VERBLEVEL, SCIP_ALLOC, SCIP_CALL, SCIP_DEFAULT_FEASTOL, SCIP_DEFAULT_INFINITY, SCIP_INVALID, SCIP_NOMEMORY, SCIP_OKAY, SCIPnlpiGetData(), SCIPnlpiOracleCreate(), SCIPnlpiOracleSetInfinity(), SCIPnlpiOracleSetProblemName(), SCIPrandomCreate(), and TRUE.
|
static |
free a problem instance
input:
Definition at line 1034 of file nlpi_worhp.c.
References BMSfreeBlockMemory, BMSfreeMemoryArrayNull, freeWorhp(), invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiGetData(), SCIPnlpiOracleFree(), and SCIPrandomFree().
|
static |
gets pointer to solver-internal problem instance
to do dirty stuff
input:
return: void pointer to problem instance
Definition at line 1086 of file nlpi_worhp.c.
|
static |
add variables
input:
Definition at line 1105 of file nlpi_worhp.c.
References BMSfreeMemoryArrayNull, invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleAddVars(), and TRUE.
|
static |
add constraints quadratic coefficiens: row oriented matrix for each constraint
input:
Definition at line 1160 of file nlpi_worhp.c.
References invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleAddConstraints(), and TRUE.
|
static |
sets or overwrites objective, a minimization problem is expected May change sparsity pattern.
input:
Definition at line 1206 of file nlpi_worhp.c.
References invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleGetConstraintDegree(), SCIPnlpiOracleSetObjective(), and TRUE.
|
static |
change variable bounds
input:
Definition at line 1241 of file nlpi_worhp.c.
References invalidateSolution(), REALABS, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPnlpiOracleChgVarBounds(), SCIPnlpiOracleGetVarLbs(), SCIPnlpiOracleGetVarUbs(), and TRUE.
|
static |
change constraint bounds
input:
Definition at line 1290 of file nlpi_worhp.c.
References invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPnlpiOracleChgConsSides(), SCIPnlpiOracleGetConstraintLhs(), and SCIPnlpiOracleGetConstraintRhs().
|
static |
delete a set of variables
input:
output:
Definition at line 1330 of file nlpi_worhp.c.
References BMSfreeMemoryArrayNull, invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleDelVarSet(), and TRUE.
|
static |
delete a set of constraints
input:
output:
Definition at line 1357 of file nlpi_worhp.c.
References invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleDelConsSet(), and TRUE.
|
static |
changes (or adds) linear coefficients in a constraint or objective
input:
Definition at line 1382 of file nlpi_worhp.c.
References invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleChgLinearCoefs(), and TRUE.
|
static |
changes (or adds) coefficients in the quadratic part of a constraint or objective
input:
Definition at line 1408 of file nlpi_worhp.c.
References invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleChgQuadCoefs(), and TRUE.
|
static |
replaces the expression tree of a constraint or objective
input:
Definition at line 1432 of file nlpi_worhp.c.
References invalidateSolution(), SCIP_CALL, SCIP_OKAY, SCIPnlpiOracleChgExprtree(), and TRUE.
|
static |
change one coefficient in the nonlinear part
input:
return: Error if parameter does not exist
Definition at line 1458 of file nlpi_worhp.c.
References invalidateSolution(), SCIP_CALL, SCIP_OKAY, and SCIPnlpiOracleChgExprParam().
|
static |
change the constant offset in the objective
input:
Definition at line 1479 of file nlpi_worhp.c.
References SCIP_CALL, SCIP_OKAY, and SCIPnlpiOracleChgObjConstant().
|
static |
sets initial guess for primal variables
input:
Definition at line 1501 of file nlpi_worhp.c.
References BMScopyMemoryArray, BMSduplicateMemoryArray, BMSfreeMemoryArrayNull, SCIP_NOMEMORY, SCIP_OKAY, and SCIPnlpiOracleGetNVars().
|
static |
tries to solve NLP
input:
Definition at line 1534 of file nlpi_worhp.c.
References BMScopyMemoryArray, DEFAULT_SCALEDKKT, evaluateWorhpRun(), FALSE, freeWorhp(), initWorhp(), MAX, MAXPERTURB, noprint(), SCIP_CALL, SCIP_INVALIDCALL, SCIP_NLPSOLSTAT_UNKNOWN, SCIP_NLPTERMSTAT_NUMERR, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPmessagePrintWarning(), SCIPnlpiGetData(), SCIPnlpiOracleGetVarLbs(), SCIPnlpiOracleGetVarUbs(), SCIPnlpiOraclePrintProblem(), SCIPrandomGetReal(), TRUE, updateWorhp(), userDF(), userDG(), userF(), userG(), and userHM().
|
static |
gives solution status
input:
return: Solution Status
Definition at line 1763 of file nlpi_worhp.c.
|
static |
gives termination reason
input:
return: Termination Status
Definition at line 1780 of file nlpi_worhp.c.
|
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 1805 of file nlpi_worhp.c.
References SCIP_CALL, SCIP_INVALID, SCIP_OKAY, and SCIPnlpiOracleEvalObjectiveValue().
|
static |
gives solve statistics
input:
output:
Definition at line 1846 of file nlpi_worhp.c.
References SCIP_OKAY, SCIPnlpStatisticsSetNIterations(), and SCIPnlpStatisticsSetTotalTime().
|
static |
gives required size of a buffer to store a warmstart object
input:
output:
Definition at line 1868 of file nlpi_worhp.c.
References SCIP_OKAY.
|
static |
stores warmstart information in buffer
required size of buffer should have been obtained by SCIPnlpiGetWarmstartSize before
input:
output:
Definition at line 1888 of file nlpi_worhp.c.
References SCIP_OKAY.
|
static |
sets warmstart information in solver
write warmstart to buffer
input:
Definition at line 1905 of file nlpi_worhp.c.
References SCIP_OKAY.
|
static |
gets integer parameter of NLP
input:
output:
Definition at line 1924 of file nlpi_worhp.c.
References SCIP_NLPPAR_FASTFAIL, SCIP_NLPPAR_FEASTOL, SCIP_NLPPAR_FROMSCRATCH, SCIP_NLPPAR_INFINITY, SCIP_NLPPAR_ITLIM, SCIP_NLPPAR_LOBJLIM, SCIP_NLPPAR_OPTFILE, SCIP_NLPPAR_RELOBJTOL, SCIP_NLPPAR_TILIM, SCIP_NLPPAR_VERBLEVEL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, and SCIPerrorMessage.
|
static |
sets integer parameter of NLP
input:
Definition at line 2011 of file nlpi_worhp.c.
References SCIP_NLPPAR_FASTFAIL, SCIP_NLPPAR_FEASTOL, SCIP_NLPPAR_FROMSCRATCH, SCIP_NLPPAR_INFINITY, SCIP_NLPPAR_ITLIM, SCIP_NLPPAR_LOBJLIM, SCIP_NLPPAR_OPTFILE, SCIP_NLPPAR_RELOBJTOL, SCIP_NLPPAR_TILIM, SCIP_NLPPAR_VERBLEVEL, SCIP_OKAY, SCIP_PARAMETERUNKNOWN, SCIP_PARAMETERWRONGTYPE, SCIP_PARAMETERWRONGVAL, SCIPdebugMessage, and SCIPerrorMessage.
|
static |
gets floating point parameter of NLP
input:
output:
Definition at line 2123 of file nlpi_worhp.c.
References SCIP_NLPPAR_FASTFAIL, SCIP_NLPPAR_FEASTOL, SCIP_NLPPAR_FROMSCRATCH, SCIP_NLPPAR_INFINITY, SCIP_NLPPAR_ITLIM, SCIP_NLPPAR_LOBJLIM, SCIP_NLPPAR_OPTFILE, SCIP_NLPPAR_RELOBJTOL, SCIP_NLPPAR_TILIM, SCIP_NLPPAR_VERBLEVEL, SCIP_OKAY, SCIP_PARAMETERWRONGTYPE, SCIPerrorMessage, and SCIPnlpiGetData().
|
static |
sets floating point parameter of NLP
input:
Definition at line 2210 of file nlpi_worhp.c.
References SCIP_NLPPAR_FASTFAIL, SCIP_NLPPAR_FEASTOL, SCIP_NLPPAR_FROMSCRATCH, SCIP_NLPPAR_INFINITY, SCIP_NLPPAR_ITLIM, SCIP_NLPPAR_LOBJLIM, SCIP_NLPPAR_OPTFILE, SCIP_NLPPAR_RELOBJTOL, SCIP_NLPPAR_TILIM, SCIP_NLPPAR_VERBLEVEL, SCIP_OKAY, SCIP_PARAMETERWRONGTYPE, SCIPerrorMessage, and SCIPnlpiGetData().
|
static |
gets string parameter of NLP
input:
output:
Definition at line 2299 of file nlpi_worhp.c.
References SCIP_NLPPAR_OPTFILE, SCIP_OKAY, SCIP_PARAMETERWRONGTYPE, SCIPerrorMessage, SCIPmessagePrintWarning(), and SCIPnlpiGetData().
|
static |
sets string parameter of NLP
input:
Definition at line 2325 of file nlpi_worhp.c.
References SCIP_NLPPAR_OPTFILE, SCIP_OKAY, SCIP_PARAMETERWRONGTYPE, SCIPerrorMessage, SCIPmessagePrintWarning(), and SCIPnlpiGetData().
|
static |
sets message handler for message output
input:
Definition at line 2349 of file nlpi_worhp.c.
References SCIP_OKAY, and SCIPnlpiGetData().