Detailed Descriptiondummy Ipopt NLP interface for the case that Ipopt is not available This code has been separate from nlpi_ipopt.cpp, so the SCIP build system recognizes it as pure C code, thus the linker does not need to be changed to C++. Definition in file nlpi_ipopt_dummy.c. Go to the source code of this file.
Macro Definition Documentation
Definition at line 109 of file nlpi_ipopt_dummy.c. Referenced by SCIPsolveLinearProb(), and SCIPsolveLinearProb3(). Function Documentation
create solver interface for Ipopt solver
Definition at line 31 of file nlpi_ipopt_dummy.c. References NLPI_DESC, NLPI_NAME, NLPI_PRIORITY, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, and SCIPnlpiCreate().
gets string that identifies Ipopt (version number) Definition at line 44 of file nlpi_ipopt_dummy.c.
gets string that describes Ipopt (version number) Definition at line 50 of file nlpi_ipopt_dummy.c.
returns whether Ipopt is available, i.e., whether it has been linked in Definition at line 56 of file nlpi_ipopt_dummy.c.
gives a pointer to the IpoptApplication object stored in Ipopt-NLPI's NLPI problem data structure
Definition at line 62 of file nlpi_ipopt_dummy.c. References SCIP_NlpiProblem::ipopt, NULL, SCIPABORT, and SCIPerrorMessage.
gives a pointer to the NLPIORACLE object stored in Ipopt-NLPI's NLPI problem data structure
Definition at line 72 of file nlpi_ipopt_dummy.c. References NULL, SCIP_NlpiProblem::oracle, SCIPABORT, and SCIPerrorMessage.
sets modified default settings that are used when setting up an Ipopt problem Do not forget to add a newline after the last option in optionsstring.
Definition at line 85 of file nlpi_ipopt_dummy.c. References BMSallocMemoryArray, BMSclearMemoryArray, BMScopyMemoryArray, convcheck_maxiter, convcheck_minred, convcheck_nchecks, convcheck_startiter, FALSE, LINEAR, MAX, MAXPERTURB, MIN, NULL, SCIP_INVALID, SCIP_NLPSOLSTAT_FEASIBLE, SCIP_NLPSOLSTAT_LOCINFEASIBLE, SCIP_NLPSOLSTAT_LOCOPT, SCIP_NLPSOLSTAT_UNBOUNDED, SCIP_NLPSOLSTAT_UNKNOWN, SCIP_NLPTERMSTAT_EVALERR, SCIP_NLPTERMSTAT_ITLIM, SCIP_NLPTERMSTAT_MEMERR, SCIP_NLPTERMSTAT_NUMERR, SCIP_NLPTERMSTAT_OKAY, SCIP_NLPTERMSTAT_OTHER, SCIP_NLPTERMSTAT_TILIM, SCIP_NLPTERMSTAT_UOBJLIM, SCIP_OKAY, SCIP_Real, SCIPABORT, SCIPdebugMessage, SCIPdebugPrintf, SCIPerrorMessage, SCIPgetRandomReal(), SCIPinterrupted(), SCIPnlpiGetData(), SCIPnlpiOracleEvalConstraintValues(), SCIPnlpiOracleEvalHessianLag(), SCIPnlpiOracleEvalJacobian(), SCIPnlpiOracleEvalObjectiveGradient(), SCIPnlpiOracleEvalObjectiveValue(), SCIPnlpiOracleGetConstraintDegree(), SCIPnlpiOracleGetConstraintLhs(), SCIPnlpiOracleGetConstraintName(), SCIPnlpiOracleGetConstraintRhs(), SCIPnlpiOracleGetHessianLagSparsity(), SCIPnlpiOracleGetJacobianSparsity(), SCIPnlpiOracleGetNConstraints(), SCIPnlpiOracleGetNVars(), SCIPnlpiOracleGetVarDegree(), SCIPnlpiOracleGetVarLbs(), SCIPnlpiOracleGetVarNames(), SCIPnlpiOracleGetVarUbs(), and TRUE.
Calls Lapacks Dsyev routine to compute eigenvalues and eigenvectors of a dense matrix. It's here, because Ipopt is linked against Lapack.
Definition at line 97 of file nlpi_ipopt_dummy.c. References SCIP_ERROR, SCIP_OKAY, and SCIPerrorMessage.
Definition at line 113 of file nlpi_ipopt_dummy.c. References BMScopyMemoryArray, ENTRY, FALSE, NULL, SCIP_OKAY, SCIP_Real, SCIPerrorMessage, and TRUE. Referenced by SCIPsolveLinearProb().
solves a linear problem of the form Ax = b for a regular matrix A Calls Lapacks IpLapackDgetrf routine to calculate a LU factorization and uses this factorization to solve the linear problem Ax = b. It's here, because Ipopt is linked against Lapack.
Definition at line 215 of file nlpi_ipopt_dummy.c. References BMSallocMemoryArray, BMScopyMemoryArray, BMSduplicateMemoryArray, BMSfreeMemoryArray, ENTRY, FALSE, LapackDsyev(), NULL, SCIP_ALLOC, SCIP_Bool, SCIP_CALL, SCIP_ERROR, SCIP_OKAY, SCIP_Real, SCIPerrorMessage, SCIPsolveLinearProb3(), and TRUE. |