SCIP Doxygen Documentation
Loading...
Searching...
No Matches

Detailed Description

NLP interface that uses all available NLP interfaces.

Author
Benjamin Mueller

Definition in file nlpi_all.c.

#include "scip/nlpi_all.h"
#include "scip/scip_mem.h"
#include "scip/scip_numerics.h"
#include "scip/scip_nlpi.h"
#include "scip/pub_message.h"
#include <string.h>

Go to the source code of this file.

Data Structures

struct  SCIP_NlpiProblem

Macros

#define NLPI_NAME   "all"
#define NLPI_DESC   "NLP interface that uses all available NLP interfaces"
#define NLPI_PRIORITY   -3000

Functions

static SCIP_DECL_NLPICOPY (nlpiCopyAll)
static SCIP_DECL_NLPIFREE (nlpiFreeAll)
static SCIP_DECL_NLPICREATEPROBLEM (nlpiCreateProblemAll)
static SCIP_DECL_NLPIFREEPROBLEM (nlpiFreeProblemAll)
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_NLPICHGEXPR (nlpiChgExprAll)
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)
SCIP_RETCODE SCIPincludeNlpSolverAll (SCIP *scip)

Macro Definition Documentation

◆ NLPI_NAME

#define NLPI_NAME   "all"

short concise name of solver

Definition at line 41 of file nlpi_all.c.

Referenced by SCIP_DECL_NLPICREATEPROBLEM(), SCIPincludeNlpSolverAll(), SCIPincludeNlpSolverFilterSQP(), and SCIPincludeNlpSolverIpopt().

◆ NLPI_DESC

#define NLPI_DESC   "NLP interface that uses all available NLP interfaces"

◆ NLPI_PRIORITY

#define NLPI_PRIORITY   -3000

priority of NLP solver

Definition at line 43 of file nlpi_all.c.

Referenced by SCIPincludeNlpSolverAll(), SCIPincludeNlpSolverFilterSQP(), and SCIPincludeNlpSolverIpopt().

Function Documentation

◆ SCIP_DECL_NLPICOPY()

SCIP_DECL_NLPICOPY ( nlpiCopyAll )
static

copy method of NLP interface (called when SCIP copies plugins)

Definition at line 76 of file nlpi_all.c.

References SCIP_CALL, SCIP_OKAY, and SCIPincludeNlpSolverAll().

◆ SCIP_DECL_NLPIFREE()

SCIP_DECL_NLPIFREE ( nlpiFreeAll )
static

destructor of NLP interface to free nlpi data

Definition at line 86 of file nlpi_all.c.

References assert(), NULL, SCIP_OKAY, SCIPfreeBlockMemory, and SCIPfreeBlockMemoryArrayNull.

◆ SCIP_DECL_NLPICREATEPROBLEM()

SCIP_DECL_NLPICREATEPROBLEM ( nlpiCreateProblemAll )
static

creates a problem instance

Definition at line 101 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPallocClearBlockMemory, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPIFREEPROBLEM()

SCIP_DECL_NLPIFREEPROBLEM ( nlpiFreeProblemAll )
static

free a problem instance

Definition at line 129 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArrayNull, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPIADDVARS()

SCIP_DECL_NLPIADDVARS ( nlpiAddVarsAll )
static

add variables

Definition at line 155 of file nlpi_all.c.

References assert(), i, NULL, nvars, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPIADDCONSTRAINTS()

SCIP_DECL_NLPIADDCONSTRAINTS ( nlpiAddConstraintsAll )
static

add constraints

Definition at line 177 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPISETOBJECTIVE()

SCIP_DECL_NLPISETOBJECTIVE ( nlpiSetObjectiveAll )
static

sets or overwrites objective, a minimization problem is expected

Definition at line 199 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPICHGVARBOUNDS()

SCIP_DECL_NLPICHGVARBOUNDS ( nlpiChgVarBoundsAll )
static

change variable bounds

Definition at line 220 of file nlpi_all.c.

References assert(), i, NULL, nvars, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPICHGCONSSIDES()

SCIP_DECL_NLPICHGCONSSIDES ( nlpiChgConsSidesAll )
static

change constraint bounds

Definition at line 241 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPIDELVARSET()

SCIP_DECL_NLPIDELVARSET ( nlpiDelVarSetAll )
static

delete a set of variables

Definition at line 262 of file nlpi_all.c.

References assert(), BMScopyMemoryArray, i, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPfreeBlockMemoryArray, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPIDELCONSSET()

SCIP_DECL_NLPIDELCONSSET ( nlpiDelConstraintSetAll )
static

delete a set of constraints

Definition at line 302 of file nlpi_all.c.

References assert(), BMScopyMemoryArray, i, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPfreeBlockMemoryArray, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPICHGLINEARCOEFS()

SCIP_DECL_NLPICHGLINEARCOEFS ( nlpiChgLinearCoefsAll )
static

changes (or adds) linear coefficients in a constraint or objective

Definition at line 342 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPICHGEXPR()

SCIP_DECL_NLPICHGEXPR ( nlpiChgExprAll )
static

replaces the expression of a constraint or objective

Definition at line 363 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPICHGOBJCONSTANT()

SCIP_DECL_NLPICHGOBJCONSTANT ( nlpiChgObjConstantAll )
static

change the constant offset in the objective

Definition at line 384 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPISETINITIALGUESS()

SCIP_DECL_NLPISETINITIALGUESS ( nlpiSetInitialGuessAll )
static

sets initial guess for primal variables

Definition at line 405 of file nlpi_all.c.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPISOLVE()

◆ SCIP_DECL_NLPIGETSOLSTAT()

SCIP_DECL_NLPIGETSOLSTAT ( nlpiGetSolstatAll )
static

gives solution status

Definition at line 519 of file nlpi_all.c.

References assert(), NULL, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPIGETTERMSTAT()

SCIP_DECL_NLPIGETTERMSTAT ( nlpiGetTermstatAll )
static

gives termination reason

Definition at line 536 of file nlpi_all.c.

References assert(), NULL, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPIGETSOLUTION()

SCIP_DECL_NLPIGETSOLUTION ( nlpiGetSolutionAll )
static

gives primal and dual solution values

Definition at line 553 of file nlpi_all.c.

References assert(), NULL, objval, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().

◆ SCIP_DECL_NLPIGETSTATISTICS()

SCIP_DECL_NLPIGETSTATISTICS ( nlpiGetStatisticsAll )
static

gives solve statistics

Definition at line 573 of file nlpi_all.c.

References assert(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().