19#include "antares-xpansion/xpansion_interfaces/ILogger.h"
20#include "dynamic_library.h"
22typedef struct xo_prob_struct* XPRSprob;
36 explicit XpressLoader(std::shared_ptr<ILoggerXpansion> logger =
37 std::make_shared<EmptyLogger>());
41 bool initXpressEnv(
bool verbose =
false,
int xpress_oem_license_key = 0);
56 bool LoadXpressDynamicLibrary(std::string &xpresspath);
57 void printXpressBanner();
58 std::shared_ptr<ILoggerXpansion> logger_;
59 std::vector<std::string> XpressDynamicLibraryPotentialPaths();
60 std::string GetXpressVarFromEnvironmentVariables(
const char* XPRESS_var,
63 int loadLicence(
const std::string& lib_path,
bool verbose);
71#define XPRSint64 __int64
72#elif defined(__LP64__) || defined(_LP64) || defined(__ILP64__) || defined(_ILP64)
75#define XPRSint64 long long
79#define XPRS_CC __stdcall
83#define XPRS_PLUSINFINITY 1.0e+20
84#define XPRS_MINUSINFINITY -1.0e+20
85#define XPRS_MAXBANNERLENGTH 512
87#define XPRS_MPSRHSNAME 6001
88#define XPRS_MPSOBJNAME 6002
89#define XPRS_MPSRANGENAME 6003
90#define XPRS_MPSBOUNDNAME 6004
91#define XPRS_OUTPUTMASK 6005
92#define XPRS_TUNERMETHODFILE 6017
93#define XPRS_TUNEROUTPUTPATH 6018
94#define XPRS_TUNERSESSIONNAME 6019
95#define XPRS_COMPUTEEXECSERVICE 6022
96#define XPRS_MAXCUTTIME 8149
97#define XPRS_MAXSTALLTIME 8443
98#define XPRS_TUNERMAXTIME 8364
99#define XPRS_MATRIXTOL 7001
100#define XPRS_PIVOTTOL 7002
101#define XPRS_FEASTOL 7003
102#define XPRS_OUTPUTTOL 7004
103#define XPRS_SOSREFTOL 7005
104#define XPRS_OPTIMALITYTOL 7006
105#define XPRS_ETATOL 7007
106#define XPRS_RELPIVOTTOL 7008
107#define XPRS_MIPTOL 7009
108#define XPRS_MIPTOLTARGET 7010
109#define XPRS_BARPERTURB 7011
110#define XPRS_MIPADDCUTOFF 7012
111#define XPRS_MIPABSCUTOFF 7013
112#define XPRS_MIPRELCUTOFF 7014
113#define XPRS_PSEUDOCOST 7015
114#define XPRS_PENALTY 7016
115#define XPRS_BIGM 7018
116#define XPRS_MIPABSSTOP 7019
117#define XPRS_MIPRELSTOP 7020
118#define XPRS_CROSSOVERACCURACYTOL 7023
119#define XPRS_PRIMALPERTURB 7024
120#define XPRS_DUALPERTURB 7025
121#define XPRS_BAROBJSCALE 7026
122#define XPRS_BARRHSSCALE 7027
123#define XPRS_CHOLESKYTOL 7032
124#define XPRS_BARGAPSTOP 7033
125#define XPRS_BARDUALSTOP 7034
126#define XPRS_BARPRIMALSTOP 7035
127#define XPRS_BARSTEPSTOP 7036
128#define XPRS_ELIMTOL 7042
129#define XPRS_MARKOWITZTOL 7047
130#define XPRS_MIPABSGAPNOTIFY 7064
131#define XPRS_MIPRELGAPNOTIFY 7065
132#define XPRS_BARLARGEBOUND 7067
133#define XPRS_PPFACTOR 7069
134#define XPRS_REPAIRINDEFINITEQMAX 7071
135#define XPRS_BARGAPTARGET 7073
136#define XPRS_DUMMYCONTROL 7075
137#define XPRS_BARSTARTWEIGHT 7076
138#define XPRS_BARFREESCALE 7077
139#define XPRS_SBEFFORT 7086
140#define XPRS_HEURDIVERANDOMIZE 7089
141#define XPRS_HEURSEARCHEFFORT 7090
142#define XPRS_CUTFACTOR 7091
143#define XPRS_EIGENVALUETOL 7097
144#define XPRS_INDLINBIGM 7099
145#define XPRS_TREEMEMORYSAVINGTARGET 7100
146#define XPRS_INDPRELINBIGM 7102
147#define XPRS_RELAXTREEMEMORYLIMIT 7105
148#define XPRS_MIPABSGAPNOTIFYOBJ 7108
149#define XPRS_MIPABSGAPNOTIFYBOUND 7109
150#define XPRS_PRESOLVEMAXGROW 7110
151#define XPRS_HEURSEARCHTARGETSIZE 7112
152#define XPRS_CROSSOVERRELPIVOTTOL 7113
153#define XPRS_CROSSOVERRELPIVOTTOLSAFE 7114
154#define XPRS_DETLOGFREQ 7116
155#define XPRS_MAXIMPLIEDBOUND 7120
156#define XPRS_FEASTOLTARGET 7121
157#define XPRS_OPTIMALITYTOLTARGET 7122
158#define XPRS_PRECOMPONENTSEFFORT 7124
159#define XPRS_LPLOGDELAY 7127
160#define XPRS_HEURDIVEITERLIMIT 7128
161#define XPRS_BARKERNEL 7130
162#define XPRS_FEASTOLPERTURB 7132
163#define XPRS_CROSSOVERFEASWEIGHT 7133
164#define XPRS_LUPIVOTTOL 7139
165#define XPRS_MIPRESTARTGAPTHRESHOLD 7140
166#define XPRS_NODEPROBINGEFFORT 7141
167#define XPRS_INPUTTOL 7143
168#define XPRS_MIPRESTARTFACTOR 7145
169#define XPRS_BAROBJPERTURB 7146
170#define XPRS_CPIALPHA 7149
171#define XPRS_GLOBALBOUNDINGBOX 7154
172#define XPRS_TIMELIMIT 7158
173#define XPRS_SOLTIMELIMIT 7159
174#define XPRS_REPAIRINFEASTIMELIMIT 7160
175#define XPRS_EXTRAROWS 8004
176#define XPRS_EXTRACOLS 8005
177#define XPRS_LPITERLIMIT 8007
178#define XPRS_LPLOG 8009
179#define XPRS_SCALING 8010
180#define XPRS_PRESOLVE 8011
181#define XPRS_CRASH 8012
182#define XPRS_PRICINGALG 8013
183#define XPRS_INVERTFREQ 8014
184#define XPRS_INVERTMIN 8015
185#define XPRS_MAXNODE 8018
186#define XPRS_MAXTIME 8020
187#define XPRS_MAXMIPSOL 8021
188#define XPRS_SIFTPASSES 8022
189#define XPRS_DEFAULTALG 8023
190#define XPRS_VARSELECTION 8025
191#define XPRS_NODESELECTION 8026
192#define XPRS_BACKTRACK 8027
193#define XPRS_MIPLOG 8028
194#define XPRS_KEEPNROWS 8030
195#define XPRS_MPSECHO 8032
196#define XPRS_MAXPAGELINES 8034
197#define XPRS_OUTPUTLOG 8035
198#define XPRS_BARSOLUTION 8038
199#define XPRS_CACHESIZE 8043
200#define XPRS_CROSSOVER 8044
201#define XPRS_BARITERLIMIT 8045
202#define XPRS_CHOLESKYALG 8046
203#define XPRS_BAROUTPUT 8047
204#define XPRS_EXTRAMIPENTS 8051
205#define XPRS_REFACTOR 8052
206#define XPRS_BARTHREADS 8053
207#define XPRS_KEEPBASIS 8054
208#define XPRS_CROSSOVEROPS 8060
209#define XPRS_VERSION 8061
210#define XPRS_CROSSOVERTHREADS 8065
211#define XPRS_BIGMMETHOD 8068
212#define XPRS_MPSNAMELENGTH 8071
213#define XPRS_ELIMFILLIN 8073
214#define XPRS_PRESOLVEOPS 8077
215#define XPRS_MIPPRESOLVE 8078
216#define XPRS_MIPTHREADS 8079
217#define XPRS_BARORDER 8080
218#define XPRS_BREADTHFIRST 8082
219#define XPRS_AUTOPERTURB 8084
220#define XPRS_DENSECOLLIMIT 8086
221#define XPRS_CALLBACKFROMMASTERTHREAD 8090
222#define XPRS_MAXMCOEFFBUFFERELEMS 8091
223#define XPRS_REFINEOPS 8093
224#define XPRS_LPREFINEITERLIMIT 8094
225#define XPRS_MIPREFINEITERLIMIT 8095
226#define XPRS_DUALIZEOPS 8097
227#define XPRS_CROSSOVERITERLIMIT 8104
228#define XPRS_PREBASISRED 8106
229#define XPRS_PRESORT 8107
230#define XPRS_PREPERMUTE 8108
231#define XPRS_PREPERMUTESEED 8109
232#define XPRS_MAXMEMORYSOFT 8112
233#define XPRS_CUTFREQ 8116
234#define XPRS_SYMSELECT 8117
235#define XPRS_SYMMETRY 8118
236#define XPRS_MAXMEMORYHARD 8119
237#define XPRS_MIQCPALG 8125
238#define XPRS_QCCUTS 8126
239#define XPRS_QCROOTALG 8127
240#define XPRS_PRECONVERTSEPARABLE 8128
241#define XPRS_ALGAFTERNETWORK 8129
242#define XPRS_TRACE 8130
243#define XPRS_MAXIIS 8131
244#define XPRS_CPUTIME 8133
245#define XPRS_COVERCUTS 8134
246#define XPRS_GOMCUTS 8135
247#define XPRS_LPFOLDING 8136
248#define XPRS_MPSFORMAT 8137
249#define XPRS_CUTSTRATEGY 8138
250#define XPRS_CUTDEPTH 8139
251#define XPRS_TREECOVERCUTS 8140
252#define XPRS_TREEGOMCUTS 8141
253#define XPRS_CUTSELECT 8142
254#define XPRS_TREECUTSELECT 8143
255#define XPRS_DUALIZE 8144
256#define XPRS_DUALGRADIENT 8145
257#define XPRS_SBITERLIMIT 8146
258#define XPRS_SBBEST 8147
259#define XPRS_BARINDEFLIMIT 8153
260#define XPRS_HEURFREQ 8155
261#define XPRS_HEURDEPTH 8156
262#define XPRS_HEURMAXSOL 8157
263#define XPRS_HEURNODES 8158
264#define XPRS_LNPBEST 8160
265#define XPRS_LNPITERLIMIT 8161
266#define XPRS_BRANCHCHOICE 8162
267#define XPRS_BARREGULARIZE 8163
268#define XPRS_SBSELECT 8164
269#define XPRS_LOCALCHOICE 8170
270#define XPRS_LOCALBACKTRACK 8171
271#define XPRS_DUALSTRATEGY 8174
272#define XPRS_L1CACHE 8175
273#define XPRS_HEURDIVESTRATEGY 8177
274#define XPRS_HEURSELECT 8178
275#define XPRS_BARSTART 8180
276#define XPRS_PRESOLVEPASSES 8183
277#define XPRS_BARNUMSTABILITY 8186
278#define XPRS_BARORDERTHREADS 8187
279#define XPRS_EXTRASETS 8190
280#define XPRS_FEASIBILITYPUMP 8193
281#define XPRS_PRECOEFELIM 8194
282#define XPRS_PREDOMCOL 8195
283#define XPRS_HEURSEARCHFREQ 8196
284#define XPRS_HEURDIVESPEEDUP 8197
285#define XPRS_SBESTIMATE 8198
286#define XPRS_BARCORES 8202
287#define XPRS_MAXCHECKSONMAXTIME 8203
288#define XPRS_MAXCHECKSONMAXCUTTIME 8204
289#define XPRS_HISTORYCOSTS 8206
290#define XPRS_ALGAFTERCROSSOVER 8208
291#define XPRS_MUTEXCALLBACKS 8210
292#define XPRS_BARCRASH 8211
293#define XPRS_HEURDIVESOFTROUNDING 8215
294#define XPRS_HEURSEARCHROOTSELECT 8216
295#define XPRS_HEURSEARCHTREESELECT 8217
296#define XPRS_MPS18COMPATIBLE 8223
297#define XPRS_ROOTPRESOLVE 8224
298#define XPRS_CROSSOVERDRP 8227
299#define XPRS_FORCEOUTPUT 8229
300#define XPRS_PRIMALOPS 8231
301#define XPRS_DETERMINISTIC 8232
302#define XPRS_PREPROBING 8238
303#define XPRS_TREEMEMORYLIMIT 8242
304#define XPRS_TREECOMPRESSION 8243
305#define XPRS_TREEDIAGNOSTICS 8244
306#define XPRS_MAXTREEFILESIZE 8245
307#define XPRS_PRECLIQUESTRATEGY 8247
308#define XPRS_REPAIRINFEASMAXTIME 8250
309#define XPRS_IFCHECKCONVEXITY 8251
310#define XPRS_PRIMALUNSHIFT 8252
311#define XPRS_REPAIRINDEFINITEQ 8254
312#define XPRS_MIPRAMPUP 8255
313#define XPRS_MAXLOCALBACKTRACK 8257
314#define XPRS_USERSOLHEURISTIC 8258
315#define XPRS_FORCEPARALLELDUAL 8265
316#define XPRS_BACKTRACKTIE 8266
317#define XPRS_BRANCHDISJ 8267
318#define XPRS_MIPFRACREDUCE 8270
319#define XPRS_CONCURRENTTHREADS 8274
320#define XPRS_MAXSCALEFACTOR 8275
321#define XPRS_HEURTHREADS 8276
322#define XPRS_THREADS 8278
323#define XPRS_HEURBEFORELP 8280
324#define XPRS_PREDOMROW 8281
325#define XPRS_BRANCHSTRUCTURAL 8282
326#define XPRS_QUADRATICUNSHIFT 8284
327#define XPRS_BARPRESOLVEOPS 8286
328#define XPRS_QSIMPLEXOPS 8288
329#define XPRS_MIPRESTART 8290
330#define XPRS_CONFLICTCUTS 8292
331#define XPRS_PREPROTECTDUAL 8293
332#define XPRS_CORESPERCPU 8296
333#define XPRS_RESOURCESTRATEGY 8297
334#define XPRS_CLAMPING 8301
335#define XPRS_SLEEPONTHREADWAIT 8302
336#define XPRS_PREDUPROW 8307
337#define XPRS_CPUPLATFORM 8312
338#define XPRS_BARALG 8315
339#define XPRS_SIFTING 8319
340#define XPRS_LPLOGSTYLE 8326
341#define XPRS_RANDOMSEED 8328
342#define XPRS_TREEQCCUTS 8331
343#define XPRS_PRELINDEP 8333
344#define XPRS_DUALTHREADS 8334
345#define XPRS_PREOBJCUTDETECT 8336
346#define XPRS_PREBNDREDQUAD 8337
347#define XPRS_PREBNDREDCONE 8338
348#define XPRS_PRECOMPONENTS 8339
349#define XPRS_MAXMIPTASKS 8347
350#define XPRS_MIPTERMINATIONMETHOD 8348
351#define XPRS_PRECONEDECOMP 8349
352#define XPRS_HEURFORCESPECIALOBJ 8350
353#define XPRS_HEURSEARCHROOTCUTFREQ 8351
354#define XPRS_PREELIMQUAD 8353
355#define XPRS_PREIMPLICATIONS 8356
356#define XPRS_TUNERMODE 8359
357#define XPRS_TUNERMETHOD 8360
358#define XPRS_TUNERTARGET 8362
359#define XPRS_TUNERTHREADS 8363
360#define XPRS_TUNERHISTORY 8365
361#define XPRS_TUNERPERMUTE 8366
362#define XPRS_TUNERVERBOSE 8370
363#define XPRS_TUNEROUTPUT 8372
364#define XPRS_PREANALYTICCENTER 8374
365#define XPRS_NETCUTS 8382
366#define XPRS_LPFLAGS 8385
367#define XPRS_MIPKAPPAFREQ 8386
368#define XPRS_OBJSCALEFACTOR 8387
369#define XPRS_TREEFILELOGINTERVAL 8389
370#define XPRS_IGNORECONTAINERCPULIMIT 8390
371#define XPRS_IGNORECONTAINERMEMORYLIMIT 8391
372#define XPRS_MIPDUALREDUCTIONS 8392
373#define XPRS_GENCONSDUALREDUCTIONS 8395
374#define XPRS_PWLDUALREDUCTIONS 8396
375#define XPRS_BARFAILITERLIMIT 8398
376#define XPRS_AUTOSCALING 8406
377#define XPRS_GENCONSABSTRANSFORMATION 8408
378#define XPRS_COMPUTEJOBPRIORITY 8409
379#define XPRS_PREFOLDING 8410
380#define XPRS_NETSTALLLIMIT 8412
381#define XPRS_SERIALIZEPREINTSOL 8413
382#define XPRS_NUMERICALEMPHASIS 8416
383#define XPRS_PWLNONCONVEXTRANSFORMATION 8420
384#define XPRS_MIPCOMPONENTS 8421
385#define XPRS_MIPCONCURRENTNODES 8422
386#define XPRS_MIPCONCURRENTSOLVES 8423
387#define XPRS_OUTPUTCONTROLS 8424
388#define XPRS_SIFTSWITCH 8425
389#define XPRS_HEUREMPHASIS 8427
390#define XPRS_COMPUTEMATX 8428
391#define XPRS_COMPUTEMATX_IIS 8429
392#define XPRS_COMPUTEMATX_IISMAXTIME 8430
393#define XPRS_BARREFITER 8431
394#define XPRS_COMPUTELOG 8434
395#define XPRS_SIFTPRESOLVEOPS 8435
396#define XPRS_CHECKINPUTDATA 8436
397#define XPRS_ESCAPENAMES 8440
398#define XPRS_IOTIMEOUT 8442
399#define XPRS_AUTOCUTTING 8446
400#define XPRS_CALLBACKCHECKTIMEDELAY 8451
401#define XPRS_MULTIOBJOPS 8457
402#define XPRS_MULTIOBJLOG 8458
403#define XPRS_GLOBALSPATIALBRANCHIFPREFERORIG 8465
404#define XPRS_PRECONFIGURATION 8470
405#define XPRS_FEASIBILITYJUMP 8471
406#define XPRS_EXTRAELEMS 8006
407#define XPRS_EXTRASETELEMS 8191
408#define XPRS_LPOBJVAL 2001
409#define XPRS_MIPOBJVAL 2003
410#define XPRS_BESTBOUND 2004
411#define XPRS_OBJRHS 2005
412#define XPRS_OBJSENSE 2008
413#define XPRS_ROWS 1001
414#define XPRS_SIMPLEXITER 1009
415#define XPRS_LPSTATUS 1010
416#define XPRS_MIPSTATUS 1011
417#define XPRS_NODES 1013
418#define XPRS_COLS 1018
419#define XPRS_LP_OPTIMAL 1
420#define XPRS_LP_INFEAS 2
421#define XPRS_LP_UNBOUNDED 5
422#define XPRS_MIP_SOLUTION 4
423#define XPRS_MIP_INFEAS 5
424#define XPRS_MIP_OPTIMAL 6
425#define XPRS_MIP_UNBOUNDED 7
426#define XPRS_OBJ_MINIMIZE 1
427#define XPRS_OBJ_MAXIMIZE -1
429#define XPRS_ELEMS 1006
430#define XPRS_MIPENTS 1032
431#define XPRS_NAMELENGTH 1028
432#define XPRS_OUTPUTLOG_FULL_OUTPUT 1
433#define XPRS_ERRORCODE 1023
434#define XPRS_OUTPUTLOG_NO_OUTPUT 0
436extern std::function<int(
const char* path)> XPRSinit;
437extern std::function<int(XPRSprob* p_prob)> XPRScreateprob;
438extern std::function<int(XPRSprob dest, XPRSprob src,
const char* name)> XPRScopyprob;
439extern std::function<int(XPRSprob prob,
const char* filename,
const char* flags)> XPRSwritebasis;
440extern std::function<int(XPRSprob prob,
const char* filename,
const char* flags)> XPRSreadprob;
441extern std::function<int(XPRSprob prob,
int nr,
int nc,
const int mrow[],
const int mcol[])> XPRSloadsecurevecs;
442extern std::function<int(XPRSprob prob,
const char* msg)> XPRSgetlasterror;
443extern std::function<int(XPRSprob prob,
const char* filename)> XPRSsaveas;
444extern std::function<int(XPRSprob prob,
const char* filename,
const char* flags)> XPRSrestore;
445extern std::function<int(XPRSprob prob,
const char* filename,
const char* flags)> XPRSreadbasis;
446extern std::function<int(XPRSprob prob,
int start[],
int colind[],
double colcoef[],
int maxcoefs,
int* p_ncoefs,
int first,
int last)> XPRSgetrows;
447extern std::function<int(XPRSprob prob,
int type,
const char* name,
int* p_index)> XPRSgetindex;
448extern std::function<int(XPRSprob prob,
int type,
char names[],
int first,
int last)> XPRSgetnames;
449extern std::function<int(XPRSprob prob,
int type,
const char names[],
int first,
int last)> XPRSaddnames;
450extern std::function<int(XPRSprob prob,
const char* flags)> XPRSlpoptimize;
451extern std::function<int(XPRSprob prob,
const char* flags)> XPRSmipoptimize;
452extern std::function<int(
void)> XPRSfree;
453extern std::function<int(XPRSprob prob,
const char* probname,
int ncols,
int nrows,
const char rowtype[],
const double rhs[],
const double rng[],
const double objcoef[],
const int start[],
const int collen[],
const int rowind[],
const double rowcoef[],
const double lb[],
const double ub[])> XPRSloadlp;
454extern std::function<int(XPRSprob prob)> XPRSdestroyprob;
455extern std::function<int(XPRSprob prob,
const char* filename,
const char* flags)> XPRSwriteprob;
456extern std::function<int(XPRSprob prob,
int control,
int* p_value)> XPRSgetintcontrol;
457extern std::function<int(XPRSprob prob,
int attrib,
int* p_value)> XPRSgetintattrib;
458extern std::function<int(XPRSprob prob,
double objcoef[],
int first,
int last)> XPRSgetobj;
459extern std::function<int(XPRSprob prob,
char rowtype[],
int first,
int last)> XPRSgetrowtype;
460extern std::function<int(XPRSprob prob,
double rhs[],
int first,
int last)> XPRSgetrhs;
461extern std::function<int(XPRSprob prob,
double rng[],
int first,
int last)> XPRSgetrhsrange;
462extern std::function<int(XPRSprob prob,
char coltype[],
int first,
int last)> XPRSgetcoltype;
463extern std::function<int(XPRSprob prob,
double lb[],
int first,
int last)> XPRSgetlb;
464extern std::function<int(XPRSprob prob,
double ub[],
int first,
int last)> XPRSgetub;
465extern std::function<int(XPRSprob prob,
int nrows,
const int rowind[])> XPRSdelrows;
466extern std::function<int(XPRSprob prob,
int nrows,
int ncoefs,
const char rowtype[],
const double rhs[],
const double rng[],
const int start[],
const int colind[],
const double rowcoef[])> XPRSaddrows;
467extern std::function<int(XPRSprob prob,
int ncols,
int ncoefs,
const double objcoef[],
const int start[],
const int rowind[],
const double rowcoef[],
const double lb[],
const double ub[])> XPRSaddcols;
468extern std::function<int(XPRSprob prob,
int ncols,
const int colind[],
const double objcoef[])> XPRSchgobj;
469extern std::function<int(XPRSprob prob,
int objsense)> XPRSchgobjsense;
470extern std::function<int(XPRSprob prob,
int nbounds,
const int colind[],
const char bndtype[],
const double bndval[])> XPRSchgbounds;
471extern std::function<int(XPRSprob prob,
int ncols,
const int colind[],
const char coltype[])> XPRSchgcoltype;
472extern std::function<int(XPRSprob prob,
int nrows,
const int rowind[],
const double rhs[])> XPRSchgrhs;
473extern std::function<int(XPRSprob prob,
int row,
int col,
double coef)> XPRSchgcoef;
474extern std::function<int(XPRSprob prob,
int rowstat[],
int colstat[])> XPRSgetbasis;
475extern std::function<int(XPRSprob prob,
int attrib,
double* p_value)> XPRSgetdblattrib;
476extern std::function<int(XPRSprob prob,
double x[],
double slack[],
double duals[],
double djs[])> XPRSgetlpsol;
477extern std::function<int(XPRSprob prob,
double x[],
double slack[])> XPRSgetmipsol;
478extern std::function<int(XPRSprob prob,
void (XPRS_CC *f_message)(XPRSprob cbprob,
void* cbdata,
const char* msg,
int msglen,
int msgtype),
void* p)> XPRSsetcbmessage;
479extern std::function<int(XPRSprob prob,
int control,
int value)> XPRSsetintcontrol;
480extern std::function<int(XPRSprob prob,
int control,
double value)> XPRSsetdblcontrol;
481extern std::function<int(
char* banner)> XPRSgetbanner;
483extern std::function<int(
char* buffer,
int maxbytes)> XPRSgetlicerrmsg;
484extern std::function<int(
int* p_i,
char* p_c)> XPRSlicense;
485extern std::function<int(
char* version)> XPRSgetversion;
This class is the entry point to load xpress in runtime.
Definition environment.h:31
bool initXpressEnv(bool verbose=false, int xpress_oem_license_key=0)
intialiaze xpress env : load libs and check the licence
Definition environment.cc:411
bool XpressIsCorrectlyInstalled(bool verbose=false)
return true is Xpress is correctly installed (libs and licence found)
Definition environment.cc:519
XpressLoader(std::shared_ptr< ILoggerXpansion > logger=std::make_shared< EmptyLogger >())
Definition environment.cc:153
Definition dynamic_library.h:30