type definitions for specific NLP solver interfaces
Definition in file type_nlpi.h.
#include "scip/def.h"
#include "scip/type_message.h"
#include "blockmemshell/memory.h"
#include "nlpi/type_expr.h"
Go to the source code of this file.
Typedefs | |
typedef struct SCIP_Nlpi | SCIP_NLPI |
typedef struct SCIP_NlpiData | SCIP_NLPIDATA |
typedef struct SCIP_NlpiProblem | SCIP_NLPIPROBLEM |
typedef struct SCIP_NlpStatistics | SCIP_NLPSTATISTICS |
typedef enum SCIP_NlpParam | SCIP_NLPPARAM |
typedef enum SCIP_NlpSolStat | SCIP_NLPSOLSTAT |
typedef enum SCIP_NlpTermStat | SCIP_NLPTERMSTAT |
Enumerations | |
enum | SCIP_NlpParam { SCIP_NLPPAR_FROMSCRATCH = 0, SCIP_NLPPAR_VERBLEVEL = 1, SCIP_NLPPAR_FEASTOL = 2, SCIP_NLPPAR_RELOBJTOL = 3, SCIP_NLPPAR_LOBJLIM = 4, SCIP_NLPPAR_INFINITY = 5, SCIP_NLPPAR_ITLIM = 6, SCIP_NLPPAR_TILIM = 7, SCIP_NLPPAR_OPTFILE = 8, SCIP_NLPPAR_FASTFAIL = 9 } |
enum | SCIP_NlpSolStat { SCIP_NLPSOLSTAT_GLOBOPT = 0, SCIP_NLPSOLSTAT_LOCOPT = 1, SCIP_NLPSOLSTAT_FEASIBLE = 2, SCIP_NLPSOLSTAT_LOCINFEASIBLE = 3, SCIP_NLPSOLSTAT_GLOBINFEASIBLE = 4, SCIP_NLPSOLSTAT_UNBOUNDED = 5, SCIP_NLPSOLSTAT_UNKNOWN = 6 } |
enum | SCIP_NlpTermStat { SCIP_NLPTERMSTAT_OKAY = 0, SCIP_NLPTERMSTAT_TILIM = 1, SCIP_NLPTERMSTAT_ITLIM = 2, SCIP_NLPTERMSTAT_LOBJLIM = 3, SCIP_NLPTERMSTAT_UOBJLIM = 4, SCIP_NLPTERMSTAT_NUMERR = 5, SCIP_NLPTERMSTAT_EVALERR = 6, SCIP_NLPTERMSTAT_MEMERR = 7, SCIP_NLPTERMSTAT_LICERR = 8, SCIP_NLPTERMSTAT_OTHER = 9 } |
#define SCIP_DECL_NLPICOPY | ( | x | ) | SCIP_RETCODE x (BMS_BLKMEM* blkmem, SCIP_NLPI* sourcenlpi, SCIP_NLPI** targetnlpi) |
NLP solver termination status copy method of NLP interface (called when SCIP copies plugins)
input:
Definition at line 94 of file type_nlpi.h.
#define SCIP_DECL_NLPIFREE | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi) |
destructor of NLP interface to free nlpi data
input:
Definition at line 101 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETSOLVERPOINTER | ( | x | ) | void* x (SCIP_NLPI* nlpi) |
gets pointer to solver-internal NLP solver
to do dirty stuff
input:
return: void pointer to solver
Definition at line 112 of file type_nlpi.h.
#define SCIP_DECL_NLPICREATEPROBLEM | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM** problem, const char* name) |
creates a problem instance
input:
Definition at line 121 of file type_nlpi.h.
#define SCIP_DECL_NLPIFREEPROBLEM | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM** problem) |
free a problem instance
input:
Definition at line 129 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETPROBLEMPOINTER | ( | x | ) | void* x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem) |
gets pointer to solver-internal problem instance
to do dirty stuff
input:
return: void pointer to problem instance
Definition at line 141 of file type_nlpi.h.
#define SCIP_DECL_NLPIADDVARS | ( | x | ) |
add variables
input:
Definition at line 153 of file type_nlpi.h.
#define SCIP_DECL_NLPIADDCONSTRAINTS | ( | x | ) |
add constraints quadratic coefficiens: row oriented matrix for each constraint
input:
Definition at line 183 of file type_nlpi.h.
#define SCIP_DECL_NLPISETOBJECTIVE | ( | x | ) |
sets or overwrites objective, a minimization problem is expected May change sparsity pattern.
input:
Definition at line 207 of file type_nlpi.h.
#define SCIP_DECL_NLPICHGVARBOUNDS | ( | x | ) |
change variable bounds
input:
Definition at line 221 of file type_nlpi.h.
#define SCIP_DECL_NLPICHGCONSSIDES | ( | x | ) |
change constraint sides
input:
Definition at line 234 of file type_nlpi.h.
#define SCIP_DECL_NLPIDELVARSET | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, int* dstats) |
delete a set of variables
input:
output:
Definition at line 247 of file type_nlpi.h.
#define SCIP_DECL_NLPIDELCONSSET | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, int* dstats) |
delete a set of constraints
input:
output:
Definition at line 259 of file type_nlpi.h.
#define SCIP_DECL_NLPICHGLINEARCOEFS | ( | x | ) |
changes (or adds) linear coefficients in a constraint or objective
input:
Definition at line 271 of file type_nlpi.h.
#define SCIP_DECL_NLPICHGQUADCOEFS | ( | x | ) |
changes (or adds) coefficients in the quadratic part of a constraint or objective
input:
Definition at line 283 of file type_nlpi.h.
#define SCIP_DECL_NLPICHGEXPRTREE | ( | x | ) |
replaces the expression tree of a constraint or objective
input:
Definition at line 295 of file type_nlpi.h.
#define SCIP_DECL_NLPICHGNONLINCOEF | ( | x | ) |
change the value of one parameter in the nonlinear part
input:
return: Error if parameter does not exist
Definition at line 309 of file type_nlpi.h.
#define SCIP_DECL_NLPICHGOBJCONSTANT | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, SCIP_Real objconstant) |
change the constant offset in the objective
input:
Definition at line 319 of file type_nlpi.h.
#define SCIP_DECL_NLPISETINITIALGUESS | ( | x | ) |
sets initial guess for primal variables
input:
Definition at line 331 of file type_nlpi.h.
#define SCIP_DECL_NLPISOLVE | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem) |
tries to solve NLP
input:
Definition at line 340 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETSOLSTAT | ( | x | ) | SCIP_NLPSOLSTAT x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem) |
gives solution status
input:
return: Solution Status
Definition at line 350 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETTERMSTAT | ( | x | ) | SCIP_NLPTERMSTAT x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem) |
gives termination reason
input:
return: Termination Status
Definition at line 360 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETSOLUTION | ( | x | ) |
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 377 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETSTATISTICS | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, SCIP_NLPSTATISTICS* statistics) |
gives solve statistics
input:
output:
Definition at line 390 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETWARMSTARTSIZE | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, size_t* size) |
gives required size of a buffer to store a warmstart object
input:
output:
Definition at line 402 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETWARMSTARTMEMO | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, void* buffer) |
stores warmstart information in buffer
required size of buffer should have been obtained by SCIPnlpiGetWarmstartSize before
input:
output:
Definition at line 416 of file type_nlpi.h.
#define SCIP_DECL_NLPISETWARMSTARTMEMO | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, void* buffer) |
sets warmstart information in solver
write warmstart to buffer
input:
Definition at line 427 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETINTPAR | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, SCIP_NLPPARAM type, int* ival) |
gets integer parameter of NLP
input:
output:
Definition at line 443 of file type_nlpi.h.
#define SCIP_DECL_NLPISETINTPAR | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, SCIP_NLPPARAM type, int ival) |
sets integer parameter of NLP
input:
Definition at line 453 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETREALPAR | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, SCIP_NLPPARAM type, SCIP_Real* dval) |
gets floating point parameter of NLP
input:
output:
Definition at line 466 of file type_nlpi.h.
#define SCIP_DECL_NLPISETREALPAR | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, SCIP_NLPPARAM type, SCIP_Real dval) |
sets floating point parameter of NLP
input:
Definition at line 476 of file type_nlpi.h.
#define SCIP_DECL_NLPIGETSTRINGPAR | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, SCIP_NLPPARAM type, const char** sval) |
gets string parameter of NLP
input:
output:
Definition at line 489 of file type_nlpi.h.
#define SCIP_DECL_NLPISETSTRINGPAR | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_NLPIPROBLEM* problem, SCIP_NLPPARAM type, const char* sval) |
sets string parameter of NLP
input:
Definition at line 499 of file type_nlpi.h.
#define SCIP_DECL_NLPISETMESSAGEHDLR | ( | x | ) | SCIP_RETCODE x (SCIP_NLPI* nlpi, SCIP_MESSAGEHDLR* messagehdlr) |
sets message handler for message output
input:
Definition at line 507 of file type_nlpi.h.
NLP solver interface
Definition at line 37 of file type_nlpi.h.
typedef struct SCIP_NlpiData SCIP_NLPIDATA |
locally defined NLP solver interface data
Definition at line 38 of file type_nlpi.h.
typedef struct SCIP_NlpiProblem SCIP_NLPIPROBLEM |
locally defined NLP solver interface data for a specific problem instance
Definition at line 39 of file type_nlpi.h.
typedef struct SCIP_NlpStatistics SCIP_NLPSTATISTICS |
NLP solve statistics
Definition at line 40 of file type_nlpi.h.
typedef enum SCIP_NlpParam SCIP_NLPPARAM |
NLP solver parameter
Definition at line 56 of file type_nlpi.h.
typedef enum SCIP_NlpSolStat SCIP_NLPSOLSTAT |
Definition at line 69 of file type_nlpi.h.
typedef enum SCIP_NlpTermStat SCIP_NLPTERMSTAT |
Definition at line 85 of file type_nlpi.h.
enum SCIP_NlpParam |
NLP solver parameter
Definition at line 43 of file type_nlpi.h.
enum SCIP_NlpSolStat |
NLP solution status
Definition at line 59 of file type_nlpi.h.
enum SCIP_NlpTermStat |
NLP solution status NLP solver termination status
Definition at line 72 of file type_nlpi.h.