CPLEX
Neophodno je uključiti zaglavlje ilocplex/cplex.h
#include<ilcplex/cplex.h>
CPX_MIN | 1 | minimizacija |
CPX_MAX | -1 | maksimizacija |
CPX_CONTINUOUS | 'C' | realna promenljiva |
CPX_BINARY | 'B' | binarna promenljiva |
CPX_INTEGER | 'I' | celobrojna promenljiva |
sense[i] = 'L' | ≤ |
sense[i] = 'E' | = |
sense[i] = 'G' | ≥ |
sense[i] = 'R' | interval |
sense[i] = 'L' | ≤ |
sense[i] = 'E' | = |
sense[i] = 'G' | ≥ |
sense[i] = 'R' | interval |
0 | CPX_ALG_AUTOMATIC | Automatic |
1 | CPX_ALG_PRIMAL | Primal Simplex |
2 | CPX_ALG_DUAL | Dual Simplex |
3 | CPX_ALG_NET | Network Simplex |
4 | CPX_ALG_BARRIER | Barrier |
5 | CPX_ALG_SIFTING | Sifting |
6 | CPX_ALG_CONCURRENT | Concurrent Dual, Barrier and Primal |
int CPXprimopt (CPXENVptr env, CPXLPptr lp); | primal simplex |
int CPXdualopt (CPXENVptr env, CPXLPptr lp); | dual simplex |
int CPXgetstat (CPXENVptr env, CPXLPptr lp); | status rešenja |
int CPXgetobjval (CPXENVptr env, CPXLPptr lp, double *objval); | vrednost funkcije cilja |
int CPXgetx (CPXENVptr env, CPXLPptr lp, double *x, int begin, int end); | access the solution values for a range of problem variables |
int CPXgetpi (CPXENVptr env, CPXLPptr lp, double *pi, int begin, int end); | access the dual values for a range of the constraints |
int CPXgetslack (CPXENVptr env, CPXLPptr lp, double *slack, int begin, int end); | access the slack values for a range of the constraints |
int CPXgetdj (CPXENVptr env, CPXLPptr lp, double *dj, int begin, int end); | access the reduced costs for a range of the variables |
0 | CPXPROB_LP | Linear program, no ctype or quadratic data stored. |
1 | CPXPROB_MIP | Problem with ctype information. |
2 | CPXPROB_RELAXED | Problem with ctype information, LP relaxation. |
3 | CPXPROB_FIXED | Problem with ctype information, integer variables fixed. |
5 | CPXPROB_QP | Problem with quadratic data stored. |
6 | CPXPROB_ZEROEDQP | Problem with quadratic data stored, ignoring Q. |
"SAV" | Binary SAV file |
"MPS" | MPS format, original format |
"LP" | CPLEX LP format, original format |
"RMP" | MPS file, generic names |
"REW" | MPS file, generic names |
"RLP" | LP file, generic names |