Detailed Description
NLP interface that uses all available NLP interfaces.
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 <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 40 of file nlpi_all.c.
Referenced by SCIPincludeNlpSolverAll().
◆ NLPI_DESC
#define NLPI_DESC "NLP interface that uses all available NLP interfaces" |
description of solver
Definition at line 41 of file nlpi_all.c.
Referenced by SCIPincludeNlpSolverAll().
◆ NLPI_PRIORITY
#define NLPI_PRIORITY -3000 |
priority of NLP solver
Definition at line 42 of file nlpi_all.c.
Referenced by SCIPincludeNlpSolverAll().
Function Documentation
◆ SCIP_DECL_NLPICOPY()
|
static |
copy method of NLP interface (called when SCIP copies plugins)
Definition at line 75 of file nlpi_all.c.
References SCIP_CALL, SCIP_OKAY, and SCIPincludeNlpSolverAll().
◆ SCIP_DECL_NLPIFREE()
|
static |
destructor of NLP interface to free nlpi data
Definition at line 85 of file nlpi_all.c.
References NULL, SCIP_OKAY, SCIPfreeBlockMemory, and SCIPfreeBlockMemoryArrayNull.
◆ SCIP_DECL_NLPICREATEPROBLEM()
|
static |
creates a problem instance
Definition at line 100 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPallocClearBlockMemory, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPIFREEPROBLEM()
|
static |
free a problem instance
Definition at line 128 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArrayNull, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPIADDVARS()
|
static |
add variables
Definition at line 154 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPIADDCONSTRAINTS()
|
static |
add constraints
Definition at line 176 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPISETOBJECTIVE()
|
static |
sets or overwrites objective, a minimization problem is expected
Definition at line 198 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPICHGVARBOUNDS()
|
static |
change variable bounds
Definition at line 219 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPICHGCONSSIDES()
|
static |
change constraint bounds
Definition at line 240 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPIDELVARSET()
|
static |
delete a set of variables
Definition at line 261 of file nlpi_all.c.
References BMScopyMemoryArray, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPfreeBlockMemoryArray, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPIDELCONSSET()
|
static |
delete a set of constraints
Definition at line 301 of file nlpi_all.c.
References BMScopyMemoryArray, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPfreeBlockMemoryArray, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPICHGLINEARCOEFS()
|
static |
changes (or adds) linear coefficients in a constraint or objective
Definition at line 341 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPICHGEXPR()
|
static |
replaces the expression of a constraint or objective
Definition at line 362 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPICHGOBJCONSTANT()
|
static |
change the constant offset in the objective
Definition at line 383 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPISETINITIALGUESS()
|
static |
sets initial guess for primal variables
Definition at line 404 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPISOLVE()
|
static |
tries to solve NLP
Definition at line 426 of file nlpi_all.c.
References FALSE, SCIP_NlpStatistics::niterations, NULL, SCIP_Bool, SCIP_CALL, SCIP_NLPSOLSTAT_FEASIBLE, SCIP_NLPSOLSTAT_LOCINFEASIBLE, SCIP_NLPSOLSTAT_UNKNOWN, SCIP_NLPTERMSTAT_INTERRUPT, SCIP_NLPTERMSTAT_OTHER, SCIP_NLPTERMSTAT_TIMELIMIT, SCIP_OKAY, SCIP_Real, SCIPinfinity(), SCIPisInfinity(), SCIPnlpiGetData(), SCIPnlpiGetName(), SCIPstatisticMessage, SCIP_NlpStatistics::totaltime, and TRUE.
◆ SCIP_DECL_NLPIGETSOLSTAT()
|
static |
gives solution status
Definition at line 518 of file nlpi_all.c.
References NULL, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPIGETTERMSTAT()
|
static |
gives termination reason
Definition at line 535 of file nlpi_all.c.
References NULL, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPIGETSOLUTION()
|
static |
gives primal and dual solution values
Definition at line 552 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().
◆ SCIP_DECL_NLPIGETSTATISTICS()
|
static |
gives solve statistics
Definition at line 572 of file nlpi_all.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPnlpiGetData().