14 #ifndef OR_TOOLS_GUROBI_ENVIRONMENT_H_
15 #define OR_TOOLS_GUROBI_ENVIRONMENT_H_
17 #include "absl/flags/declare.h"
18 #include "absl/flags/flag.h"
19 #include "absl/status/status.h"
20 #include "absl/status/statusor.h"
25 #define GUROBI_STDCALL __stdcall
27 #define GUROBI_STDCALL
32 typedef struct _GRBenv
GRBenv;
62 #define GRB_VERSION_MAJOR 10
63 #define GRB_VERSION_MINOR 0
64 #define GRB_VERSION_TECHNICAL 0
65 #define DEFAULT_CS_PRIORITY 0
66 #define MAX_CS_PRIORITY 100
67 #define DEFAULT_CS_PORT 61000
68 #define DEFAULT_CS_HANGUP 60
69 #define GRB_ERROR_OUT_OF_MEMORY 10001
70 #define GRB_ERROR_NULL_ARGUMENT 10002
71 #define GRB_ERROR_INVALID_ARGUMENT 10003
72 #define GRB_ERROR_UNKNOWN_ATTRIBUTE 10004
73 #define GRB_ERROR_DATA_NOT_AVAILABLE 10005
74 #define GRB_ERROR_INDEX_OUT_OF_RANGE 10006
75 #define GRB_ERROR_UNKNOWN_PARAMETER 10007
76 #define GRB_ERROR_VALUE_OUT_OF_RANGE 10008
77 #define GRB_ERROR_NO_LICENSE 10009
78 #define GRB_ERROR_SIZE_LIMIT_EXCEEDED 10010
79 #define GRB_ERROR_CALLBACK 10011
80 #define GRB_ERROR_FILE_READ 10012
81 #define GRB_ERROR_FILE_WRITE 10013
82 #define GRB_ERROR_NUMERIC 10014
83 #define GRB_ERROR_IIS_NOT_INFEASIBLE 10015
84 #define GRB_ERROR_NOT_FOR_MIP 10016
85 #define GRB_ERROR_OPTIMIZATION_IN_PROGRESS 10017
86 #define GRB_ERROR_DUPLICATES 10018
87 #define GRB_ERROR_NODEFILE 10019
88 #define GRB_ERROR_Q_NOT_PSD 10020
89 #define GRB_ERROR_QCP_EQUALITY_CONSTRAINT 10021
90 #define GRB_ERROR_NETWORK 10022
91 #define GRB_ERROR_JOB_REJECTED 10023
92 #define GRB_ERROR_NOT_SUPPORTED 10024
93 #define GRB_ERROR_EXCEED_2B_NONZEROS 10025
94 #define GRB_ERROR_INVALID_PIECEWISE_OBJ 10026
95 #define GRB_ERROR_UPDATEMODE_CHANGE 10027
96 #define GRB_ERROR_CLOUD 10028
97 #define GRB_ERROR_MODEL_MODIFICATION 10029
98 #define GRB_ERROR_CSWORKER 10030
99 #define GRB_ERROR_TUNE_MODEL_TYPES 10031
100 #define GRB_ERROR_SECURITY 10032
101 #define GRB_LESS_EQUAL '<'
102 #define GRB_GREATER_EQUAL '>'
103 #define GRB_EQUAL '='
104 #define GRB_CONTINUOUS 'C'
105 #define GRB_BINARY 'B'
106 #define GRB_INTEGER 'I'
107 #define GRB_SEMICONT 'S'
108 #define GRB_SEMIINT 'N'
109 #define GRB_MINIMIZE 1
110 #define GRB_MAXIMIZE -1
111 #define GRB_SOS_TYPE1 1
112 #define GRB_SOS_TYPE2 2
113 #define GRB_INFINITY 1e100
114 #define GRB_UNDEFINED 1e101
115 #define GRB_MAXINT 2000000000
116 #define GRB_MAX_NAMELEN 255
117 #define GRB_MAX_STRLEN 512
118 #define GRB_MAX_TAGLEN 10240
119 #define GRB_MAX_CONCURRENT 64
120 #define CB_ARGS GRBmodel *model, void *cbdata, int where, void *usrdata
121 #define LOGCB_ARGS char *msg, void *logdata
122 extern std::function<int(
GRBenv**,
const char*,
const char*,
const char*,
int,
const char*)>
GRBisqp;
146 extern std::function<int(
void *cbdata,
int where,
int what,
void *resultP)>
GRBcbget;
147 extern std::function<int(
void *cbdata,
const double *solution,
double *objvalP)>
GRBcbsolution;
148 extern std::function<int(
void *cbdata,
int cutlen,
const int *cutind,
const double *cutval,
char cutsense,
double cutrhs)>
GRBcbcut;
149 extern std::function<int(
void *cbdata,
int lazylen,
const int *lazyind,
const double *lazyval,
char lazysense,
double lazyrhs)>
GRBcblazy;
150 #define GRB_INT_ATTR_NUMCONSTRS "NumConstrs"
151 #define GRB_INT_ATTR_NUMVARS "NumVars"
152 #define GRB_INT_ATTR_NUMSOS "NumSOS"
153 #define GRB_INT_ATTR_NUMQCONSTRS "NumQConstrs"
154 #define GRB_INT_ATTR_NUMGENCONSTRS "NumGenConstrs"
155 #define GRB_INT_ATTR_NUMNZS "NumNZs"
156 #define GRB_DBL_ATTR_DNUMNZS "DNumNZs"
157 #define GRB_INT_ATTR_NUMQNZS "NumQNZs"
158 #define GRB_INT_ATTR_NUMQCNZS "NumQCNZs"
159 #define GRB_INT_ATTR_NUMINTVARS "NumIntVars"
160 #define GRB_INT_ATTR_NUMBINVARS "NumBinVars"
161 #define GRB_INT_ATTR_NUMPWLOBJVARS "NumPWLObjVars"
162 #define GRB_STR_ATTR_MODELNAME "ModelName"
163 #define GRB_INT_ATTR_MODELSENSE "ModelSense"
164 #define GRB_DBL_ATTR_OBJCON "ObjCon"
165 #define GRB_INT_ATTR_IS_MIP "IsMIP"
166 #define GRB_INT_ATTR_IS_QP "IsQP"
167 #define GRB_INT_ATTR_IS_QCP "IsQCP"
168 #define GRB_INT_ATTR_IS_MULTIOBJ "IsMultiObj"
169 #define GRB_INT_ATTR_LICENSE_EXPIRATION "LicenseExpiration"
170 #define GRB_INT_ATTR_NUMTAGGED "NumTagged"
171 #define GRB_INT_ATTR_FINGERPRINT "Fingerprint"
172 #define GRB_INT_ATTR_BATCHERRORCODE "BatchErrorCode"
173 #define GRB_STR_ATTR_BATCHERRORMESSAGE "BatchErrorMessage"
174 #define GRB_STR_ATTR_BATCHID "BatchID"
175 #define GRB_INT_ATTR_BATCHSTATUS "BatchStatus"
176 #define GRB_DBL_ATTR_LB "LB"
177 #define GRB_DBL_ATTR_UB "UB"
178 #define GRB_DBL_ATTR_OBJ "Obj"
179 #define GRB_CHAR_ATTR_VTYPE "VType"
180 #define GRB_DBL_ATTR_START "Start"
181 #define GRB_DBL_ATTR_PSTART "PStart"
182 #define GRB_INT_ATTR_BRANCHPRIORITY "BranchPriority"
183 #define GRB_STR_ATTR_VARNAME "VarName"
184 #define GRB_INT_ATTR_PWLOBJCVX "PWLObjCvx"
185 #define GRB_DBL_ATTR_VARHINTVAL "VarHintVal"
186 #define GRB_INT_ATTR_VARHINTPRI "VarHintPri"
187 #define GRB_INT_ATTR_PARTITION "Partition"
188 #define GRB_INT_ATTR_POOLIGNORE "PoolIgnore"
189 #define GRB_STR_ATTR_VTAG "VTag"
190 #define GRB_STR_ATTR_CTAG "CTag"
191 #define GRB_DBL_ATTR_RHS "RHS"
192 #define GRB_DBL_ATTR_DSTART "DStart"
193 #define GRB_CHAR_ATTR_SENSE "Sense"
194 #define GRB_STR_ATTR_CONSTRNAME "ConstrName"
195 #define GRB_INT_ATTR_LAZY "Lazy"
196 #define GRB_STR_ATTR_QCTAG "QCTag"
197 #define GRB_DBL_ATTR_QCRHS "QCRHS"
198 #define GRB_CHAR_ATTR_QCSENSE "QCSense"
199 #define GRB_STR_ATTR_QCNAME "QCName"
200 #define GRB_INT_ATTR_GENCONSTRTYPE "GenConstrType"
201 #define GRB_STR_ATTR_GENCONSTRNAME "GenConstrName"
202 #define GRB_INT_ATTR_FUNCPIECES "FuncPieces"
203 #define GRB_DBL_ATTR_FUNCPIECEERROR "FuncPieceError"
204 #define GRB_DBL_ATTR_FUNCPIECELENGTH "FuncPieceLength"
205 #define GRB_DBL_ATTR_FUNCPIECERATIO "FuncPieceRatio"
206 #define GRB_DBL_ATTR_MAX_COEFF "MaxCoeff"
207 #define GRB_DBL_ATTR_MIN_COEFF "MinCoeff"
208 #define GRB_DBL_ATTR_MAX_BOUND "MaxBound"
209 #define GRB_DBL_ATTR_MIN_BOUND "MinBound"
210 #define GRB_DBL_ATTR_MAX_OBJ_COEFF "MaxObjCoeff"
211 #define GRB_DBL_ATTR_MIN_OBJ_COEFF "MinObjCoeff"
212 #define GRB_DBL_ATTR_MAX_RHS "MaxRHS"
213 #define GRB_DBL_ATTR_MIN_RHS "MinRHS"
214 #define GRB_DBL_ATTR_MAX_QCCOEFF "MaxQCCoeff"
215 #define GRB_DBL_ATTR_MIN_QCCOEFF "MinQCCoeff"
216 #define GRB_DBL_ATTR_MAX_QOBJ_COEFF "MaxQObjCoeff"
217 #define GRB_DBL_ATTR_MIN_QOBJ_COEFF "MinQObjCoeff"
218 #define GRB_DBL_ATTR_MAX_QCLCOEFF "MaxQCLCoeff"
219 #define GRB_DBL_ATTR_MIN_QCLCOEFF "MinQCLCoeff"
220 #define GRB_DBL_ATTR_MAX_QCRHS "MaxQCRHS"
221 #define GRB_DBL_ATTR_MIN_QCRHS "MinQCRHS"
222 #define GRB_DBL_ATTR_RUNTIME "Runtime"
223 #define GRB_DBL_ATTR_WORK "Work"
224 #define GRB_INT_ATTR_STATUS "Status"
225 #define GRB_DBL_ATTR_OBJVAL "ObjVal"
226 #define GRB_DBL_ATTR_OBJBOUND "ObjBound"
227 #define GRB_DBL_ATTR_OBJBOUNDC "ObjBoundC"
228 #define GRB_DBL_ATTR_POOLOBJBOUND "PoolObjBound"
229 #define GRB_DBL_ATTR_POOLOBJVAL "PoolObjVal"
230 #define GRB_DBL_ATTR_MIPGAP "MIPGap"
231 #define GRB_INT_ATTR_SOLCOUNT "SolCount"
232 #define GRB_DBL_ATTR_ITERCOUNT "IterCount"
233 #define GRB_INT_ATTR_BARITERCOUNT "BarIterCount"
234 #define GRB_DBL_ATTR_NODECOUNT "NodeCount"
235 #define GRB_DBL_ATTR_OPENNODECOUNT "OpenNodeCount"
236 #define GRB_INT_ATTR_HASDUALNORM "HasDualNorm"
237 #define GRB_INT_ATTR_CONCURRENTWINMETHOD "ConcurrentWinMethod"
238 #define GRB_DBL_ATTR_X "X"
239 #define GRB_DBL_ATTR_XN "Xn"
240 #define GRB_DBL_ATTR_BARX "BarX"
241 #define GRB_DBL_ATTR_RC "RC"
242 #define GRB_DBL_ATTR_VDUALNORM "VDualNorm"
243 #define GRB_INT_ATTR_VBASIS "VBasis"
244 #define GRB_DBL_ATTR_PI "Pi"
245 #define GRB_DBL_ATTR_QCPI "QCPi"
246 #define GRB_DBL_ATTR_SLACK "Slack"
247 #define GRB_DBL_ATTR_QCSLACK "QCSlack"
248 #define GRB_DBL_ATTR_CDUALNORM "CDualNorm"
249 #define GRB_INT_ATTR_CBASIS "CBasis"
250 #define GRB_DBL_ATTR_MAX_VIO "MaxVio"
251 #define GRB_DBL_ATTR_BOUND_VIO "BoundVio"
252 #define GRB_DBL_ATTR_BOUND_SVIO "BoundSVio"
253 #define GRB_INT_ATTR_BOUND_VIO_INDEX "BoundVioIndex"
254 #define GRB_INT_ATTR_BOUND_SVIO_INDEX "BoundSVioIndex"
255 #define GRB_DBL_ATTR_BOUND_VIO_SUM "BoundVioSum"
256 #define GRB_DBL_ATTR_BOUND_SVIO_SUM "BoundSVioSum"
257 #define GRB_DBL_ATTR_CONSTR_VIO "ConstrVio"
258 #define GRB_DBL_ATTR_CONSTR_SVIO "ConstrSVio"
259 #define GRB_INT_ATTR_CONSTR_VIO_INDEX "ConstrVioIndex"
260 #define GRB_INT_ATTR_CONSTR_SVIO_INDEX "ConstrSVioIndex"
261 #define GRB_DBL_ATTR_CONSTR_VIO_SUM "ConstrVioSum"
262 #define GRB_DBL_ATTR_CONSTR_SVIO_SUM "ConstrSVioSum"
263 #define GRB_DBL_ATTR_CONSTR_RESIDUAL "ConstrResidual"
264 #define GRB_DBL_ATTR_CONSTR_SRESIDUAL "ConstrSResidual"
265 #define GRB_INT_ATTR_CONSTR_RESIDUAL_INDEX "ConstrResidualIndex"
266 #define GRB_INT_ATTR_CONSTR_SRESIDUAL_INDEX "ConstrSResidualIndex"
267 #define GRB_DBL_ATTR_CONSTR_RESIDUAL_SUM "ConstrResidualSum"
268 #define GRB_DBL_ATTR_CONSTR_SRESIDUAL_SUM "ConstrSResidualSum"
269 #define GRB_DBL_ATTR_DUAL_VIO "DualVio"
270 #define GRB_DBL_ATTR_DUAL_SVIO "DualSVio"
271 #define GRB_INT_ATTR_DUAL_VIO_INDEX "DualVioIndex"
272 #define GRB_INT_ATTR_DUAL_SVIO_INDEX "DualSVioIndex"
273 #define GRB_DBL_ATTR_DUAL_VIO_SUM "DualVioSum"
274 #define GRB_DBL_ATTR_DUAL_SVIO_SUM "DualSVioSum"
275 #define GRB_DBL_ATTR_DUAL_RESIDUAL "DualResidual"
276 #define GRB_DBL_ATTR_DUAL_SRESIDUAL "DualSResidual"
277 #define GRB_INT_ATTR_DUAL_RESIDUAL_INDEX "DualResidualIndex"
278 #define GRB_INT_ATTR_DUAL_SRESIDUAL_INDEX "DualSResidualIndex"
279 #define GRB_DBL_ATTR_DUAL_RESIDUAL_SUM "DualResidualSum"
280 #define GRB_DBL_ATTR_DUAL_SRESIDUAL_SUM "DualSResidualSum"
281 #define GRB_DBL_ATTR_INT_VIO "IntVio"
282 #define GRB_INT_ATTR_INT_VIO_INDEX "IntVioIndex"
283 #define GRB_DBL_ATTR_INT_VIO_SUM "IntVioSum"
284 #define GRB_DBL_ATTR_COMPL_VIO "ComplVio"
285 #define GRB_INT_ATTR_COMPL_VIO_INDEX "ComplVioIndex"
286 #define GRB_DBL_ATTR_COMPL_VIO_SUM "ComplVioSum"
287 #define GRB_DBL_ATTR_KAPPA "Kappa"
288 #define GRB_DBL_ATTR_KAPPA_EXACT "KappaExact"
289 #define GRB_DBL_ATTR_N2KAPPA "N2Kappa"
290 #define GRB_DBL_ATTR_SA_OBJLOW "SAObjLow"
291 #define GRB_DBL_ATTR_SA_OBJUP "SAObjUp"
292 #define GRB_DBL_ATTR_SA_LBLOW "SALBLow"
293 #define GRB_DBL_ATTR_SA_LBUP "SALBUp"
294 #define GRB_DBL_ATTR_SA_UBLOW "SAUBLow"
295 #define GRB_DBL_ATTR_SA_UBUP "SAUBUp"
296 #define GRB_DBL_ATTR_SA_RHSLOW "SARHSLow"
297 #define GRB_DBL_ATTR_SA_RHSUP "SARHSUp"
298 #define GRB_INT_ATTR_IIS_MINIMAL "IISMinimal"
299 #define GRB_INT_ATTR_IIS_LB "IISLB"
300 #define GRB_INT_ATTR_IIS_UB "IISUB"
301 #define GRB_INT_ATTR_IIS_CONSTR "IISConstr"
302 #define GRB_INT_ATTR_IIS_SOS "IISSOS"
303 #define GRB_INT_ATTR_IIS_QCONSTR "IISQConstr"
304 #define GRB_INT_ATTR_IIS_GENCONSTR "IISGenConstr"
305 #define GRB_INT_ATTR_IIS_LBFORCE "IISLBForce"
306 #define GRB_INT_ATTR_IIS_UBFORCE "IISUBForce"
307 #define GRB_INT_ATTR_IIS_CONSTRFORCE "IISConstrForce"
308 #define GRB_INT_ATTR_IIS_SOSFORCE "IISSOSForce"
309 #define GRB_INT_ATTR_IIS_QCONSTRFORCE "IISQConstrForce"
310 #define GRB_INT_ATTR_IIS_GENCONSTRFORCE "IISGenConstrForce"
311 #define GRB_INT_ATTR_TUNE_RESULTCOUNT "TuneResultCount"
312 #define GRB_DBL_ATTR_FARKASDUAL "FarkasDual"
313 #define GRB_DBL_ATTR_FARKASPROOF "FarkasProof"
314 #define GRB_DBL_ATTR_UNBDRAY "UnbdRay"
315 #define GRB_INT_ATTR_INFEASVAR "InfeasVar"
316 #define GRB_INT_ATTR_UNBDVAR "UnbdVar"
317 #define GRB_INT_ATTR_VARPRESTAT "VarPreStat"
318 #define GRB_DBL_ATTR_PREFIXVAL "PreFixVal"
319 #define GRB_DBL_ATTR_OBJN "ObjN"
320 #define GRB_DBL_ATTR_OBJNVAL "ObjNVal"
321 #define GRB_DBL_ATTR_OBJNCON "ObjNCon"
322 #define GRB_DBL_ATTR_OBJNWEIGHT "ObjNWeight"
323 #define GRB_INT_ATTR_OBJNPRIORITY "ObjNPriority"
324 #define GRB_DBL_ATTR_OBJNRELTOL "ObjNRelTol"
325 #define GRB_DBL_ATTR_OBJNABSTOL "ObjNAbsTol"
326 #define GRB_STR_ATTR_OBJNNAME "ObjNName"
327 #define GRB_DBL_ATTR_SCENNLB "ScenNLB"
328 #define GRB_DBL_ATTR_SCENNUB "ScenNUB"
329 #define GRB_DBL_ATTR_SCENNOBJ "ScenNObj"
330 #define GRB_DBL_ATTR_SCENNRHS "ScenNRHS"
331 #define GRB_STR_ATTR_SCENNNAME "ScenNName"
332 #define GRB_DBL_ATTR_SCENNX "ScenNX"
333 #define GRB_DBL_ATTR_SCENNOBJBOUND "ScenNObjBound"
334 #define GRB_DBL_ATTR_SCENNOBJVAL "ScenNObjVal"
335 #define GRB_INT_ATTR_NUMOBJ "NumObj"
336 #define GRB_INT_ATTR_NUMSCENARIOS "NumScenarios"
337 #define GRB_INT_ATTR_NUMSTART "NumStart"
338 #define GRB_GENCONSTR_MAX 0
339 #define GRB_GENCONSTR_MIN 1
340 #define GRB_GENCONSTR_ABS 2
341 #define GRB_GENCONSTR_AND 3
342 #define GRB_GENCONSTR_OR 4
343 #define GRB_GENCONSTR_NORM 5
344 #define GRB_GENCONSTR_INDICATOR 6
345 #define GRB_GENCONSTR_PWL 7
346 #define GRB_GENCONSTR_POLY 8
347 #define GRB_GENCONSTR_EXP 9
348 #define GRB_GENCONSTR_EXPA 10
349 #define GRB_GENCONSTR_LOG 11
350 #define GRB_GENCONSTR_LOGA 12
351 #define GRB_GENCONSTR_POW 13
352 #define GRB_GENCONSTR_SIN 14
353 #define GRB_GENCONSTR_COS 15
354 #define GRB_GENCONSTR_TAN 16
355 #define GRB_GENCONSTR_LOGISTIC 17
356 #define GRB_CB_POLLING 0
357 #define GRB_CB_PRESOLVE 1
358 #define GRB_CB_SIMPLEX 2
360 #define GRB_CB_MIPSOL 4
361 #define GRB_CB_MIPNODE 5
362 #define GRB_CB_MESSAGE 6
363 #define GRB_CB_BARRIER 7
364 #define GRB_CB_MULTIOBJ 8
366 #define GRB_CB_PRE_COLDEL 1000
367 #define GRB_CB_PRE_ROWDEL 1001
368 #define GRB_CB_PRE_SENCHG 1002
369 #define GRB_CB_PRE_BNDCHG 1003
370 #define GRB_CB_PRE_COECHG 1004
371 #define GRB_CB_SPX_ITRCNT 2000
372 #define GRB_CB_SPX_OBJVAL 2001
373 #define GRB_CB_SPX_PRIMINF 2002
374 #define GRB_CB_SPX_DUALINF 2003
375 #define GRB_CB_SPX_ISPERT 2004
376 #define GRB_CB_MIP_OBJBST 3000
377 #define GRB_CB_MIP_OBJBND 3001
378 #define GRB_CB_MIP_NODCNT 3002
379 #define GRB_CB_MIP_SOLCNT 3003
380 #define GRB_CB_MIP_CUTCNT 3004
381 #define GRB_CB_MIP_NODLFT 3005
382 #define GRB_CB_MIP_ITRCNT 3006
383 #define GRB_CB_MIP_OPENSCENARIOS 3007
384 #define GRB_CB_MIP_PHASE 3008
385 #define GRB_CB_MIPSOL_SOL 4001
386 #define GRB_CB_MIPSOL_OBJ 4002
387 #define GRB_CB_MIPSOL_OBJBST 4003
388 #define GRB_CB_MIPSOL_OBJBND 4004
389 #define GRB_CB_MIPSOL_NODCNT 4005
390 #define GRB_CB_MIPSOL_SOLCNT 4006
391 #define GRB_CB_MIPSOL_OPENSCENARIOS 4007
392 #define GRB_CB_MIPSOL_PHASE 4008
393 #define GRB_CB_MIPNODE_STATUS 5001
394 #define GRB_CB_MIPNODE_REL 5002
395 #define GRB_CB_MIPNODE_OBJBST 5003
396 #define GRB_CB_MIPNODE_OBJBND 5004
397 #define GRB_CB_MIPNODE_NODCNT 5005
398 #define GRB_CB_MIPNODE_SOLCNT 5006
399 #define GRB_CB_MIPNODE_BRVAR 5007
400 #define GRB_CB_MIPNODE_OPENSCENARIOS 5008
401 #define GRB_CB_MIPNODE_PHASE 5009
402 #define GRB_CB_MSG_STRING 6001
403 #define GRB_CB_RUNTIME 6002
404 #define GRB_CB_WORK 6003
405 #define GRB_CB_BARRIER_ITRCNT 7001
406 #define GRB_CB_BARRIER_PRIMOBJ 7002
407 #define GRB_CB_BARRIER_DUALOBJ 7003
408 #define GRB_CB_BARRIER_PRIMINF 7004
409 #define GRB_CB_BARRIER_DUALINF 7005
410 #define GRB_CB_BARRIER_COMPL 7006
411 #define GRB_CB_MULTIOBJ_OBJCNT 8001
412 #define GRB_CB_MULTIOBJ_SOLCNT 8002
413 #define GRB_CB_MULTIOBJ_SOL 8003
414 #define GRB_CB_IIS_CONSTRMIN 9001
415 #define GRB_CB_IIS_CONSTRMAX 9002
416 #define GRB_CB_IIS_CONSTRGUESS 9003
417 #define GRB_CB_IIS_BOUNDMIN 9004
418 #define GRB_CB_IIS_BOUNDMAX 9005
419 #define GRB_CB_IIS_BOUNDGUESS 9006
420 #define GRB_FEASRELAX_LINEAR 0
421 #define GRB_FEASRELAX_QUADRATIC 1
422 #define GRB_FEASRELAX_CARDINALITY 2
425 #define MALLOCCB_ARGS size_t size, void *syscbusrdata
426 #define CALLOCCB_ARGS size_t nmemb, size_t size, void *syscbusrdata
427 #define REALLOCCB_ARGS void *ptr, size_t size, void *syscbusrdata
428 #define FREECB_ARGS void *ptr, void *syscbusrdata
429 #define THREADCREATECB_ARGS void **threadP, void (*start_routine)(void *), void *arg, void *syscbusrdata
430 #define THREADJOINCB_ARGS void *thread, void *syscbusrdata
432 extern std::function<int(
GRBenv *env,
GRBmodel **modelP,
const char *Pname,
int numvars,
double *obj,
double *lb,
double *ub,
char *vtype,
char **varnames)>
GRBnewmodel;
433 extern std::function<int(
GRBmodel *
model,
int numnz,
int *vind,
double *vval,
double obj,
double lb,
double ub,
char vtype,
const char *varname)>
GRBaddvar;
434 extern std::function<int(
GRBmodel *
model,
int numvars,
int numnz,
int *vbeg,
int *vind,
double *vval,
double *obj,
double *lb,
double *ub,
char *vtype,
char **varnames)>
GRBaddvars;
435 extern std::function<int(
GRBmodel *
model,
int numnz,
int *cind,
double *cval,
char sense,
double rhs,
const char *constrname)>
GRBaddconstr;
436 extern std::function<int(
GRBmodel *
model,
int numconstrs,
int numnz,
int *cbeg,
int *cind,
double *cval,
char *sense,
double *rhs,
char **constrnames)>
GRBaddconstrs;
445 extern std::function<int(
GRBmodel *
model,
int numlnz,
int *lind,
double *lval,
int numqnz,
int *qrow,
int *qcol,
double *qval,
char sense,
double rhs,
const char *QCname)>
GRBaddqconstr;
457 #define GRB_OPTIMAL 2
458 #define GRB_INFEASIBLE 3
459 #define GRB_INF_OR_UNBD 4
460 #define GRB_UNBOUNDED 5
462 #define GRB_ITERATION_LIMIT 7
463 #define GRB_NODE_LIMIT 8
464 #define GRB_TIME_LIMIT 9
465 #define GRB_SOLUTION_LIMIT 10
466 #define GRB_INTERRUPTED 11
467 #define GRB_NUMERIC 12
468 #define GRB_SUBOPTIMAL 13
469 #define GRB_INPROGRESS 14
470 #define GRB_USER_OBJ_LIMIT 15
471 #define GRB_WORK_LIMIT 16
472 #define GRB_MEM_LIMIT 17
474 #define GRB_NONBASIC_LOWER -1
475 #define GRB_NONBASIC_UPPER -2
476 #define GRB_SUPERBASIC -3
477 #define GRB_INT_PAR_BARITERLIMIT "BarIterLimit"
478 #define GRB_DBL_PAR_CUTOFF "Cutoff"
479 #define GRB_DBL_PAR_ITERATIONLIMIT "IterationLimit"
480 #define GRB_DBL_PAR_NODELIMIT "NodeLimit"
481 #define GRB_INT_PAR_SOLUTIONLIMIT "SolutionLimit"
482 #define GRB_DBL_PAR_TIMELIMIT "TimeLimit"
483 #define GRB_DBL_PAR_WORKLIMIT "WorkLimit"
484 #define GRB_DBL_PAR_MEMLIMIT "MemLimit"
485 #define GRB_DBL_PAR_SOFTMEMLIMIT "SoftMemLimit"
486 #define GRB_DBL_PAR_BESTOBJSTOP "BestObjStop"
487 #define GRB_DBL_PAR_BESTBDSTOP "BestBdStop"
488 #define GRB_DBL_PAR_FEASIBILITYTOL "FeasibilityTol"
489 #define GRB_DBL_PAR_INTFEASTOL "IntFeasTol"
490 #define GRB_DBL_PAR_MARKOWITZTOL "MarkowitzTol"
491 #define GRB_DBL_PAR_MIPGAP "MIPGap"
492 #define GRB_DBL_PAR_MIPGAPABS "MIPGapAbs"
493 #define GRB_DBL_PAR_OPTIMALITYTOL "OptimalityTol"
494 #define GRB_DBL_PAR_PSDTOL "PSDTol"
495 #define GRB_INT_PAR_METHOD "Method"
496 #define GRB_DBL_PAR_PERTURBVALUE "PerturbValue"
497 #define GRB_DBL_PAR_OBJSCALE "ObjScale"
498 #define GRB_INT_PAR_SCALEFLAG "ScaleFlag"
499 #define GRB_INT_PAR_SIMPLEXPRICING "SimplexPricing"
500 #define GRB_INT_PAR_QUAD "Quad"
501 #define GRB_INT_PAR_NORMADJUST "NormAdjust"
502 #define GRB_INT_PAR_SIFTING "Sifting"
503 #define GRB_INT_PAR_SIFTMETHOD "SiftMethod"
504 #define GRB_INT_PAR_LPWARMSTART "LPWarmStart"
505 #define GRB_INT_PAR_NETWORKALG "NetworkAlg"
506 #define GRB_DBL_PAR_BARCONVTOL "BarConvTol"
507 #define GRB_INT_PAR_BARCORRECTORS "BarCorrectors"
508 #define GRB_INT_PAR_BARHOMOGENEOUS "BarHomogeneous"
509 #define GRB_INT_PAR_BARORDER "BarOrder"
510 #define GRB_DBL_PAR_BARQCPCONVTOL "BarQCPConvTol"
511 #define GRB_INT_PAR_CROSSOVER "Crossover"
512 #define GRB_INT_PAR_CROSSOVERBASIS "CrossoverBasis"
513 #define GRB_INT_PAR_BRANCHDIR "BranchDir"
514 #define GRB_INT_PAR_DEGENMOVES "DegenMoves"
515 #define GRB_INT_PAR_DISCONNECTED "Disconnected"
516 #define GRB_DBL_PAR_HEURISTICS "Heuristics"
517 #define GRB_DBL_PAR_IMPROVESTARTGAP "ImproveStartGap"
518 #define GRB_DBL_PAR_IMPROVESTARTTIME "ImproveStartTime"
519 #define GRB_DBL_PAR_IMPROVESTARTNODES "ImproveStartNodes"
520 #define GRB_INT_PAR_INTEGRALITYFOCUS "IntegralityFocus"
521 #define GRB_INT_PAR_MINRELNODES "MinRelNodes"
522 #define GRB_INT_PAR_MIPFOCUS "MIPFocus"
523 #define GRB_INT_PAR_NLPHEUR "NLPHeur"
524 #define GRB_STR_PAR_NODEFILEDIR "NodefileDir"
525 #define GRB_DBL_PAR_NODEFILESTART "NodefileStart"
526 #define GRB_INT_PAR_NODEMETHOD "NodeMethod"
527 #define GRB_DBL_PAR_NORELHEURTIME "NoRelHeurTime"
528 #define GRB_DBL_PAR_NORELHEURWORK "NoRelHeurWork"
529 #define GRB_INT_PAR_OBBT "OBBT"
530 #define GRB_INT_PAR_PUMPPASSES "PumpPasses"
531 #define GRB_INT_PAR_RINS "RINS"
532 #define GRB_STR_PAR_SOLFILES "SolFiles"
533 #define GRB_INT_PAR_STARTNODELIMIT "StartNodeLimit"
534 #define GRB_INT_PAR_SUBMIPNODES "SubMIPNodes"
535 #define GRB_INT_PAR_SYMMETRY "Symmetry"
536 #define GRB_INT_PAR_VARBRANCH "VarBranch"
537 #define GRB_INT_PAR_SOLUTIONNUMBER "SolutionNumber"
538 #define GRB_INT_PAR_ZEROOBJNODES "ZeroObjNodes"
539 #define GRB_INT_PAR_CUTS "Cuts"
540 #define GRB_INT_PAR_CLIQUECUTS "CliqueCuts"
541 #define GRB_INT_PAR_COVERCUTS "CoverCuts"
542 #define GRB_INT_PAR_FLOWCOVERCUTS "FlowCoverCuts"
543 #define GRB_INT_PAR_FLOWPATHCUTS "FlowPathCuts"
544 #define GRB_INT_PAR_GUBCOVERCUTS "GUBCoverCuts"
545 #define GRB_INT_PAR_IMPLIEDCUTS "ImpliedCuts"
546 #define GRB_INT_PAR_PROJIMPLIEDCUTS "ProjImpliedCuts"
547 #define GRB_INT_PAR_MIPSEPCUTS "MIPSepCuts"
548 #define GRB_INT_PAR_MIRCUTS "MIRCuts"
549 #define GRB_INT_PAR_STRONGCGCUTS "StrongCGCuts"
550 #define GRB_INT_PAR_MODKCUTS "ModKCuts"
551 #define GRB_INT_PAR_ZEROHALFCUTS "ZeroHalfCuts"
552 #define GRB_INT_PAR_NETWORKCUTS "NetworkCuts"
553 #define GRB_INT_PAR_SUBMIPCUTS "SubMIPCuts"
554 #define GRB_INT_PAR_INFPROOFCUTS "InfProofCuts"
555 #define GRB_INT_PAR_RLTCUTS "RLTCuts"
556 #define GRB_INT_PAR_RELAXLIFTCUTS "RelaxLiftCuts"
557 #define GRB_INT_PAR_BQPCUTS "BQPCuts"
558 #define GRB_INT_PAR_PSDCUTS "PSDCuts"
559 #define GRB_INT_PAR_LIFTPROJECTCUTS "LiftProjectCuts"
560 #define GRB_INT_PAR_CUTAGGPASSES "CutAggPasses"
561 #define GRB_INT_PAR_CUTPASSES "CutPasses"
562 #define GRB_INT_PAR_GOMORYPASSES "GomoryPasses"
563 #define GRB_STR_PAR_WORKERPOOL "WorkerPool"
564 #define GRB_STR_PAR_WORKERPASSWORD "WorkerPassword"
565 #define GRB_STR_PAR_COMPUTESERVER "ComputeServer"
566 #define GRB_STR_PAR_TOKENSERVER "TokenServer"
567 #define GRB_STR_PAR_SERVERPASSWORD "ServerPassword"
568 #define GRB_INT_PAR_SERVERTIMEOUT "ServerTimeout"
569 #define GRB_STR_PAR_CSROUTER "CSRouter"
570 #define GRB_STR_PAR_CSGROUP "CSGroup"
571 #define GRB_DBL_PAR_CSQUEUETIMEOUT "CSQueueTimeout"
572 #define GRB_INT_PAR_CSPRIORITY "CSPriority"
573 #define GRB_INT_PAR_CSIDLETIMEOUT "CSIdleTimeout"
574 #define GRB_INT_PAR_CSTLSINSECURE "CSTLSInsecure"
575 #define GRB_INT_PAR_TSPORT "TSPort"
576 #define GRB_STR_PAR_CLOUDACCESSID "CloudAccessID"
577 #define GRB_STR_PAR_CLOUDSECRETKEY "CloudSecretKey"
578 #define GRB_STR_PAR_CLOUDPOOL "CloudPool"
579 #define GRB_STR_PAR_CLOUDHOST "CloudHost"
580 #define GRB_STR_PAR_CSMANAGER "CSManager"
581 #define GRB_STR_PAR_CSAUTHTOKEN "CSAuthToken"
582 #define GRB_STR_PAR_CSAPIACCESSID "CSAPIAccessID"
583 #define GRB_STR_PAR_CSAPISECRET "CSAPISecret"
584 #define GRB_INT_PAR_CSBATCHMODE "CSBatchMode"
585 #define GRB_STR_PAR_USERNAME "Username"
586 #define GRB_STR_PAR_CSAPPNAME "CSAppName"
587 #define GRB_INT_PAR_CSCLIENTLOG "CSClientLog"
588 #define GRB_STR_PAR_WLSACCESSID "WLSAccessID"
589 #define GRB_STR_PAR_WLSSECRET "WLSSecret"
590 #define GRB_INT_PAR_WLSTOKENDURATION "WLSTokenDuration"
591 #define GRB_DBL_PAR_WLSTOKENREFRESH "WLSTokenRefresh"
592 #define GRB_STR_PAR_WLSTOKEN "WLSToken"
593 #define GRB_INT_PAR_LICENSEID "LicenseID"
594 #define GRB_INT_PAR_AGGREGATE "Aggregate"
595 #define GRB_INT_PAR_AGGFILL "AggFill"
596 #define GRB_INT_PAR_CONCURRENTMIP "ConcurrentMIP"
597 #define GRB_INT_PAR_CONCURRENTJOBS "ConcurrentJobs"
598 #define GRB_INT_PAR_DISPLAYINTERVAL "DisplayInterval"
599 #define GRB_INT_PAR_DISTRIBUTEDMIPJOBS "DistributedMIPJobs"
600 #define GRB_INT_PAR_DUALREDUCTIONS "DualReductions"
601 #define GRB_DBL_PAR_FEASRELAXBIGM "FeasRelaxBigM"
602 #define GRB_INT_PAR_IISMETHOD "IISMethod"
603 #define GRB_INT_PAR_INFUNBDINFO "InfUnbdInfo"
604 #define GRB_INT_PAR_JSONSOLDETAIL "JSONSolDetail"
605 #define GRB_INT_PAR_LAZYCONSTRAINTS "LazyConstraints"
606 #define GRB_STR_PAR_LOGFILE "LogFile"
607 #define GRB_INT_PAR_LOGTOCONSOLE "LogToConsole"
608 #define GRB_INT_PAR_MIQCPMETHOD "MIQCPMethod"
609 #define GRB_INT_PAR_NONCONVEX "NonConvex"
610 #define GRB_INT_PAR_NUMERICFOCUS "NumericFocus"
611 #define GRB_INT_PAR_OUTPUTFLAG "OutputFlag"
612 #define GRB_INT_PAR_PRECRUSH "PreCrush"
613 #define GRB_INT_PAR_PREDEPROW "PreDepRow"
614 #define GRB_INT_PAR_PREDUAL "PreDual"
615 #define GRB_INT_PAR_PREPASSES "PrePasses"
616 #define GRB_INT_PAR_PREQLINEARIZE "PreQLinearize"
617 #define GRB_INT_PAR_PRESOLVE "Presolve"
618 #define GRB_DBL_PAR_PRESOS1BIGM "PreSOS1BigM"
619 #define GRB_DBL_PAR_PRESOS2BIGM "PreSOS2BigM"
620 #define GRB_INT_PAR_PRESOS1ENCODING "PreSOS1Encoding"
621 #define GRB_INT_PAR_PRESOS2ENCODING "PreSOS2Encoding"
622 #define GRB_INT_PAR_PRESPARSIFY "PreSparsify"
623 #define GRB_INT_PAR_PREMIQCPFORM "PreMIQCPForm"
624 #define GRB_INT_PAR_QCPDUAL "QCPDual"
625 #define GRB_INT_PAR_RECORD "Record"
626 #define GRB_STR_PAR_RESULTFILE "ResultFile"
627 #define GRB_INT_PAR_SEED "Seed"
628 #define GRB_INT_PAR_SOLUTIONTARGET "SolutionTarget"
629 #define GRB_INT_PAR_THREADS "Threads"
630 #define GRB_DBL_PAR_TUNETIMELIMIT "TuneTimeLimit"
631 #define GRB_INT_PAR_TUNERESULTS "TuneResults"
632 #define GRB_INT_PAR_TUNECRITERION "TuneCriterion"
633 #define GRB_INT_PAR_TUNETRIALS "TuneTrials"
634 #define GRB_INT_PAR_TUNEOUTPUT "TuneOutput"
635 #define GRB_INT_PAR_TUNEJOBS "TuneJobs"
636 #define GRB_DBL_PAR_TUNECLEANUP "TuneCleanup"
637 #define GRB_DBL_PAR_TUNETARGETMIPGAP "TuneTargetMIPGap"
638 #define GRB_DBL_PAR_TUNETARGETTIME "TuneTargetTime"
639 #define GRB_INT_PAR_TUNEMETRIC "TuneMetric"
640 #define GRB_INT_PAR_UPDATEMODE "UpdateMode"
641 #define GRB_INT_PAR_OBJNUMBER "ObjNumber"
642 #define GRB_INT_PAR_MULTIOBJMETHOD "MultiObjMethod"
643 #define GRB_INT_PAR_MULTIOBJPRE "MultiObjPre"
644 #define GRB_INT_PAR_SCENARIONUMBER "ScenarioNumber"
645 #define GRB_INT_PAR_POOLSOLUTIONS "PoolSolutions"
646 #define GRB_DBL_PAR_POOLGAP "PoolGap"
647 #define GRB_DBL_PAR_POOLGAPABS "PoolGapAbs"
648 #define GRB_INT_PAR_POOLSEARCHMODE "PoolSearchMode"
649 #define GRB_INT_PAR_IGNORENAMES "IgnoreNames"
650 #define GRB_INT_PAR_STARTNUMBER "StartNumber"
651 #define GRB_INT_PAR_PARTITIONPLACE "PartitionPlace"
652 #define GRB_INT_PAR_FUNCPIECES "FuncPieces"
653 #define GRB_DBL_PAR_FUNCPIECELENGTH "FuncPieceLength"
654 #define GRB_DBL_PAR_FUNCPIECEERROR "FuncPieceError"
655 #define GRB_DBL_PAR_FUNCPIECERATIO "FuncPieceRatio"
656 #define GRB_DBL_PAR_FUNCMAXVAL "FuncMaxVal"
657 #define GRB_STR_PAR_DUMMY "Dummy"
658 #define GRB_STR_PAR_JOBID "JobID"
659 #define GRB_CUTS_AUTO -1
660 #define GRB_CUTS_OFF 0
661 #define GRB_CUTS_CONSERVATIVE 1
662 #define GRB_CUTS_AGGRESSIVE 2
663 #define GRB_CUTS_VERYAGGRESSIVE 3
664 #define GRB_PRESOLVE_AUTO -1
665 #define GRB_PRESOLVE_OFF 0
666 #define GRB_PRESOLVE_CONSERVATIVE 1
667 #define GRB_PRESOLVE_AGGRESSIVE 2
668 #define GRB_METHOD_NONE -1
669 #define GRB_METHOD_AUTO -1
670 #define GRB_METHOD_PRIMAL 0
671 #define GRB_METHOD_DUAL 1
672 #define GRB_METHOD_BARRIER 2
673 #define GRB_METHOD_CONCURRENT 3
674 #define GRB_METHOD_DETERMINISTIC_CONCURRENT 4
675 #define GRB_METHOD_DETERMINISTIC_CONCURRENT_SIMPLEX 5
676 #define GRB_BARHOMOGENEOUS_AUTO -1
677 #define GRB_BARHOMOGENEOUS_OFF 0
678 #define GRB_BARHOMOGENEOUS_ON 1
679 #define GRB_MIPFOCUS_BALANCED 0
680 #define GRB_MIPFOCUS_FEASIBILITY 1
681 #define GRB_MIPFOCUS_OPTIMALITY 2
682 #define GRB_MIPFOCUS_BESTBOUND 3
683 #define GRB_BARORDER_AUTOMATIC -1
684 #define GRB_BARORDER_AMD 0
685 #define GRB_BARORDER_NESTEDDISSECTION 1
686 #define GRB_SIMPLEXPRICING_AUTO -1
687 #define GRB_SIMPLEXPRICING_PARTIAL 0
688 #define GRB_SIMPLEXPRICING_STEEPEST_EDGE 1
689 #define GRB_SIMPLEXPRICING_DEVEX 2
690 #define GRB_SIMPLEXPRICING_STEEPEST_QUICK 3
691 #define GRB_VARBRANCH_AUTO -1
692 #define GRB_VARBRANCH_PSEUDO_REDUCED 0
693 #define GRB_VARBRANCH_PSEUDO_SHADOW 1
694 #define GRB_VARBRANCH_MAX_INFEAS 2
695 #define GRB_VARBRANCH_STRONG 3
696 #define GRB_PARTITION_EARLY 16
697 #define GRB_PARTITION_ROOTSTART 8
698 #define GRB_PARTITION_ROOTEND 4
699 #define GRB_PARTITION_NODES 2
700 #define GRB_PARTITION_CLEANUP 1
701 #define GRB_PHASE_MIP_NOREL 0
702 #define GRB_PHASE_MIP_SEARCH 1
703 #define GRB_PHASE_MIP_IMPROVE 2
705 extern std::function<int(
GRBmodel *
model,
int index,
int priority,
double weight,
double abstol,
double reltol,
const char *
name,
double constant,
int lnz,
int *lind,
double *lval)>
GRBsetobjectiven;
715 extern std::function<int(
GRBenv **envP,
const char *logfilename)>
GRBloadenv;
719 extern std::function<void(
int *majorP,
int *minorP,
int *technicalP)>
GRBversion;
721 #define GRB_BATCH_STATUS_UNKNOWN 0
722 #define GRB_BATCH_CREATED 1
723 #define GRB_BATCH_SUBMITTED 2
724 #define GRB_BATCH_ABORTED 3
725 #define GRB_BATCH_FAILED 4
726 #define GRB_BATCH_COMPLETED 5
struct _GRBmodel GRBmodel
Collection of objects used to extend the Constraint Solver library.
std::function< int(GRBmodel *model, const char *attrname, int element, char *valueP)> GRBgetcharattrelement
std::function< int(GRBenv *env, const char *paramname, int *valueP)> GRBgetintparam
std::function< int(GRBmodel *model, const char *name, int resvar, int nvars, const int *vars, double constant)> GRBaddgenconstrMin
std::function< int(GRBmodel *model, int numnz, int *cind, double *cval, char sense, double rhs, const char *constrname)> GRBaddconstr
std::function< int(GRBmodel *model, const char *attrname, double *valueP)> GRBgetdblattr
std::function< int(GRBmodel *model, int numlnz, int *lind, double *lval, int numqnz, int *qrow, int *qcol, double *qval, char sense, double rhs, const char *QCname)> GRBaddqconstr
std::function< int(GRBmodel *model, const char *attrname, int len, int *ind, double *newvalues)> GRBsetdblattrlist
std::function< int(GRBmodel *model, int numnz, int *vind, double *vval, double obj, double lb, double ub, char vtype, const char *varname)> GRBaddvar
std::function< char *(void)> GRBplatform
std::function< int(GRBmodel *model, int len, int *ind)> GRBdelgenconstrs
std::function< void(int *majorP, int *minorP, int *technicalP)> GRBversion
std::function< int(GRBenv *env, const char *paramname, const char *value)> GRBsetparam
std::function< int(GRBmodel *model, const char *attrname, int newvalue)> GRBsetintattr
std::function< int(GRBenv *env, const char *paramname, char *valueP)> GRBgetstrparam
std::function< int(void *cbdata, int lazylen, const int *lazyind, const double *lazyval, char lazysense, double lazyrhs)> GRBcblazy
std::function< int(GRBmodel *model, const char *attrname, int first, int len, int *values)> GRBgetintattrarray
std::function< int(GRBmodel *model, int numconstrs, int numnz, int *cbeg, int *cind, double *cval, char *sense, double *rhs, char **constrnames)> GRBaddconstrs
std::function< int(GRBenv *env, const char *paramname, int value)> GRBsetintparam
std::function< int(GRBmodel *model, const char *name, int resvar, int argvar)> GRBaddgenconstrAbs
std::function< int(void *cbdata, int where, int what, void *resultP)> GRBcbget
std::function< int(GRBmodel *model, int index, int priority, double weight, double abstol, double reltol, const char *name, double constant, int lnz, int *lind, double *lval)> GRBsetobjectiven
std::function< int(GRBmodel *model, const char *attrname, int first, int len, char *values)> GRBgetcharattrarray
std::function< int(GRBenv **envP, const char *logfilename)> GRBloadenv
std::function< int(GRBmodel *model, const char *attrname, int element, int *valueP)> GRBgetintattrelement
std::function< int(GRBenv *dest, GRBenv *src)> GRBcopyparams
std::function< int(GRBmodel *model, const char *attrname, int first, int len, double *newvalues)> GRBsetdblattrarray
std::function< int(GRBmodel *model)> GRBfreemodel
std::function< void(GRBmodel *model)> GRBterminate
std::function< int(GRBmodel *model, int numqnz, int *qrow, int *qcol, double *qval)> GRBaddqpterms
std::function< int(GRBenv *env, const char *paramname, double *valueP)> GRBgetdblparam
std::function< const char *(GRBenv *env)> GRBgeterrormsg
std::function< int(GRBmodel *model, int cnt, int *cind, int *vind, double *val)> GRBchgcoeffs
absl::StatusOr< GRBenv * > GetGurobiEnv()
std::function< GRBenv *(GRBmodel *model)> GRBgetenv
std::function< int(GRBmodel *model, int len, int *ind)> GRBdelconstrs
std::function< int(GRBmodel *model, const char *name, int resvar, int nvars, const int *vars, double constant)> GRBaddgenconstrMax
std::function< int(GRBenv *env, const char *paramname, const char *value)> GRBsetstrparam
std::function< int(GRBmodel *model, const char *attrname, int element, double newvalue)> GRBsetdblattrelement
std::function< int(GRBenv *env)> GRBresetparams
std::function< int(GRBmodel *model, const char *attrname, int first, int len, double *values)> GRBgetdblattrarray
std::function< int(GRBmodel *model, int len, int *ind)> GRBdelqconstrs
std::function< int(GRBmodel *model)> GRBupdatemodel
std::function< int(GRBmodel *model, const char *name, int resvar, int nvars, const int *vars)> GRBaddgenconstrAnd
std::function< int(GRBmodel *model)> GRBdelq
std::function< int(GRBmodel *model, int numnz, int *cind, double *cval, double lower, double upper, const char *constrname)> GRBaddrangeconstr
std::function< int(GRBmodel *model, const char *attrname, int element, char newvalue)> GRBsetcharattrelement
std::function< int(GRBmodel *model, const char *attrname, int element, int newvalue)> GRBsetintattrelement
std::function< int(GRBmodel *model, const char *attrname, const char *newvalue)> GRBsetstrattr
std::function< int(GRBmodel *model, const char *attrname, int element, double *valueP)> GRBgetdblattrelement
std::function< int(GRBmodel *model, const char *name, int resvar, int nvars, const int *vars)> GRBaddgenconstrOr
std::function< int(GRBmodel *model, int len, int *ind)> GRBdelsos
std::function< int(void *cbdata, const double *solution, double *objvalP)> GRBcbsolution
std::function< int(GRBmodel *model, const char *attrname)> GRBisattravailable
std::function< int(GRBmodel *model)> GRBoptimize
std::function< int(GRBmodel *model, const char *filename)> GRBwrite
std::function< int(GRBenv **, const char *, const char *, const char *, int, const char *)> GRBisqp
std::function< int(GRBmodel *model, int len, int *ind)> GRBdelvars
bool GurobiIsCorrectlyInstalled()
std::function< int(GRBmodel *model, const char *attrname, int len, int *ind, char *newvalues)> GRBsetcharattrlist
std::function< int(GRBmodel *model, const char *attrname, char **valueP)> GRBgetstrattr
std::function< int(GRBenv *env, GRBmodel **modelP, const char *Pname, int numvars, double *obj, double *lb, double *ub, char *vtype, char **varnames)> GRBnewmodel
absl::Status LoadGurobiDynamicLibrary(std::vector< std::string > potential_paths)
std::function< void(GRBenv *env)> GRBfreeenv
std::function< int(GRBmodel *model, const char *attrname, int len, int *ind, int *newvalues)> GRBsetintattrlist
std::function< int(GRBmodel *model, int numsos, int nummembers, int *types, int *beg, int *ind, double *weight)> GRBaddsos
std::function< int(void *cbdata, int cutlen, const int *cutind, const double *cutval, char cutsense, double cutrhs)> GRBcbcut
std::function< int(GRBmodel *model, const char *attrname, double newvalue)> GRBsetdblattr
std::function< int(GRBmodel *model, const char *attrname, int first, int len, int *newvalues)> GRBsetintattrarray
std::function< int(GRBmodel *model, int(GUROBI_STDCALL *cb)(CB_ARGS), void *usrdata)> GRBsetcallbackfunc
std::function< int(GRBmodel *model, int *numnzP, int *vbeg, int *vind, double *vval, int start, int len)> GRBgetvars
std::function< int(GRBmodel *model, int numvars, int numnz, int *vbeg, int *vind, double *vval, double *obj, double *lb, double *ub, char *vtype, char **varnames)> GRBaddvars
std::function< int(GRBmodel *model, const char *attrname, int first, int len, char *newvalues)> GRBsetcharattrarray
std::function< int(GRBmodel *model, const char *name, int binvar, int binval, int nvars, const int *vars, const double *vals, char sense, double rhs)> GRBaddgenconstrIndicator
std::function< int(GRBmodel *model, const char *attrname, int *valueP)> GRBgetintattr
std::function< int(GRBenv *env, const char *paramname, double value)> GRBsetdblparam