Loading...
Searching...
No Matches
gamsoptions.h
1/*
2 *
3 * GAMS - General Algebraic Modeling System C++ API
4 *
5 * Copyright (c) 2017-2023 GAMS Development Corp. <support@gams.com>
6 * Copyright (c) 2017-2023 GAMS Software GmbH <support@gams.com>
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in all
16 * copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * SOFTWARE.
25 *
26 * This file was generated.
27 */
28
29#ifndef GAMSOPTIONS_H
30#define GAMSOPTIONS_H
31#include "gamslib_global.h"
32#include <vector>
33#include <map>
34#include <string>
35#include "gamsworkspace.h"
36
37namespace gams {
38
39class GAMSOptionsImpl;
40
54class LIBSPEC GAMSOptions
55{
56 friend class GAMSModelInstanceImpl;
57 friend class GAMSJobImpl;
58 friend class GAMSWorkspaceImpl;
59
60public:
62 struct EAction
63 {
66 {
67 RestartAfterSolve = 0,
68 CompileOnly = 1,
69 ExecuteOnly = 2,
70 CompileAndExecute = 3,
71 GlueCodeGeneration = 4,
72 TraceReport = 5
73 };
74 };
77 {
80 {
81 Reset = 0,
82 Append = 1
83 };
84 };
87 {
90 {
91 Reset = 0,
92 Append = 1
93 };
94 };
97 {
100 {
101 Off = 0,
102 On = 1
103 };
104 };
107 {
110 {
111 Off = 0,
112 On = 1
113 };
114 };
116 struct ECase
117 {
120 {
121 MixedCase = 0,
122 UpperCase = 1
123 };
124 };
126 struct ECharSet
127 {
130 {
131 LimitedGAMSCharSet = 0,
132 AnyChar = 1
133 };
134 };
137 {
140 {
141 Off = 0,
142 On = 1
143 };
144 };
146 struct EDFormat
147 {
150 {
151 Slash = 0,
152 Dot = 1,
153 Dash = 2
154 };
155 };
157 struct EDigit
158 {
161 {
162 OffDigit = 0,
163 OnDigit = 1
164 };
165 };
167 struct EDumpOpt
168 {
171 {
172 No = 0,
173 RefDataOriginalSetElementNames = 1,
174 RefDataNewSetElementNames = 2,
175 RefDataNewSetElementNamesDropSymbolText = 3,
176 RefSymbol = 4,
177 Deprecated_10 = 10,
178 InputFileWOComments = 11,
179 Deprecated_12 = 12,
180 Deprecated_19 = 19,
181 Deprecated_20 = 20,
182 InputFileWithComments = 21
183 };
184 };
187 {
190 {
191 No = 0,
192 AcceptedParameters = 1,
193 FileOperationsAcceptedParameters = 2
194 };
195 };
198 {
201 {
202 OffECImplicitLoad = 0,
203 OnECImplicitLoad = 1
204 };
205 };
207 struct EEmpty
208 {
211 {
212 OffEmpty = 0,
213 OnEmpty = 1
214 };
215 };
217 struct EErrMsg
218 {
221 {
222 EndOfCompilerListing = 0,
223 FollowingError = 1,
224 Suppress = 2
225 };
226 };
229 {
232 {
233 EverythingAllowed = 0,
234 InteractiveShellsProhibited = 1,
235 CallAndExecuteProhibited = 2,
236 EchoAndPutOnlyToWorkdir = 3,
237 EchoAndPutProhibited = 4
238 };
239 };
241 struct EFDOpt
242 {
245 {
246 GHAnalyticHNumericGradScale = 0,
247 GHAnalyticHNumericFuncScale = 1,
248 GAnalyticFHNumericGradScale = 2,
249 GAnalyticFHNumericFuncScale = 3,
250 FGHNumericScale = 4,
251 GHAnalyticHNumericGradNoScale = 10,
252 GHAnalyticHNumericFuncNoScale = 11,
253 GAnalyticFHNumericGradNoScale = 12,
254 GAnalyticFHNumericFuncNoScale = 13,
255 FGHNumericNoScale = 14
256 };
257 };
260 {
263 {
264 DefaultCase = 0,
265 UpperCase = 1,
266 LowerCase = 2,
267 UpperCaseFileOnly = 3,
268 LowerCaseFileOnly = 4
269 };
270 };
273 {
276 {
277 OffFiltered = 0,
278 OnFiltered = 1
279 };
280 };
283 {
286 {
287 NoTranslation = 0,
288 TryTranslation = 1
289 };
290 };
293 {
296 {
297 Off = 0,
298 On = 1
299 };
300 };
303 {
306 {
307 DoNotCompressGDX = 0,
308 CompressGDX = 1
309 };
310 };
313 {
316 {
317 Version5 = 0,
318 Version6 = 1,
319 Version7 = 2
320 };
321 };
323 struct EgdxUels
324 {
327 {
328 squeezed = 0,
329 full = 1
330 };
331 };
334 {
337 {
338 FixedVarsNotTreatedAsConstants = 0,
339 FixedVarsTreatedAsConstants = 1
340 };
341 };
344 {
347 {
348 Off = 0,
349 On = 1
350 };
351 };
354 {
357 {
358 OffImplicitAssign = 0,
359 OnImplicitAssign = 1
360 };
361 };
364 {
367 {
368 NoInteraction = 0,
369 AllowInteraction = 1
370 };
371 };
374 {
377 {
378 INF = 0,
379 Pass100ToSolver = 1,
380 INFandLog = 2,
381 Pass100ToSolverAndError = 3
382 };
383 };
385 struct EKeep
386 {
389 {
390 DeleteProcDir = 0,
391 KeepProcDir = 1
392 };
393 };
395 struct EListing
396 {
399 {
400 OffListing = 0,
401 OnListing = 1
402 };
403 };
405 struct ELogLine
406 {
409 {
410 NoTracing = 0,
411 MinimumTracing = 1,
412 Automatic = 2
413 };
414 };
417 {
420 {
421 Off = 0,
422 On = 1
423 };
424 };
426 struct EMIIMode
427 {
430 {
431 Off = 0,
432 SingleMI = 1,
433 MultiMI = 2
434 };
435 };
438 {
441 {
442 AllowNewVarEqu = 0,
443 DoNotAllowNewVarEqu = 1
444 };
445 };
447 struct EOn115
448 {
451 {
452 NoMessages = 0,
453 IssueMessages = 1
454 };
455 };
458 {
461 {
462 NoPageContrWithPadding = 0,
463 FortranStyle = 1,
464 NoPageContrNoPadding = 2,
465 FormfeedCharNewPage = 3
466 };
467 };
470 {
473 {
474 Off = 0,
475 On = 1
476 };
477 };
480 {
483 {
484 Off = 0,
485 On = 1
486 };
487 };
490 {
493 {
494 Off = 0,
495 On = 1
496 };
497 };
499 struct EPutNR
500 {
503 {
504 ForE = 0,
505 Rounded = 1,
506 Scientific = 2,
507 RoundedFloatingDec = 3,
508 ForEFloatingDec = 4
509 };
510 };
513 {
516 {
517 Single = 0,
518 Multi = 1
519 };
520 };
523 {
526 {
527 ActualLineNumber = 0,
528 StatementStart = 1
529 };
530 };
532 struct EReplace
533 {
536 {
537 Merge = 0,
538 Replace = 1
539 };
540 };
543 {
546 {
547 NoPointFile = 0,
548 LastSolvePointFile = 1,
549 EverySolvePointFile = 2,
550 LastSolvePointFileScrDir = 3,
551 EverySolvePointFileScrDir = 4
552 };
553 };
556 {
559 {
560 InternalAccounting = 0,
561 RSS = 1,
562 VSS = 2
563 };
564 };
567 {
570 {
571 RemoveSolLstFollowingSolves = 0,
572 IncludeSolLstFollowingSolves = 1,
573 SuppressAllSolInfo = 2
574 };
575 };
578 {
581 {
582 ChainScript = 0,
583 CallScript = 1,
584 CallModule = 2,
585 AsyncGrid = 3,
586 AsyncSimulate = 4,
587 LoadLibrary = 5,
588 LoadLibraryAsync = 6,
589 LoadLibraryAsyncSimulate = 7
590 };
591 };
594 {
597 {
598 Merge = 0,
599 Replace = 1,
600 Clear = 2
601 };
602 };
604 struct EStepSum
605 {
608 {
609 NoStepSummmary = 0,
610 StepSummary = 1
611 };
612 };
615 {
618 {
619 FirstRecord = 0,
620 Error = 1
621 };
622 };
625 {
628 {
629 NoError = 0,
630 Error = 1,
631 NoErrorRemoveSymbol = 2
632 };
633 };
636 {
639 {
640 OffSuffixDLVars = 0,
641 OnSuffixDLVars = 1
642 };
643 };
646 {
649 {
650 OffSuffixAlgebraVars = 0,
651 OnSuffixAlgebraVars = 1
652 };
653 };
656 {
659 {
660 StandardCompilerListing = 0,
661 SuppressCompilerListing = 1
662 };
663 };
665 struct ESys10
666 {
669 {
670 Disable = 0,
671 Enable = 1
672 };
673 };
675 struct ESys11
676 {
679 {
680 AutomaticOptimization = 0,
681 NoOptimization = 1,
682 AlwaysOptimize = 2
683 };
684 };
686 struct ESysOut
687 {
690 {
691 SuppressAdditionalSolverOutput = 0,
692 IncludeAdditionalSolverOutput = 1
693 };
694 };
696 struct ETFormat
697 {
700 {
701 Colon = 0,
702 Dot = 1
703 };
704 };
707 {
710 {
711 SolverAndGAMSStepTraceWOHeaders = 0,
712 SolverAndGAMSStepTrace = 1,
713 SolverStepTraceOnly = 2,
714 TraceFileFormatGAMSPerformanceWorld = 3,
715 TraceFileFormatSupportingNLPEC = 4,
716 TraceFileWithAllAvailableTraceFields = 5
717 };
718 };
721 {
724 {
725 NoWarning = 0,
726 IssueWarning = 1
727 };
728 };
729
732
734 static const char* gamsBuild();
735
737 static const char* gamsVersion();
738
741 LogId logID();
742
744 void writeOptionFile(const std::string& optFileName);
745
747 void setAllModelTypes(const std::string& solver);
748
751
753 void addInputDir(const std::string value);
754
756 std::string getInputDir(const int index);
757
759 void setInputDir(const std::string value, const int index);
760
762 void removeInputDir(const int index);
763
765 void setDefine(const std::string &key, const std::string &value);
766
768 std::string getDefine(const std::string& key);
769
771 bool removeDefine(const std::string& key);
772
774 std::string gdx();
775
777 void setGdx(const std::string& value);
778
781
784
786 static EAction::EActionEnum eActionFromCode(const std::string &str);
787
790
793
796
799
802
805
808
811
813 double bratio();
814
816 void setBratio(const double value);
817
820
823
825 int lstCase();
826
828 void setLstCase(const int value);
829
831 int cErr();
832
834 void setCErr(const int value);
835
838
841
844
847
849 std::string decryptKey();
850
852 void setDecryptKey(const std::string& value);
853
856
859
862
865
867 static EDigit::EDigitEnum eDigitFromCode(const std::string &str);
868
871
874
876 int domLim();
877
879 void setDomLim(const int value);
880
883
886
888 std::string dumpOptGDX();
889
891 void setDumpOptGDX(const std::string& value);
892
895
898
900 std::string dumpParmsLogPrefix();
901
903 void setDumpParmsLogPrefix(const std::string& value);
904
907
910
913
916
919
922
925
927 static EEmpty::EEmptyEnum eEmptyFromCode(const std::string &str);
928
931
934
936 std::string encryptKey();
937
939 void setEncryptKey(const std::string& value);
940
942 std::string eolCom();
943
945 void setEolCom(const std::string& value);
946
949
952
954 int errorLog();
955
957 void setErrorLog(const int value);
958
960 double eTLim();
961
963 void setETLim(const double value);
964
967
970
972 std::string expand();
973
975 void setExpand(const std::string& value);
976
978 double fDDelta();
979
981 void setFDDelta(const double value);
982
985
988
990 std::string fErr();
991
993 void setFErr(const std::string& value);
994
997
1000
1002 std::string fileStem();
1003
1005 void setFileStem(const std::string& value);
1006
1008 std::string fileStemApFromEnv();
1009
1011 void setFileStemApFromEnv(const std::string& value);
1012
1015
1018
1020 static EFiltered::EFilteredEnum eFilteredFromCode(const std::string &str);
1021
1024
1027
1030
1032 void setForceOptFile(const int value);
1033
1036
1039
1041 int forLim();
1042
1044 void setForLim(const int value);
1045
1048
1051
1054
1057
1060
1063
1066
1069
1072
1075
1078
1080 static EgdxUels::EgdxUelsEnum egdxUelsFromCode(const std::string &str);
1081
1084
1087
1089 std::string gridDir();
1090
1092 void setGridDir(const std::string& value);
1093
1095 std::string gridScript();
1096
1098 void setGridScript(const std::string& value);
1099
1101 double heapLimit();
1102
1104 void setHeapLimit(const double value);
1105
1108
1111
1114
1117
1119 std::string iDCGDXInput();
1120
1122 void setIDCGDXInput(const std::string& value);
1123
1125 std::string iDCGDXOutput();
1126
1128 void setIDCGDXOutput(const std::string& value);
1129
1132
1135
1138
1141
1144
1146 std::string inlineCom();
1147
1149 void setInlineCom(const std::string& value);
1150
1153
1155 void setInteger1(const int value);
1156
1159
1161 void setInteger2(const int value);
1162
1165
1167 void setInteger3(const int value);
1168
1171
1173 void setInteger4(const int value);
1174
1177
1179 void setInteger5(const int value);
1180
1183
1186
1189
1192
1194 int iterLim();
1195
1197 void setIterLim(const int value);
1198
1200 std::string jobTrace();
1201
1203 void setJobTrace(const std::string& value);
1204
1207
1210
1212 std::string libIncDir();
1213
1215 void setLibIncDir(const std::string& value);
1216
1218 std::string license();
1219
1221 void setLicense(const std::string& value);
1222
1224 int limCol();
1225
1227 void setLimCol(const int value);
1228
1230 int limRow();
1231
1233 void setLimRow(const int value);
1234
1237
1240
1242 static EListing::EListingEnum eListingFromCode(const std::string &str);
1243
1246
1249
1252
1255
1258
1261
1264
1266 void setMaxExecError(const int value);
1267
1270
1272 void setMaxProcDir(const int value);
1273
1276
1279
1281 static EMIIMode::EMIIModeEnum eMIIModeFromCode(const std::string &str);
1282
1285
1288
1290 std::string multi();
1291
1293 void setMulti(const std::string& value);
1294
1296 int nodLim();
1297
1299 void setNodLim(const int value);
1300
1303
1306
1309
1312
1314 double optCA();
1315
1317 void setOptCA(const double value);
1318
1320 double optCR();
1321
1323 void setOptCR(const double value);
1324
1326 std::string optDir();
1327
1329 void setOptDir(const std::string& value);
1330
1332 int optFile();
1333
1335 void setOptFile(const int value);
1336
1338 std::string output();
1339
1341 void setOutput(const std::string& value);
1342
1345
1348
1351
1353 void setPageSize(const int value);
1354
1357
1359 void setPageWidth(const int value);
1360
1362 std::string pLicense();
1363
1365 void setPLicense(const std::string& value);
1366
1369
1372
1375
1378
1381
1384
1387
1389 void setProcTreeMemTicks(const int value);
1390
1392 int profile();
1393
1395 void setProfile(const int value);
1396
1398 std::string profileFile();
1399
1401 void setProfileFile(const std::string& value);
1402
1404 double profileTol();
1405
1407 void setProfileTol(const double value);
1408
1410 std::string putDir();
1411
1413 void setPutDir(const std::string& value);
1414
1416 int putND();
1417
1419 void setPutND(const int value);
1420
1423
1426
1428 int putPS();
1429
1431 void setPutPS(const int value);
1432
1434 int putPW();
1435
1437 void setPutPW(const int value);
1438
1441
1444
1446 std::string reference();
1447
1449 void setReference(const std::string& value);
1450
1453
1456
1459
1462
1465
1468
1471
1473 static EReplace::EReplaceEnum eReplaceFromCode(const std::string &str);
1474
1477
1480
1482 double resLim();
1483
1485 void setResLim(const double value);
1486
1489
1492
1494 std::string scriptExit();
1495
1497 void setScriptExit(const std::string& value);
1498
1500 int seed();
1501
1503 void setSeed(const int value);
1504
1507
1510
1513
1516
1519
1522
1525
1528
1531
1534
1537
1540
1543
1546
1549
1552
1555
1558
1561
1564
1567
1570
1573
1576
1579
1582
1584 std::string symbol();
1585
1587 void setSymbol(const std::string& value);
1588
1590 std::string symPrefix();
1591
1593 void setSymPrefix(const std::string& value);
1594
1597
1600
1603
1606
1608 int sys12();
1609
1611 void setSys12(const int value);
1612
1614 std::string sysIncDir();
1615
1617 void setSysIncDir(const std::string& value);
1618
1621
1624
1626 int tabIn();
1627
1629 void setTabIn(const int value);
1630
1633
1636
1638 int threads();
1639
1641 void setThreads(const int value);
1642
1645
1647 void setThreadsAsync(const int value);
1648
1650 int timer();
1651
1653 void setTimer(const int value);
1654
1656 std::string trace();
1657
1659 void setTrace(const std::string& value);
1660
1663
1665 void setTraceLevel(const int value);
1666
1669
1672
1674 std::string user1();
1675
1677 void setUser1(const std::string& value);
1678
1680 std::string user2();
1681
1683 void setUser2(const std::string& value);
1684
1686 std::string user3();
1687
1689 void setUser3(const std::string& value);
1690
1692 std::string user4();
1693
1695 void setUser4(const std::string& value);
1696
1698 std::string user5();
1699
1701 void setUser5(const std::string& value);
1702
1705
1707 void setWarnings(const int value);
1708
1710 double workFactor();
1711
1713 void setWorkFactor(const double value);
1714
1716 double workSpace();
1717
1719 void setWorkSpace(const double value);
1720
1722 double zeroRes();
1723
1725 void setZeroRes(const double value);
1726
1729
1732
1734 std::string LP();
1735
1737 void setLP(const std::string& value);
1738
1740 std::string MIP();
1741
1743 void setMIP(const std::string& value);
1744
1746 std::string RMIP();
1747
1749 void setRMIP(const std::string& value);
1750
1752 std::string NLP();
1753
1755 void setNLP(const std::string& value);
1756
1758 std::string MCP();
1759
1761 void setMCP(const std::string& value);
1762
1764 std::string MPEC();
1765
1767 void setMPEC(const std::string& value);
1768
1770 std::string RMPEC();
1771
1773 void setRMPEC(const std::string& value);
1774
1776 std::string CNS();
1777
1779 void setCNS(const std::string& value);
1780
1782 std::string DNLP();
1783
1785 void setDNLP(const std::string& value);
1786
1788 std::string RMINLP();
1789
1791 void setRMINLP(const std::string& value);
1792
1794 std::string MINLP();
1795
1797 void setMINLP(const std::string& value);
1798
1800 std::string QCP();
1801
1803 void setQCP(const std::string& value);
1804
1806 std::string MIQCP();
1807
1809 void setMIQCP(const std::string& value);
1810
1812 std::string RMIQCP();
1813
1815 void setRMIQCP(const std::string& value);
1816
1818 std::string EMP();
1819
1821 void setEMP(const std::string& value);
1822
1824 std::string getSolver(const std::string& modelType);
1825
1827 void setSolver(const std::string& modelType, const std::string& solver);
1828
1829private:
1830 std::shared_ptr<GAMSOptionsImpl> mImpl;
1831 GAMSOptions(GAMSWorkspace workspace, const GAMSOptions* optFrom);
1832 GAMSOptions(GAMSWorkspace workspace, const std::string& optFile = "");
1833 int appendLog();
1834 void setAppendLog(const int value);
1835 std::string connectIn();
1836 void setConnectIn(const std::string& value);
1837 std::string connectOut();
1838 void setConnectOut(const std::string& value);
1839 std::string curDir();
1840 void setCurDir(const std::string& value);
1841 int debug();
1842 void setDebug(const int value);
1843 int debugPort();
1844 void setDebugPort(const int value);
1845 std::string docFile();
1846 void setDocFile(const std::string& value);
1847 std::string epsToZero();
1848 void setEpsToZero(const std::string& value);
1849 std::string errNam();
1850 void setErrNam(const std::string& value);
1851 int fSave();
1852 void setFSave(const int value);
1853 int g205();
1854 void setG205(const int value);
1855 std::string iDCGenerateGDX();
1856 void setIDCGenerateGDX(const std::string& value);
1857 std::string iDCGenerateGDXInput();
1858 void setIDCGenerateGDXInput(const std::string& value);
1859 std::string iDCGenerateGDXOutput();
1860 void setIDCGenerateGDXOutput(const std::string& value);
1861 std::string iDCGenerateJSON();
1862 void setIDCGenerateJSON(const std::string& value);
1863 std::string iDCJSON();
1864 void setIDCJSON(const std::string& value);
1865 int iDCProtect();
1866 void setIDCProtect(const int value);
1867 int iDE();
1868 void setIDE(const int value);
1869 std::string input();
1870 void setInput(const std::string& value);
1871 std::string logFile();
1872 void setLogFile(const std::string& value);
1873 int logOption();
1874 void setLogOption(const int value);
1875 int maxGenericFiles();
1876 void setMaxGenericFiles(const int value);
1877 int mCPRHoldfx();
1878 void setMCPRHoldfx(const int value);
1879 int multiPass();
1880 void setMultiPass(const int value);
1881 int noCr();
1882 void setNoCr(const int value);
1883 int opt();
1884 void setOpt(const int value);
1885 int pID2Error();
1886 void setPID2Error(const int value);
1887 std::string procDir();
1888 void setProcDir(const std::string& value);
1889 std::string procDirPath();
1890 void setProcDirPath(const std::string& value);
1891 int relPath();
1892 void setRelPath(const int value);
1893 std::string restart();
1894 void setRestart(const std::string& value);
1895 std::string restartNamed();
1896 void setRestartNamed(const std::string& value);
1897 std::string save();
1898 void setSave(const std::string& value);
1899 std::string saveObfuscate();
1900 void setSaveObfuscate(const std::string& value);
1901 std::string scrDir();
1902 void setScrDir(const std::string& value);
1903 std::string scrExt();
1904 void setScrExt(const std::string& value);
1905 std::string scriptFrst();
1906 void setScriptFrst(const std::string& value);
1907 std::string scriptNext();
1908 void setScriptNext(const std::string& value);
1909 std::string scrNam();
1910 void setScrNam(const std::string& value);
1911 int serverRun();
1912 void setServerRun(const int value);
1913 std::string solver();
1914 void setSolver(const std::string& value);
1915 std::string solverCntr();
1916 void setSolverCntr(const std::string& value);
1917 std::string solverDict();
1918 void setSolverDict(const std::string& value);
1919 std::string solverInst();
1920 void setSolverInst(const std::string& value);
1921 std::string solverMatr();
1922 void setSolverMatr(const std::string& value);
1923 std::string solverSolu();
1924 void setSolverSolu(const std::string& value);
1925 std::string solverStat();
1926 void setSolverStat(const std::string& value);
1927 std::string sparseRun();
1928 void setSparseRun(const std::string& value);
1929 std::string sqaCmex();
1930 void setSqaCmex(const std::string& value);
1931 std::string subSys();
1932 void setSubSys(const std::string& value);
1933 int sys14();
1934 void setSys14(const int value);
1935 int sys15();
1936 void setSys15(const int value);
1937 int sys16();
1938 void setSys16(const int value);
1939 int sys17();
1940 void setSys17(const int value);
1941 int sys18();
1942 void setSys18(const int value);
1943 int sys19();
1944 void setSys19(const int value);
1945 std::string sysDir();
1946 void setSysDir(const std::string& value);
1947 int useDLL();
1948 void setUseDLL(const int value);
1949 std::string workDir();
1950 void setWorkDir(const std::string& value);
1951 int writeOutput();
1952 void setwriteOutput(const int value);
1953 std::string xSave();
1954 void setXSave(const std::string& value);
1955 std::string xSaveObfuscate();
1956 void setXSaveObfuscate(const std::string& value);
1957
1958};
1959}
1960#endif // GAMSOPTIONS_H
1961
void setProfileTol(const double value)
Set Minimum time a statement must use to appear in profile generated output.
void setFDDelta(const double value)
Set Step size for finite differences.
void setMIIMode(const GAMSOptions::EMIIMode::EMIIModeEnum value)
Set Model Instance Mode.
int cErr()
Get Compile time error limit.
static std::string eActionText(GAMSOptions::EAction::EActionEnum type)
Get GAMS processing request as text.
void setInlineCom(const std::string &value)
Set Switch default for "$on/offInline" and "$inlineCom".
std::string dumpOptGDX()
Get Defines a GDX file name stem created when using DumpOpt.
void setInteger3(const int value)
Set Integer communication cell N.
std::string symbol()
Get Symbol table file.
void setThreadsAsync(const int value)
Set Limit on number of threads to be used for asynchronous solves (solveLink=6)
GAMSOptions::ESys10::ESys10Enum sys10()
Get Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.
static std::string eSuffixAlgebraVarsCode(GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum type)
Get Switch default for "$on/offSuffixAlgebraVars" as code.
void setETLim(const double value)
Set Elapsed time limit in seconds.
GAMSOptions::EAsyncSolLst::EAsyncSolLstEnum asyncSolLst()
Get Print solution listing when asynchronous solve (Grid or Threads) is used.
GAMSOptions::ECaptureModelInstance::ECaptureModelInstanceEnum captureModelInstance()
Get Switch to capture all model instances within a run.
std::string MINLP()
Get default MINLP solver.
static std::string eMIIModeCode(GAMSOptions::EMIIMode::EMIIModeEnum type)
Get Model Instance Mode as code.
static std::string eReplaceText(GAMSOptions::EReplace::EReplaceEnum type)
Get Switch between merge and replace when reading from GDX into non-empty symbol as text.
static EDigit::EDigitEnum eDigitFromCode(const std::string &str)
Get Switch default for "$on/offDigit" from std::string
static EAction::EActionEnum eActionFromCode(const std::string &str)
Get GAMS processing request from std::string
std::string MIQCP()
Get default MIQCP solver.
GAMSOptions::ESys11::ESys11Enum sys11()
Get Dynamic resorting if indices in assignment/data statements are not in natural order.
static std::string eFilteredText(GAMSOptions::EFiltered::EFilteredEnum type)
Get Switch between filtered and domain-checked read from GDX as text.
GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum eCImplicitLoad()
Get Allow implicit loading of symbols from embedded code or not.
int threadsAsync()
Get Limit on number of threads to be used for asynchronous solves (solveLink=6)
std::string NLP()
Get default NLP solver.
GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum suffixDLVars()
Get Switch default for "$on/offSuffixDLVars".
void setDumpParmsLogPrefix(const std::string &value)
Set Prefix of lines triggered by DumpParms>1.
GAMSOptions::ELstTitleLeftAligned::ELstTitleLeftAlignedEnum lstTitleLeftAligned()
Get Write title of LST file all left aligned.
std::string DNLP()
Get default DNLP solver.
void setInteger5(const int value)
Set Integer communication cell N.
std::string user5()
Get User string N.
void setSys10(const GAMSOptions::ESys10::ESys10Enum value)
Set Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.
void setDFormat(const GAMSOptions::EDFormat::EDFormatEnum value)
Set Date format.
void setInteger2(const int value)
Set Integer communication cell N.
void setSysIncDir(const std::string &value)
Set SysInclude directory.
static std::string eECImplicitLoadCode(GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum type)
Get Allow implicit loading of symbols from embedded code or not as code.
GAMSOptions::EFreeEmbeddedPython::EFreeEmbeddedPythonEnum freeEmbeddedPython()
Get Free external resources at the end of each embedded Python code blocks.
GAMSOptions::ETFormat::ETFormatEnum tFormat()
Get Time format.
std::string EMP()
Get default EMP solver.
void setStepSum(const GAMSOptions::EStepSum::EStepSumEnum value)
Set Summary of computing resources used by job steps.
GAMSOptions::ESolPrint::ESolPrintEnum solPrint()
Get Solution report print option.
void setInteger1(const int value)
Set Integer communication cell N.
void setLP(const std::string &value)
Set default LP solver.
void setWorkSpace(const double value)
Set Work space for some solvers in MB.
int pageWidth()
Get Output file page width.
void setIntVarUp(const GAMSOptions::EIntVarUp::EIntVarUpEnum value)
Set Set mode for default upper bounds on integer variables.
static EImplicitAssign::EImplicitAssignEnum eImplicitAssignFromCode(const std::string &str)
Get Switch default for "$on/offImplicitAssign" from std::string
void setForLim(const int value)
Set GAMS looping limit.
static ESuffixAlgebraVars::ESuffixAlgebraVarsEnum eSuffixAlgebraVarsFromCode(const std::string &str)
Get Switch default for "$on/offSuffixAlgebraVars" from std::string
double profileTol()
Get Minimum time a statement must use to appear in profile generated output.
GAMSOptions::EPyMultInst::EPyMultInstEnum pyMultInst()
Get GAMS/Python Multiple Instance Interpreter.
GAMSOptions::EStepSum::EStepSumEnum stepSum()
Get Summary of computing resources used by job steps.
double optCA()
Get Absolute Optimality criterion solver default.
void setMCP(const std::string &value)
Set default MCP solver.
std::string QCP()
Get default QCP solver.
void setSys12(const int value)
Set Pass model with generation errors to solver.
int inputDirSize()
Get the size of the inputdir list.
void setRMPEC(const std::string &value)
Set default RMPEC solver.
GAMSOptions::EDumpParms::EDumpParmsEnum dumpParms()
Get GAMS parameter logging.
void setLimRow(const int value)
Set Maximum number of rows listed in one equation block.
std::string pLicense()
Get Privacy license file name.
int integer2()
Get Integer communication cell N.
GAMSOptions::ECharSet::ECharSetEnum charSet()
Get Character set flag.
std::string LP()
Get default LP solver.
void setAllModelTypes(const std::string &solver)
Set the solver for all model types the solver can handle.
std::string user4()
Get User string N.
static std::string eListingCode(GAMSOptions::EListing::EListingEnum type)
Get Switch default for "$on/offListing" as code.
static EECImplicitLoad::EECImplicitLoadEnum eECImplicitLoadFromCode(const std::string &str)
Get Allow implicit loading of symbols from embedded code or not from std::string
void setPLicense(const std::string &value)
Set Privacy license file name.
GAMSOptions::EZeroResRep::EZeroResRepEnum zeroResRep()
Get Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.
void setMIP(const std::string &value)
Set default MIP solver.
GAMSOptions::ENoNewVarEqu::ENoNewVarEquEnum noNewVarEqu()
Get Triggers a compilation error when new equations or variable symbols are introduced.
~GAMSOptions()
Destructor.
void setIterLim(const int value)
Set Iteration limit of solver.
GAMSOptions::EHoldFixedAsync::EHoldFixedAsyncEnum holdFixedAsync()
Get Allow HoldFixed for models solved asynchronously as well.
std::string iDCGDXInput()
Get GDX file name with data for implicit input.
void setAppendExpand(const GAMSOptions::EAppendExpand::EAppendExpandEnum value)
Set Expand file append option.
static std::string egdxUelsCode(GAMSOptions::EgdxUels::EgdxUelsEnum type)
Get Unload labels or UELs to GDX either squeezed or full as code.
GAMSOptions::EgdxConvert::EgdxConvertEnum gdxConvert()
Get Version of GDX files generated (for backward compatibility)
void setUser4(const std::string &value)
Set User string N.
int domLim()
Get Domain violation limit solver default.
int putND()
Get Number of decimals for put files.
static std::string eDigitCode(GAMSOptions::EDigit::EDigitEnum type)
Get Switch default for "$on/offDigit" as code.
void setDumpOpt(const GAMSOptions::EDumpOpt::EDumpOptEnum value)
Set Writes preprocessed input to the file input.dmp.
void setRMIP(const std::string &value)
Set default RMIP solver.
int nodLim()
Get Node limit in branch and bound tree.
void setNLP(const std::string &value)
Set default NLP solver.
std::string fErr()
Get Alternative error message file.
static EListing::EListingEnum eListingFromCode(const std::string &str)
Get Switch default for "$on/offListing" from std::string
void setFileStemApFromEnv(const std::string &value)
Set Append a string read from an environment variable to the "FileStem".
void setEmpty(const GAMSOptions::EEmpty::EEmptyEnum value)
Set Switch default for "$on/offEmpty".
void setExpand(const std::string &value)
Set Expanded (include) input file name.
static std::string eSuffixDLVarsCode(GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum type)
Get Switch default for "$on/offSuffixDLVars" as code.
void setDecryptKey(const std::string &value)
Set Key to decrypt a text file that was encrypted via $encrypt.
static std::string eActionCode(GAMSOptions::EAction::EActionEnum type)
Get GAMS processing request as code.
GAMSOptions::EFiltered::EFilteredEnum filtered()
Get Switch between filtered and domain-checked read from GDX.
void setInteger4(const int value)
Set Integer communication cell N.
void setSolver(const std::string &modelType, const std::string &solver)
Get solver by model type.
void setReferenceLineNo(const GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum value)
Set Controls the line numbers written to a reference file.
static EMIIMode::EMIIModeEnum eMIIModeFromCode(const std::string &str)
Get Model Instance Mode from std::string
void setOptCR(const double value)
Set Relative Optimality criterion solver default.
int threads()
Get Number of threads to be used by a solver.
double workFactor()
Get Memory Estimate multiplier for some solvers.
std::string fileStem()
Get Sets the file stem for output files which use the input file name as stem by default.
void setHeapLimit(const double value)
Set Maximum Heap size allowed in MB.
void setPutNR(const GAMSOptions::EPutNR::EPutNREnum value)
Set Numeric round format for put files.
void setTFormat(const GAMSOptions::ETFormat::ETFormatEnum value)
Set Time format.
std::string jobTrace()
Get Job trace string to be written to the trace file at the end of a GAMS job.
static const char * gamsVersion()
Get GAMS version information.
void setTraceLevel(const int value)
Set Modelstat/Solvestat threshold used in conjunction with action=GT.
GAMSOptions::EPageContr::EPageContrEnum pageContr()
Get Output file page control option.
void setAsyncSolLst(const GAMSOptions::EAsyncSolLst::EAsyncSolLstEnum value)
Set Print solution listing when asynchronous solve (Grid or Threads) is used.
void setMulti(const std::string &value)
Set Switch default for "$on/offMulti[R]".
void setFiltered(const GAMSOptions::EFiltered::EFilteredEnum value)
Set Switch between filtered and domain-checked read from GDX.
void setInputDir(const std::string value, const int index)
Replace inputdir at the specified index of the inputdir list.
int integer5()
Get Integer communication cell N.
void setFErr(const std::string &value)
Set Alternative error message file.
void setGridDir(const std::string &value)
Set Grid file directory.
static std::string eSuffixDLVarsText(GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum type)
Get Switch default for "$on/offSuffixDLVars" as text.
void setCheckErrorLevel(const GAMSOptions::ECheckErrorLevel::ECheckErrorLevelEnum value)
Set Check errorLevel automatically after executing external program.
void setSeed(const int value)
Set Random number seed.
void setInteractiveSolver(const GAMSOptions::EInteractiveSolver::EInteractiveSolverEnum value)
Set Allow solver to interact via command line input.
GAMSOptions::EDigit::EDigitEnum digit()
Get Switch default for "$on/offDigit".
void setGridScript(const std::string &value)
Set Grid submission script.
static std::string egdxConvertText(GAMSOptions::EgdxConvert::EgdxConvertEnum type)
Get Version of GDX files generated (for backward compatibility) as text.
void setPreviousWork(const GAMSOptions::EPreviousWork::EPreviousWorkEnum value)
Set Indicator for writing workfile with previous workfile version.
GAMSOptions::EInteractiveSolver::EInteractiveSolverEnum interactiveSolver()
Get Allow solver to interact via command line input.
GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum suffixAlgebraVars()
Get Switch default for "$on/offSuffixAlgebraVars".
std::string gdx()
Get GDX file name.
void setTrace(const std::string &value)
Set Trace file name.
void setDumpParms(const GAMSOptions::EDumpParms::EDumpParmsEnum value)
Set GAMS parameter logging.
void setTabIn(const int value)
Set Tab spacing.
GAMSOptions::EPrefixLoadPath::EPrefixLoadPathEnum prefixLoadPath()
Get Prepend GAMS system directory to library load path.
void setForceOptFile(const int value)
Set Overwrites other option file section mechanism.
std::string dumpParmsLogPrefix()
Get Prefix of lines triggered by DumpParms>1.
std::string optDir()
Get Option file directory.
double heapLimit()
Get Maximum Heap size allowed in MB.
void setDefine(const std::string &key, const std::string &value)
Set double-dash –key=value option pair.
void setSuffixAlgebraVars(const GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum value)
Set Switch default for "$on/offSuffixAlgebraVars".
int sys12()
Get Pass model with generation errors to solver.
void setDNLP(const std::string &value)
Set default DNLP solver.
void setLimCol(const int value)
Set Maximum number of columns listed in one variable block.
GAMSOptions::ESysOut::ESysOutEnum sysOut()
Get Solver Status file reporting option.
void setReference(const std::string &value)
Set Symbol reference file.
static std::string eListingText(GAMSOptions::EListing::EListingEnum type)
Get Switch default for "$on/offListing" as text.
void setCaptureModelInstance(const GAMSOptions::ECaptureModelInstance::ECaptureModelInstanceEnum value)
Set Switch to capture all model instances within a run.
static std::string egdxConvertCode(GAMSOptions::EgdxConvert::EgdxConvertEnum type)
Get Version of GDX files generated (for backward compatibility) as code.
void setMaxProcDir(const int value)
Set Maximum number of 225* process directories.
void setProfile(const int value)
Set Execution profiling.
void setExecMode(const GAMSOptions::EExecMode::EExecModeEnum value)
Set Limits on external programs that are allowed to be executed.
GAMSOptions::ETraceOpt::ETraceOptEnum traceOpt()
Get Trace file format option.
double workSpace()
Get Work space for some solvers in MB.
void setCNS(const std::string &value)
Set default CNS solver.
void addInputDir(const std::string value)
Add new inputdir at the end of the inputdir list.
static std::string eSuffixAlgebraVarsText(GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum type)
Get Switch default for "$on/offSuffixAlgebraVars" as text.
std::string libIncDir()
Get LibInclude directory.
void setGdx(const std::string &value)
Set GDX file name.
int forceOptFile()
Get Overwrites other option file section mechanism.
void setTimer(const int value)
Set Instruction timer threshold in milli seconds.
void setgdxUels(const GAMSOptions::EgdxUels::EgdxUelsEnum value)
Set Unload labels or UELs to GDX either squeezed or full.
void setStringChk(const GAMSOptions::EStringChk::EStringChkEnum value)
Set String substitution options.
void setMPEC(const std::string &value)
Set default MPEC solver.
void setSymbol(const std::string &value)
Set Symbol table file.
std::string getDefine(const std::string &key)
Get value of previously set double-dash –key-value option pair.
std::string scriptExit()
Get Program or script to be executed at the end of a GAMS run.
int maxExecError()
Get Execution time error limit.
GAMSOptions::ELogLine::ELogLineEnum logLine()
Get Amount of line tracing to the log file.
void setProcTreeMemMonitor(const GAMSOptions::EProcTreeMemMonitor::EProcTreeMemMonitorEnum value)
Set Monitor the memory used by the GAMS process tree.
void setProcTreeMemTicks(const int value)
Set Set wait interval between memory monitor checks: ticks = milliseconds.
void setQCP(const std::string &value)
Set default QCP solver.
void setZeroRes(const double value)
Set The results of certain operations will be set to zero if abs(result) LE ZeroRes.
std::string sysIncDir()
Get SysInclude directory.
int pageSize()
Get Output file page size (=0 no paging)
void setFDOpt(const GAMSOptions::EFDOpt::EFDOptEnum value)
Set Options for finite differences.
void setOn115(const GAMSOptions::EOn115::EOn115Enum value)
Set Generate errors for unknown unique element in an equation.
int integer1()
Get Integer communication cell N.
static std::string eDigitText(GAMSOptions::EDigit::EDigitEnum type)
Get Switch default for "$on/offDigit" as text.
void setOptDir(const std::string &value)
Set Option file directory.
std::string license()
Get Use alternative license file.
void setOptCA(const double value)
Set Absolute Optimality criterion solver default.
void setCErr(const int value)
Set Compile time error limit.
static std::string eECImplicitLoadText(GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum type)
Get Allow implicit loading of symbols from embedded code or not as text.
std::string eolCom()
Get Switch default for "$on/offEolCom" and "$eolCom".
std::string decryptKey()
Get Key to decrypt a text file that was encrypted via $encrypt.
void setEolCom(const std::string &value)
Set Switch default for "$on/offEolCom" and "$eolCom".
std::string fileStemApFromEnv()
Get Append a string read from an environment variable to the "FileStem".
GAMSOptions::EHoldFixed::EHoldFixedEnum holdFixed()
Get Treat fixed variables as constants.
static std::string eImplicitAssignCode(GAMSOptions::EImplicitAssign::EImplicitAssignEnum type)
Get Switch default for "$on/offImplicitAssign" as code.
void setstrictSingleton(const GAMSOptions::EstrictSingleton::EstrictSingletonEnum value)
Set Error if assignment to singleton set has multiple elements.
int errorLog()
Get Max error message lines written to the log for each error.
void setJobTrace(const std::string &value)
Set Job trace string to be written to the trace file at the end of a GAMS job.
std::string reference()
Get Symbol reference file.
void setFreeEmbeddedPython(const GAMSOptions::EFreeEmbeddedPython::EFreeEmbeddedPythonEnum value)
Set Free external resources at the end of each embedded Python code blocks.
GAMSOptions::EEmpty::EEmptyEnum empty()
Get Switch default for "$on/offEmpty".
void setImplicitAssign(const GAMSOptions::EImplicitAssign::EImplicitAssignEnum value)
Set Switch default for "$on/offImplicitAssign".
static std::string eFilteredCode(GAMSOptions::EFiltered::EFilteredEnum type)
Get Switch between filtered and domain-checked read from GDX as code.
void setPutPS(const int value)
Set Page size for put files.
static std::string eImplicitAssignText(GAMSOptions::EImplicitAssign::EImplicitAssignEnum type)
Get Switch default for "$on/offImplicitAssign" as text.
void setUser5(const std::string &value)
Set User string N.
void setSolveLink(const GAMSOptions::ESolveLink::ESolveLinkEnum value)
Set Solver link option.
double eTLim()
Get Elapsed time limit in seconds.
int timer()
Get Instruction timer threshold in milli seconds.
void setHoldFixed(const GAMSOptions::EHoldFixed::EHoldFixedEnum value)
Set Treat fixed variables as constants.
static EgdxUels::EgdxUelsEnum egdxUelsFromCode(const std::string &str)
Get Unload labels or UELs to GDX either squeezed or full from std::string
bool removeDefine(const std::string &key)
Remove a double-dash option.
static EReferenceLineNo::EReferenceLineNoEnum eReferenceLineNoFromCode(const std::string &str)
Get Controls the line numbers written to a reference file from std::string
GAMSOptions::EgdxUels::EgdxUelsEnum gdxUels()
Get Unload labels or UELs to GDX either squeezed or full.
std::string MPEC()
Get default MPEC solver.
static EFiltered::EFilteredEnum eFilteredFromCode(const std::string &str)
Get Switch between filtered and domain-checked read from GDX from std::string
GAMSOptions::EPutNR::EPutNREnum putNR()
Get Numeric round format for put files.
double fDDelta()
Get Step size for finite differences.
void setSysOut(const GAMSOptions::ESysOut::ESysOutEnum value)
Set Solver Status file reporting option.
void setIDCGDXOutput(const std::string &value)
Set GDX file name for data for implicit output.
GAMSOptions::ESolveOpt::ESolveOptEnum solveOpt()
Get Multiple solve management.
GAMSOptions::EExecMode::EExecModeEnum execMode()
Get Limits on external programs that are allowed to be executed.
GAMSOptions::EStringChk::EStringChkEnum stringChk()
Get String substitution options.
int integer3()
Get Integer communication cell N.
GAMSOptions::EAppendOut::EAppendOutEnum appendOut()
Get Output file append option.
int limCol()
Get Maximum number of columns listed in one variable block.
void writeOptionFile(const std::string &optFileName)
Export options to an option file.
void setIDCGDXInput(const std::string &value)
Set GDX file name with data for implicit input.
void setSuppress(const GAMSOptions::ESuppress::ESuppressEnum value)
Set Compiler listing option.
std::string user3()
Get User string N.
void setPyMultInst(const GAMSOptions::EPyMultInst::EPyMultInstEnum value)
Set GAMS/Python Multiple Instance Interpreter.
std::string gridDir()
Get Grid file directory.
GAMSOptions::EShowOSMemory::EShowOSMemoryEnum showOSMemory()
Get Show the memory usage reported by the Operating System instead of the internal counting.
std::string output()
Get Listing file name.
static ESuffixDLVars::ESuffixDLVarsEnum eSuffixDLVarsFromCode(const std::string &str)
Get Switch default for "$on/offSuffixDLVars" from std::string
int procTreeMemTicks()
Get Set wait interval between memory monitor checks: ticks = milliseconds.
void setRMIQCP(const std::string &value)
Set default RMIQCP solver.
double zeroRes()
Get The results of certain operations will be set to zero if abs(result) LE ZeroRes.
GAMSOptions::EPreviousWork::EPreviousWorkEnum previousWork()
Get Indicator for writing workfile with previous workfile version.
GAMSOptions::EFDOpt::EFDOptEnum fDOpt()
Get Options for finite differences.
GAMSOptions::EAction::EActionEnum action()
Get GAMS processing request.
void setEMP(const std::string &value)
Set default EMP solver.
void setECImplicitLoad(const GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum value)
Set Allow implicit loading of symbols from embedded code or not.
std::string getSolver(const std::string &modelType)
Get solver by model type.
GAMSOptions::EFileCase::EFileCaseEnum fileCase()
Get Casing of file names and paths (put, gdx, ref, $include, etc.)
std::string RMIQCP()
Get default RMIQCP solver.
void setNoNewVarEqu(const GAMSOptions::ENoNewVarEqu::ENoNewVarEquEnum value)
Set Triggers a compilation error when new equations or variable symbols are introduced.
void setLstTitleLeftAligned(const GAMSOptions::ELstTitleLeftAligned::ELstTitleLeftAlignedEnum value)
Set Write title of LST file all left aligned.
static EReplace::EReplaceEnum eReplaceFromCode(const std::string &str)
Get Switch between merge and replace when reading from GDX into non-empty symbol from std::string
int lstCase()
Get Output case option for LST file.
void setAppendOut(const GAMSOptions::EAppendOut::EAppendOutEnum value)
Set Output file append option.
GAMSOptions::EOn115::EOn115Enum on115()
Get Generate errors for unknown unique element in an equation.
void setBratio(const double value)
Set Basis detection threshold.
void setMINLP(const std::string &value)
Set default MINLP solver.
double optCR()
Get Relative Optimality criterion solver default.
static const char * gamsBuild()
Get GAMS build information.
void setThreads(const int value)
Set Number of threads to be used by a solver.
void setLicense(const std::string &value)
Set Use alternative license file.
void setWarnings(const int value)
Set Number of warnings permitted before a run terminates.
void setAction(const GAMSOptions::EAction::EActionEnum value)
Set GAMS processing request.
void setDomLim(const int value)
Set Domain violation limit solver default.
void setFileCase(const GAMSOptions::EFileCase::EFileCaseEnum value)
Set Casing of file names and paths (put, gdx, ref, $include, etc.)
int maxProcDir()
Get Maximum number of 225* process directories.
std::string RMPEC()
Get default RMPEC solver.
std::string encryptKey()
Get Key to encrypt a text file using $encrypt.
std::string RMIP()
Get default RMIP solver.
std::string profileFile()
Get Write profile information to this file.
void setLibIncDir(const std::string &value)
Set LibInclude directory.
std::string MCP()
Get default MCP solver.
void setDigit(const GAMSOptions::EDigit::EDigitEnum value)
Set Switch default for "$on/offDigit".
void setSymPrefix(const std::string &value)
Set Prefix all symbols encountered during compilation by the specified string in work file.
int forLim()
Get GAMS looping limit.
void setUser2(const std::string &value)
Set User string N.
void setMIQCP(const std::string &value)
Set default MIQCP solver.
std::string getInputDir(const int index)
Get an inputdir at position index of the inputdir list.
static std::string eMIIModeText(GAMSOptions::EMIIMode::EMIIModeEnum type)
Get Model Instance Mode as text.
GAMSOptions::EKeep::EKeepEnum keep()
Get Controls keeping or deletion of process directory and scratch files.
void setKeep(const GAMSOptions::EKeep::EKeepEnum value)
Set Controls keeping or deletion of process directory and scratch files.
GAMSOptions::EgdxCompress::EgdxCompressEnum gdxCompress()
Get Compression of generated GDX file.
void setProfileFile(const std::string &value)
Set Write profile information to this file.
void setErrMsg(const GAMSOptions::EErrMsg::EErrMsgEnum value)
Set Placing of compilation error messages.
void setgdxCompress(const GAMSOptions::EgdxCompress::EgdxCompressEnum value)
Set Compression of generated GDX file.
GAMSOptions::ECheckErrorLevel::ECheckErrorLevelEnum checkErrorLevel()
Get Check errorLevel automatically after executing external program.
GAMSOptions::EDumpOpt::EDumpOptEnum dumpOpt()
Get Writes preprocessed input to the file input.dmp.
static EgdxConvert::EgdxConvertEnum egdxConvertFromCode(const std::string &str)
Get Version of GDX files generated (for backward compatibility) from std::string
GAMSOptions::EErrMsg::EErrMsgEnum errMsg()
Get Placing of compilation error messages.
void setSolPrint(const GAMSOptions::ESolPrint::ESolPrintEnum value)
Set Solution report print option.
GAMSOptions::EProcTreeMemMonitor::EProcTreeMemMonitorEnum procTreeMemMonitor()
Get Monitor the memory used by the GAMS process tree.
std::string putDir()
Get Put file directory.
int putPS()
Get Page size for put files.
void setPrefixLoadPath(const GAMSOptions::EPrefixLoadPath::EPrefixLoadPathEnum value)
Set Prepend GAMS system directory to library load path.
std::string CNS()
Get default CNS solver.
double bratio()
Get Basis detection threshold.
void setOptFile(const int value)
Set Default option file.
std::string RMINLP()
Get default RMINLP solver.
void setSavePoint(const GAMSOptions::ESavePoint::ESavePointEnum value)
Set Save solver point in GDX file.
std::string multi()
Get Switch default for "$on/offMulti[R]".
int seed()
Get Random number seed.
void setPageSize(const int value)
Set Output file page size (=0 no paging)
int profile()
Get Execution profiling.
static EEmpty::EEmptyEnum eEmptyFromCode(const std::string &str)
Get Switch default for "$on/offEmpty" from std::string
int putPW()
Get Page width for put files.
std::string trace()
Get Trace file name.
void setHoldFixedAsync(const GAMSOptions::EHoldFixedAsync::EHoldFixedAsyncEnum value)
Set Allow HoldFixed for models solved asynchronously as well.
static std::string eReferenceLineNoText(GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum type)
Get Controls the line numbers written to a reference file as text.
double resLim()
Get Wall-clock time limit for solver.
static std::string eEmptyText(GAMSOptions::EEmpty::EEmptyEnum type)
Get Switch default for "$on/offEmpty" as text.
GAMSOptions::EDFormat::EDFormatEnum dFormat()
Get Date format.
void setPutDir(const std::string &value)
Set Put file directory.
void setUser1(const std::string &value)
Set User string N.
void setEncryptKey(const std::string &value)
Set Key to encrypt a text file using $encrypt.
void setUser3(const std::string &value)
Set User string N.
int limRow()
Get Maximum number of rows listed in one equation block.
void setNodLim(const int value)
Set Node limit in branch and bound tree.
void setSys11(const GAMSOptions::ESys11::ESys11Enum value)
Set Dynamic resorting if indices in assignment/data statements are not in natural order.
GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum referenceLineNo()
Get Controls the line numbers written to a reference file.
GAMSOptions::ESavePoint::ESavePointEnum savePoint()
Get Save solver point in GDX file.
int traceLevel()
Get Modelstat/Solvestat threshold used in conjunction with action=GT.
std::string symPrefix()
Get Prefix all symbols encountered during compilation by the specified string in work file.
std::string user2()
Get User string N.
GAMSOptions::EReplace::EReplaceEnum replace()
Get Switch between merge and replace when reading from GDX into non-empty symbol.
void setForceWork(const GAMSOptions::EForceWork::EForceWorkEnum value)
Set Force GAMS to process a save file created with a newer GAMS version or with execution errors.
void setScriptExit(const std::string &value)
Set Program or script to be executed at the end of a GAMS run.
GAMSOptions::EImplicitAssign::EImplicitAssignEnum implicitAssign()
Get Switch default for "$on/offImplicitAssign".
void removeInputDir(const int index)
Remove an inputdir at position index of the inputdir list.
int warnings()
Get Number of warnings permitted before a run terminates.
void setPageContr(const GAMSOptions::EPageContr::EPageContrEnum value)
Set Output file page control option.
GAMSOptions::EIntVarUp::EIntVarUpEnum intVarUp()
Get Set mode for default upper bounds on integer variables.
int iterLim()
Get Iteration limit of solver.
void setSuffixDLVars(const GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum value)
Set Switch default for "$on/offSuffixDLVars".
std::string iDCGDXOutput()
Get GDX file name for data for implicit output.
static std::string eReplaceCode(GAMSOptions::EReplace::EReplaceEnum type)
Get Switch between merge and replace when reading from GDX into non-empty symbol as code.
void setLogLine(const GAMSOptions::ELogLine::ELogLineEnum value)
Set Amount of line tracing to the log file.
void setErrorLog(const int value)
Set Max error message lines written to the log for each error.
static std::string eEmptyCode(GAMSOptions::EEmpty::EEmptyEnum type)
Get Switch default for "$on/offEmpty" as code.
int integer4()
Get Integer communication cell N.
void setZeroResRep(const GAMSOptions::EZeroResRep::EZeroResRepEnum value)
Set Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.
std::string gridScript()
Get Grid submission script.
static std::string eReferenceLineNoCode(GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum type)
Get Controls the line numbers written to a reference file as code.
int tabIn()
Get Tab spacing.
void setMaxExecError(const int value)
Set Execution time error limit.
std::string inlineCom()
Get Switch default for "$on/offInline" and "$inlineCom".
void setDumpOptGDX(const std::string &value)
Set Defines a GDX file name stem created when using DumpOpt.
void setListing(const GAMSOptions::EListing::EListingEnum value)
Set Switch default for "$on/offListing".
GAMSOptions::ESuppress::ESuppressEnum suppress()
Get Compiler listing option.
void setTraceOpt(const GAMSOptions::ETraceOpt::ETraceOptEnum value)
Set Trace file format option.
void setPutPW(const int value)
Set Page width for put files.
void setShowOSMemory(const GAMSOptions::EShowOSMemory::EShowOSMemoryEnum value)
Set Show the memory usage reported by the Operating System instead of the internal counting.
void setRMINLP(const std::string &value)
Set default RMINLP solver.
void setFileStem(const std::string &value)
Set Sets the file stem for output files which use the input file name as stem by default.
void setCharSet(const GAMSOptions::ECharSet::ECharSetEnum value)
Set Character set flag.
void setOutput(const std::string &value)
Set Listing file name.
void setSolveOpt(const GAMSOptions::ESolveOpt::ESolveOptEnum value)
Set Multiple solve management.
void setWorkFactor(const double value)
Set Memory Estimate multiplier for some solvers.
GAMSOptions::EMIIMode::EMIIModeEnum mIIMode()
Get Model Instance Mode.
void setLstCase(const int value)
Set Output case option for LST file.
static std::string egdxUelsText(GAMSOptions::EgdxUels::EgdxUelsEnum type)
Get Unload labels or UELs to GDX either squeezed or full as text.
void setResLim(const double value)
Set Wall-clock time limit for solver.
void setPageWidth(const int value)
Set Output file page width.
std::string user1()
Get User string N.
void setPutND(const int value)
Set Number of decimals for put files.
GAMSOptions::EForceWork::EForceWorkEnum forceWork()
Get Force GAMS to process a save file created with a newer GAMS version or with execution errors.
std::string MIP()
Get default MIP solver.
std::string expand()
Get Expanded (include) input file name.
GAMSOptions::ESolveLink::ESolveLinkEnum solveLink()
Get Solver link option.
GAMSOptions::EstrictSingleton::EstrictSingletonEnum strictSingleton()
Get Error if assignment to singleton set has multiple elements.
GAMSOptions::EListing::EListingEnum listing()
Get Switch default for "$on/offListing".
void setReplace(const GAMSOptions::EReplace::EReplaceEnum value)
Set Switch between merge and replace when reading from GDX into non-empty symbol.
int optFile()
Get Default option file.
GAMSOptions::EAppendExpand::EAppendExpandEnum appendExpand()
Get Expand file append option.
void setgdxConvert(const GAMSOptions::EgdxConvert::EgdxConvertEnum value)
Set Version of GDX files generated (for backward compatibility)
Definition: gams.h:91
GAMS processing request.
Definition: gamsoptions.h:63
EActionEnum
GAMS processing request.
Definition: gamsoptions.h:66
Expand file append option.
Definition: gamsoptions.h:77
EAppendExpandEnum
Expand file append option.
Definition: gamsoptions.h:80
Output file append option.
Definition: gamsoptions.h:87
EAppendOutEnum
Output file append option.
Definition: gamsoptions.h:90
Print solution listing when asynchronous solve (Grid or Threads) is used.
Definition: gamsoptions.h:97
EAsyncSolLstEnum
Print solution listing when asynchronous solve (Grid or Threads) is used.
Definition: gamsoptions.h:100
Switch to capture all model instances within a run.
Definition: gamsoptions.h:107
ECaptureModelInstanceEnum
Switch to capture all model instances within a run.
Definition: gamsoptions.h:110
Output case option for LST file.
Definition: gamsoptions.h:117
ECaseEnum
Output case option for LST file.
Definition: gamsoptions.h:120
Character set flag.
Definition: gamsoptions.h:127
ECharSetEnum
Character set flag.
Definition: gamsoptions.h:130
Check errorLevel automatically after executing external program.
Definition: gamsoptions.h:137
ECheckErrorLevelEnum
Check errorLevel automatically after executing external program.
Definition: gamsoptions.h:140
Switch default for "$on/offDigit".
Definition: gamsoptions.h:158
EDigitEnum
Switch default for "$on/offDigit".
Definition: gamsoptions.h:161
Writes preprocessed input to the file input.dmp.
Definition: gamsoptions.h:168
EDumpOptEnum
Writes preprocessed input to the file input.dmp.
Definition: gamsoptions.h:171
GAMS parameter logging.
Definition: gamsoptions.h:187
EDumpParmsEnum
GAMS parameter logging.
Definition: gamsoptions.h:190
Allow implicit loading of symbols from embedded code or not.
Definition: gamsoptions.h:198
EECImplicitLoadEnum
Allow implicit loading of symbols from embedded code or not.
Definition: gamsoptions.h:201
Switch default for "$on/offEmpty".
Definition: gamsoptions.h:208
EEmptyEnum
Switch default for "$on/offEmpty".
Definition: gamsoptions.h:211
Placing of compilation error messages.
Definition: gamsoptions.h:218
EErrMsgEnum
Placing of compilation error messages.
Definition: gamsoptions.h:221
Limits on external programs that are allowed to be executed.
Definition: gamsoptions.h:229
EExecModeEnum
Limits on external programs that are allowed to be executed.
Definition: gamsoptions.h:232
Options for finite differences.
Definition: gamsoptions.h:242
EFDOptEnum
Options for finite differences.
Definition: gamsoptions.h:245
Casing of file names and paths (put, gdx, ref, $include, etc.)
Definition: gamsoptions.h:260
EFileCaseEnum
Casing of file names and paths (put, gdx, ref, $include, etc.)
Definition: gamsoptions.h:263
Switch between filtered and domain-checked read from GDX.
Definition: gamsoptions.h:273
EFilteredEnum
Switch between filtered and domain-checked read from GDX.
Definition: gamsoptions.h:276
Force GAMS to process a save file created with a newer GAMS version or with execution errors.
Definition: gamsoptions.h:283
EForceWorkEnum
Force GAMS to process a save file created with a newer GAMS version or with execution errors.
Definition: gamsoptions.h:286
Free external resources at the end of each embedded Python code blocks.
Definition: gamsoptions.h:293
EFreeEmbeddedPythonEnum
Free external resources at the end of each embedded Python code blocks.
Definition: gamsoptions.h:296
Allow HoldFixed for models solved asynchronously as well.
Definition: gamsoptions.h:344
EHoldFixedAsyncEnum
Allow HoldFixed for models solved asynchronously as well.
Definition: gamsoptions.h:347
Treat fixed variables as constants.
Definition: gamsoptions.h:334
EHoldFixedEnum
Treat fixed variables as constants.
Definition: gamsoptions.h:337
Switch default for "$on/offImplicitAssign".
Definition: gamsoptions.h:354
EImplicitAssignEnum
Switch default for "$on/offImplicitAssign".
Definition: gamsoptions.h:357
Set mode for default upper bounds on integer variables.
Definition: gamsoptions.h:374
EIntVarUpEnum
Set mode for default upper bounds on integer variables.
Definition: gamsoptions.h:377
Allow solver to interact via command line input.
Definition: gamsoptions.h:364
EInteractiveSolverEnum
Allow solver to interact via command line input.
Definition: gamsoptions.h:367
Controls keeping or deletion of process directory and scratch files.
Definition: gamsoptions.h:386
EKeepEnum
Controls keeping or deletion of process directory and scratch files.
Definition: gamsoptions.h:389
Switch default for "$on/offListing".
Definition: gamsoptions.h:396
EListingEnum
Switch default for "$on/offListing".
Definition: gamsoptions.h:399
Amount of line tracing to the log file.
Definition: gamsoptions.h:406
ELogLineEnum
Amount of line tracing to the log file.
Definition: gamsoptions.h:409
Write title of LST file all left aligned.
Definition: gamsoptions.h:417
ELstTitleLeftAlignedEnum
Write title of LST file all left aligned.
Definition: gamsoptions.h:420
Model Instance Mode.
Definition: gamsoptions.h:427
EMIIModeEnum
Model Instance Mode.
Definition: gamsoptions.h:430
Triggers a compilation error when new equations or variable symbols are introduced.
Definition: gamsoptions.h:438
ENoNewVarEquEnum
Triggers a compilation error when new equations or variable symbols are introduced.
Definition: gamsoptions.h:441
Generate errors for unknown unique element in an equation.
Definition: gamsoptions.h:448
EOn115Enum
Generate errors for unknown unique element in an equation.
Definition: gamsoptions.h:451
Output file page control option.
Definition: gamsoptions.h:458
EPageContrEnum
Output file page control option.
Definition: gamsoptions.h:461
Prepend GAMS system directory to library load path.
Definition: gamsoptions.h:470
EPrefixLoadPathEnum
Prepend GAMS system directory to library load path.
Definition: gamsoptions.h:473
Indicator for writing workfile with previous workfile version.
Definition: gamsoptions.h:480
EPreviousWorkEnum
Indicator for writing workfile with previous workfile version.
Definition: gamsoptions.h:483
Monitor the memory used by the GAMS process tree.
Definition: gamsoptions.h:490
EProcTreeMemMonitorEnum
Monitor the memory used by the GAMS process tree.
Definition: gamsoptions.h:493
Numeric round format for put files.
Definition: gamsoptions.h:500
EPutNREnum
Numeric round format for put files.
Definition: gamsoptions.h:503
GAMS/Python Multiple Instance Interpreter.
Definition: gamsoptions.h:513
EPyMultInstEnum
GAMS/Python Multiple Instance Interpreter.
Definition: gamsoptions.h:516
Controls the line numbers written to a reference file.
Definition: gamsoptions.h:523
EReferenceLineNoEnum
Controls the line numbers written to a reference file.
Definition: gamsoptions.h:526
Switch between merge and replace when reading from GDX into non-empty symbol.
Definition: gamsoptions.h:533
EReplaceEnum
Switch between merge and replace when reading from GDX into non-empty symbol.
Definition: gamsoptions.h:536
Save solver point in GDX file.
Definition: gamsoptions.h:543
ESavePointEnum
Save solver point in GDX file.
Definition: gamsoptions.h:546
Show the memory usage reported by the Operating System instead of the internal counting.
Definition: gamsoptions.h:556
EShowOSMemoryEnum
Show the memory usage reported by the Operating System instead of the internal counting.
Definition: gamsoptions.h:559
Solution report print option.
Definition: gamsoptions.h:567
ESolPrintEnum
Solution report print option.
Definition: gamsoptions.h:570
Multiple solve management.
Definition: gamsoptions.h:594
ESolveOptEnum
Multiple solve management.
Definition: gamsoptions.h:597
Summary of computing resources used by job steps.
Definition: gamsoptions.h:605
EStepSumEnum
Summary of computing resources used by job steps.
Definition: gamsoptions.h:608
String substitution options.
Definition: gamsoptions.h:625
EStringChkEnum
String substitution options.
Definition: gamsoptions.h:628
Switch default for "$on/offSuffixAlgebraVars".
Definition: gamsoptions.h:646
ESuffixAlgebraVarsEnum
Switch default for "$on/offSuffixAlgebraVars".
Definition: gamsoptions.h:649
Switch default for "$on/offSuffixDLVars".
Definition: gamsoptions.h:636
ESuffixDLVarsEnum
Switch default for "$on/offSuffixDLVars".
Definition: gamsoptions.h:639
Compiler listing option.
Definition: gamsoptions.h:656
ESuppressEnum
Compiler listing option.
Definition: gamsoptions.h:659
Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.
Definition: gamsoptions.h:666
ESys10Enum
Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.
Definition: gamsoptions.h:669
Dynamic resorting if indices in assignment/data statements are not in natural order.
Definition: gamsoptions.h:676
ESys11Enum
Dynamic resorting if indices in assignment/data statements are not in natural order.
Definition: gamsoptions.h:679
Solver Status file reporting option.
Definition: gamsoptions.h:687
ESysOutEnum
Solver Status file reporting option.
Definition: gamsoptions.h:690
Trace file format option.
Definition: gamsoptions.h:707
ETraceOptEnum
Trace file format option.
Definition: gamsoptions.h:710
Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.
Definition: gamsoptions.h:721
EZeroResRepEnum
Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.
Definition: gamsoptions.h:724
Compression of generated GDX file.
Definition: gamsoptions.h:303
EgdxCompressEnum
Compression of generated GDX file.
Definition: gamsoptions.h:306
Version of GDX files generated (for backward compatibility)
Definition: gamsoptions.h:313
EgdxConvertEnum
Version of GDX files generated (for backward compatibility)
Definition: gamsoptions.h:316
Unload labels or UELs to GDX either squeezed or full.
Definition: gamsoptions.h:324
EgdxUelsEnum
Unload labels or UELs to GDX either squeezed or full.
Definition: gamsoptions.h:327
Error if assignment to singleton set has multiple elements.
Definition: gamsoptions.h:615
EstrictSingletonEnum
Error if assignment to singleton set has multiple elements.
Definition: gamsoptions.h:618