OR-Tools  8.1
gurobi_environment.cc File Reference

Go to the source code of this file.

Namespaces

 operations_research
 The vehicle routing library lets one model and solve generic vehicle routing problems ranging from the Traveling Salesman Problem to more complex problems such as the Capacitated Vehicle Routing Problem with Time Windows.
 

Functions

absl::Status LoadGurobiEnvironment (GRBenv **env)
 
void LoadGurobiFunctions ()
 
bool LoadSpecificGurobiLibrary (const std::string &full_library_path)
 
bool SearchForGurobiDynamicLibrary ()
 

Variables

std::function< int(GRBmodel *, int, int *, double *, double, double, const char *)> GRBaddrangeconstr = nullptr
 
std::function< int(GRBmodel *model, int numnz, int *vind, double *vval, double obj, double lb, double ub, char vtype, const char *varname)> GRBaddvar = nullptr
 
std::function< int(GRBmodel *, int, int, int *, int *, double *, double *, double *, double *, char *, char **)> GRBaddvars = nullptr
 
std::function< int(GRBmodel *model, int numchgs, int *cind, int *vind, double *val)> GRBchgcoeffs = nullptr
 
std::function< void(GRBenv *)> GRBfreeenv = nullptr
 
std::function< int(GRBmodel *)> GRBfreemodel = nullptr
 
std::function< int(GRBmodel *, const char *, int, char *)> GRBgetcharattrelement
 
std::function< int(GRBmodel *, const char *, double *)> GRBgetdblattr = nullptr
 
std::function< int(GRBmodel *, const char *, int, int, double *)> GRBgetdblattrarray = nullptr
 
std::function< int(GRBmodel *, const char *, int, double *)> GRBgetdblattrelement
 
std::function< int(GRBenv *, const char *, double *)> GRBgetdblparam = nullptr
 
std::function< GRBenv *(GRBmodel *)> GRBgetenv = nullptr
 
std::function< char *(GRBenv *)> GRBgeterrormsg = nullptr
 
std::function< int(GRBmodel *, const char *, int *)> GRBgetintattr = nullptr
 
std::function< int(GRBmodel *, const char *, int, int *)> GRBgetintattrelement
 
std::function< int(GRBenv **, const char *)> GRBloadenv = nullptr
 
std::function< int(GRBenv *, GRBmodel **, const char *, int numvars, double *, double *, double *, char *, char **)> GRBnewmodel = nullptr
 
std::function< int(GRBmodel *)> GRBoptimize = nullptr
 
std::function< int(GRBenv *, const char *)> GRBreadparams = nullptr
 
std::function< int(GRBenv *)> GRBresetparams = nullptr
 
std::function< int(GRBmodel *, const char *, int, char)> GRBsetcharattrelement
 
std::function< int(GRBmodel *, const char *, double)> GRBsetdblattr = nullptr
 
std::function< int(GRBmodel *, const char *, int, double)> GRBsetdblattrelement
 
std::function< int(GRBenv *, const char *, double)> GRBsetdblparam = nullptr
 
std::function< int(GRBmodel *, const char *, int)> GRBsetintattr = nullptr
 
std::function< int(GRBenv *, const char *, int)> GRBsetintparam = nullptr
 
std::function< void(GRBmodel *)> GRBterminate = nullptr
 
std::function< int(GRBmodel *)> GRBupdatemodel = nullptr
 
std::function< void(int *, int *, int *)> GRBversion = nullptr
 
std::function< int(GRBmodel *, const char *)> GRBwrite = nullptr
 
std::function< int(void *cbdata, int where, int what, void *resultP)> GRBcbget
 
std::function< int(void *cbdata, int cutlen, const int *cutind, const double *cutval, char cutsense, double cutrhs)> GRBcbcut = nullptr
 
std::function< int(void *cbdata, int lazylen, const int *lazyind, const double *lazyval, char lazysense, double lazyrhs)> GRBcblazy = nullptr
 
std::function< int(void *cbdata, const double *solution, double *objvalP)> GRBcbsolution = nullptr
 
std::function< int(GRBmodel *model, int numnz, int *cind, double *cval, char sense, double rhs, const char *constrname)> GRBaddconstr = nullptr
 
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 = nullptr
 
std::function< int(GRBmodel *model, const char *attrname, int element, int newvalue)> GRBsetintattrelement = nullptr
 
std::function< int(GRBmodel *model, int(STDCALL *cb)(CB_ARGS), void *usrdata)> GRBsetcallbackfunc = nullptr
 
std::function< int(GRBenv *env, const char *paramname, const char *value)> GRBsetparam = nullptr
 
std::function< int(GRBmodel *model, int numsos, int nummembers, int *types, int *beg, int *ind, double *weight)> GRBaddsos = nullptr
 
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 = nullptr
 
std::function< int(GRBmodel *model, const char *name, int resvar, int nvars, const int *vars, double constant)> GRBaddgenconstrMax = nullptr
 
std::function< int(GRBmodel *model, const char *name, int resvar, int nvars, const int *vars, double constant)> GRBaddgenconstrMin = nullptr
 
std::function< int(GRBmodel *model, const char *name, int resvar, int argvar)> GRBaddgenconstrAbs = nullptr
 
std::function< int(GRBmodel *model, const char *name, int resvar, int nvars, const int *vars)> GRBaddgenconstrAnd = nullptr
 
std::function< int(GRBmodel *model, const char *name, int resvar, int nvars, const int *vars)> GRBaddgenconstrOr = nullptr
 
std::function< int(GRBmodel *model, int numqnz, int *qrow, int *qcol, double *qval)> GRBaddqpterms = nullptr
 
std::unique_ptr< DynamicLibrarygurobi_dynamic_library
 
std::string gurobi_library_path