Loading...
Searching...
No Matches
gamsoptions.h
1/*
2 *
3 * GAMS - General Algebraic Modeling System C++ API
4 *
5 * Copyright (c) 2017-2025 GAMS Development Corp. <support@gams.com>
6 * Copyright (c) 2017-2025 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 SplitBlocksDumpWithComments = 22
184 };
185 };
188 {
191 {
192 No = 0,
193 AcceptedParameters = 1,
194 FileOperationsAcceptedParameters = 2
195 };
196 };
199 {
202 {
203 OffECImplicitLoad = 0,
204 OnECImplicitLoad = 1
205 };
206 };
209 {
212 {
213 OffECLogLine = 0,
214 OnECLogLine = 1
215 };
216 };
218 struct EEmpty
219 {
222 {
223 OffEmpty = 0,
224 OnEmpty = 1
225 };
226 };
228 struct EErrMsg
229 {
232 {
233 EndOfCompilerListing = 0,
234 FollowingError = 1,
235 Suppress = 2
236 };
237 };
240 {
243 {
244 EverythingAllowed = 0,
245 InteractiveShellsProhibited = 1,
246 CallAndExecuteProhibited = 2,
247 EchoAndPutOnlyToWorkdir = 3,
248 EchoAndPutProhibited = 4
249 };
250 };
252 struct EFDOpt
253 {
256 {
257 GHAnalyticHNumericGradScale = 0,
258 GHAnalyticHNumericFuncScale = 1,
259 GAnalyticFHNumericGradScale = 2,
260 GAnalyticFHNumericFuncScale = 3,
261 FGHNumericScale = 4,
262 GHAnalyticHNumericGradNoScale = 10,
263 GHAnalyticHNumericFuncNoScale = 11,
264 GAnalyticFHNumericGradNoScale = 12,
265 GAnalyticFHNumericFuncNoScale = 13,
266 FGHNumericNoScale = 14
267 };
268 };
271 {
274 {
275 DefaultCase = 0,
276 UpperCase = 1,
277 LowerCase = 2,
278 UpperCaseFileOnly = 3,
279 LowerCaseFileOnly = 4
280 };
281 };
284 {
287 {
288 OffFiltered = 0,
289 OnFiltered = 1
290 };
291 };
294 {
297 {
298 NoTranslation = 0,
299 TryTranslation = 1
300 };
301 };
304 {
307 {
308 Off = 0,
309 On = 1
310 };
311 };
314 {
317 {
318 DoNotCompressGDX = 0,
319 CompressGDX = 1
320 };
321 };
324 {
327 {
328 Version5 = 0,
329 Version6 = 1,
330 Version7 = 2
331 };
332 };
334 struct EgdxUels
335 {
338 {
339 squeezed = 0,
340 full = 1
341 };
342 };
345 {
348 {
349 FixedVarsNotTreatedAsConstants = 0,
350 FixedVarsTreatedAsConstants = 1
351 };
352 };
355 {
358 {
359 Off = 0,
360 On = 1
361 };
362 };
365 {
368 {
369 OffImplicitAssign = 0,
370 OnImplicitAssign = 1
371 };
372 };
375 {
378 {
379 NoInteraction = 0,
380 AllowInteraction = 1
381 };
382 };
385 {
388 {
389 INF = 0,
390 Pass100ToSolver = 1,
391 INFandLog = 2,
392 Pass100ToSolverAndError = 3
393 };
394 };
396 struct EKeep
397 {
400 {
401 DeleteProcDir = 0,
402 KeepProcDir = 1
403 };
404 };
406 struct EListing
407 {
410 {
411 OffListing = 0,
412 OnListing = 1
413 };
414 };
416 struct ELogLine
417 {
420 {
421 NoTracing = 0,
422 MinimumTracing = 1,
423 Automatic = 2
424 };
425 };
428 {
431 {
432 Off = 0,
433 On = 1
434 };
435 };
438 {
441 {
442 Default = 0,
443 Experimental = 1
444 };
445 };
447 struct EMIIMode
448 {
451 {
452 Off = 0,
453 SingleMI = 1,
454 MultiMI = 2
455 };
456 };
459 {
462 {
463 AllowNewVarEqu = 0,
464 DoNotAllowNewVarEqu = 1
465 };
466 };
468 struct EOn115
469 {
472 {
473 NoMessages = 0,
474 IssueMessages = 1
475 };
476 };
479 {
482 {
483 NoPageContrWithPadding = 0,
484 FortranStyle = 1,
485 NoPageContrNoPadding = 2,
486 FormfeedCharNewPage = 3
487 };
488 };
491 {
494 {
495 Off = 0,
496 On = 1
497 };
498 };
501 {
504 {
505 Off = 0,
506 On = 1
507 };
508 };
511 {
514 {
515 Off = 0,
516 On = 1
517 };
518 };
520 struct EPutNR
521 {
524 {
525 ForE = 0,
526 Rounded = 1,
527 Scientific = 2,
528 RoundedFloatingDec = 3,
529 ForEFloatingDec = 4
530 };
531 };
534 {
537 {
538 ActualLineNumber = 0,
539 StatementStart = 1
540 };
541 };
543 struct EReplace
544 {
547 {
548 Merge = 0,
549 Replace = 1
550 };
551 };
554 {
557 {
558 NoPointFile = 0,
559 LastSolvePointFile = 1,
560 EverySolvePointFile = 2,
561 LastSolvePointFileScrDir = 3,
562 EverySolvePointFileScrDir = 4
563 };
564 };
567 {
570 {
571 InternalAccounting = 0,
572 RSS = 1,
573 VSS = 2
574 };
575 };
578 {
581 {
582 RemoveSolLstFollowingSolves = 0,
583 IncludeSolLstFollowingSolves = 1,
584 SuppressAllSolInfo = 2
585 };
586 };
589 {
592 {
593 ChainScript = 0,
594 CallScript = 1,
595 CallModule = 2,
596 AsyncGrid = 3,
597 AsyncSimulate = 4,
598 LoadLibrary = 5,
599 LoadLibraryAsync = 6,
600 LoadLibraryAsyncSimulate = 7
601 };
602 };
605 {
608 {
609 Merge = 0,
610 Replace = 1,
611 Clear = 2
612 };
613 };
615 struct EStepSum
616 {
619 {
620 NoStepSummmary = 0,
621 StepSummary = 1
622 };
623 };
626 {
629 {
630 FirstRecord = 0,
631 Error = 1
632 };
633 };
636 {
639 {
640 NoError = 0,
641 Error = 1,
642 NoErrorRemoveSymbol = 2
643 };
644 };
647 {
650 {
651 OffSuffixDLVars = 0,
652 OnSuffixDLVars = 1
653 };
654 };
657 {
660 {
661 OffSuffixAlgebraVars = 0,
662 OnSuffixAlgebraVars = 1
663 };
664 };
667 {
670 {
671 StandardCompilerListing = 0,
672 SuppressCompilerListing = 1
673 };
674 };
676 struct ESys10
677 {
680 {
681 Disable = 0,
682 Enable = 1
683 };
684 };
686 struct ESys11
687 {
690 {
691 AutomaticOptimization = 0,
692 NoOptimization = 1,
693 AlwaysOptimize = 2
694 };
695 };
697 struct ESysOut
698 {
701 {
702 SuppressAdditionalSolverOutput = 0,
703 IncludeAdditionalSolverOutput = 1
704 };
705 };
707 struct ETFormat
708 {
711 {
712 Colon = 0,
713 Dot = 1
714 };
715 };
718 {
721 {
722 SolverAndGAMSStepTraceWOHeaders = 0,
723 SolverAndGAMSStepTrace = 1,
724 SolverStepTraceOnly = 2,
725 TraceFileFormatGAMSPerformanceWorld = 3,
726 TraceFileFormatSupportingNLPEC = 4,
727 TraceFileWithAllAvailableTraceFields = 5
728 };
729 };
732 {
735 {
736 NoWarning = 0,
737 IssueWarning = 1
738 };
739 };
740
743
745 static const char* gamsBuild();
746
748 static const char* gamsVersion();
749
752 LogId logID();
753
755 void writeOptionFile(const std::string& optFileName);
756
758 void setAllModelTypes(const std::string& solver);
759
762
764 void addInputDir(const std::string value);
765
767 std::string getInputDir(const int index);
768
770 void setInputDir(const std::string value, const int index);
771
773 void removeInputDir(const int index);
774
776 void setDefine(const std::string &key, const std::string &value);
777
779 std::string getDefine(const std::string& key);
780
782 bool removeDefine(const std::string& key);
783
785 std::string gdx();
786
788 void setGdx(const std::string& value);
789
792
795
797 static EAction::EActionEnum eActionFromCode(const std::string &str);
798
801
804
807
810
813
816
819
822
824 double bratio();
825
827 void setBratio(const double value);
828
831
834
836 int lstCase();
837
839 void setLstCase(const int value);
840
842 int cErr();
843
845 void setCErr(const int value);
846
849
852
855
858
860 std::string decryptKey();
861
863 void setDecryptKey(const std::string& value);
864
867
870
873
876
878 static EDigit::EDigitEnum eDigitFromCode(const std::string &str);
879
882
885
887 int domLim();
888
890 void setDomLim(const int value);
891
894
897
899 std::string dumpOptGDX();
900
902 void setDumpOptGDX(const std::string& value);
903
906
909
911 std::string dumpParmsLogPrefix();
912
914 void setDumpParmsLogPrefix(const std::string& value);
915
918
921
924
927
930
933
936
938 static EECLogLine::EECLogLineEnum eECLogLineFromCode(const std::string &str);
939
942
945
948
951
953 static EEmpty::EEmptyEnum eEmptyFromCode(const std::string &str);
954
957
960
962 std::string encryptKey();
963
965 void setEncryptKey(const std::string& value);
966
968 std::string eolCom();
969
971 void setEolCom(const std::string& value);
972
975
978
980 int errorLog();
981
983 void setErrorLog(const int value);
984
986 double eTLim();
987
989 void setETLim(const double value);
990
993
996
998 std::string expand();
999
1001 void setExpand(const std::string& value);
1002
1004 double fDDelta();
1005
1007 void setFDDelta(const double value);
1008
1011
1014
1016 std::string fErr();
1017
1019 void setFErr(const std::string& value);
1020
1023
1026
1028 std::string fileStem();
1029
1031 void setFileStem(const std::string& value);
1032
1034 std::string fileStemApFromEnv();
1035
1037 void setFileStemApFromEnv(const std::string& value);
1038
1041
1044
1046 static EFiltered::EFilteredEnum eFilteredFromCode(const std::string &str);
1047
1050
1053
1056
1058 void setForceOptFile(const int value);
1059
1062
1065
1067 int forLim();
1068
1070 void setForLim(const int value);
1071
1074
1077
1080
1083
1086
1089
1092
1095
1098
1101
1104
1106 static EgdxUels::EgdxUelsEnum egdxUelsFromCode(const std::string &str);
1107
1110
1113
1115 std::string gridDir();
1116
1118 void setGridDir(const std::string& value);
1119
1121 std::string gridScript();
1122
1124 void setGridScript(const std::string& value);
1125
1127 double heapLimit();
1128
1130 void setHeapLimit(const double value);
1131
1134
1137
1140
1143
1145 std::string iDCGDXInput();
1146
1148 void setIDCGDXInput(const std::string& value);
1149
1151 std::string iDCGDXOutput();
1152
1154 void setIDCGDXOutput(const std::string& value);
1155
1158
1161
1164
1167
1170
1172 std::string inlineCom();
1173
1175 void setInlineCom(const std::string& value);
1176
1179
1181 void setInteger1(const int value);
1182
1185
1187 void setInteger2(const int value);
1188
1191
1193 void setInteger3(const int value);
1194
1197
1199 void setInteger4(const int value);
1200
1203
1205 void setInteger5(const int value);
1206
1209
1212
1215
1218
1220 int iterLim();
1221
1223 void setIterLim(const int value);
1224
1226 std::string jobTrace();
1227
1229 void setJobTrace(const std::string& value);
1230
1233
1236
1238 std::string libIncDir();
1239
1241 void setLibIncDir(const std::string& value);
1242
1244 std::string license();
1245
1247 void setLicense(const std::string& value);
1248
1250 int limCol();
1251
1253 void setLimCol(const int value);
1254
1256 int limRow();
1257
1259 void setLimRow(const int value);
1260
1263
1266
1268 static EListing::EListingEnum eListingFromCode(const std::string &str);
1269
1272
1275
1278
1281
1284
1287
1290
1292 void setMaxExecError(const int value);
1293
1296
1298 void setMaxProcDir(const int value);
1299
1302
1305
1308
1311
1313 static EMIIMode::EMIIModeEnum eMIIModeFromCode(const std::string &str);
1314
1317
1320
1322 std::string multi();
1323
1325 void setMulti(const std::string& value);
1326
1328 int nodLim();
1329
1331 void setNodLim(const int value);
1332
1335
1338
1341
1344
1346 double optCA();
1347
1349 void setOptCA(const double value);
1350
1352 double optCR();
1353
1355 void setOptCR(const double value);
1356
1358 std::string optDir();
1359
1361 void setOptDir(const std::string& value);
1362
1364 int optFile();
1365
1367 void setOptFile(const int value);
1368
1370 std::string output();
1371
1373 void setOutput(const std::string& value);
1374
1377
1380
1383
1385 void setPageSize(const int value);
1386
1389
1391 void setPageWidth(const int value);
1392
1394 std::string pLicense();
1395
1397 void setPLicense(const std::string& value);
1398
1401
1404
1407
1410
1413
1416
1419
1421 void setProcTreeMemTicks(const int value);
1422
1424 int profile();
1425
1427 void setProfile(const int value);
1428
1430 std::string profileFile();
1431
1433 void setProfileFile(const std::string& value);
1434
1436 double profileTol();
1437
1439 void setProfileTol(const double value);
1440
1442 std::string putDir();
1443
1445 void setPutDir(const std::string& value);
1446
1448 int putND();
1449
1451 void setPutND(const int value);
1452
1455
1458
1460 int putPS();
1461
1463 void setPutPS(const int value);
1464
1466 int putPW();
1467
1469 void setPutPW(const int value);
1470
1472 std::string reference();
1473
1475 void setReference(const std::string& value);
1476
1479
1482
1485
1488
1491
1494
1497
1499 static EReplace::EReplaceEnum eReplaceFromCode(const std::string &str);
1500
1503
1506
1508 double resLim();
1509
1511 void setResLim(const double value);
1512
1515
1518
1520 std::string scriptExit();
1521
1523 void setScriptExit(const std::string& value);
1524
1526 int seed();
1527
1529 void setSeed(const int value);
1530
1533
1536
1539
1542
1545
1548
1551
1554
1557
1560
1563
1566
1569
1572
1575
1578
1581
1584
1587
1590
1593
1596
1599
1602
1605
1608
1610 std::string symbol();
1611
1613 void setSymbol(const std::string& value);
1614
1616 std::string symPrefix();
1617
1619 void setSymPrefix(const std::string& value);
1620
1623
1626
1629
1632
1634 int sys12();
1635
1637 void setSys12(const int value);
1638
1640 std::string sysIncDir();
1641
1643 void setSysIncDir(const std::string& value);
1644
1647
1650
1652 int tabIn();
1653
1655 void setTabIn(const int value);
1656
1659
1662
1664 int threads();
1665
1667 void setThreads(const int value);
1668
1671
1673 void setThreadsAsync(const int value);
1674
1676 int timer();
1677
1679 void setTimer(const int value);
1680
1682 std::string trace();
1683
1685 void setTrace(const std::string& value);
1686
1689
1691 void setTraceLevel(const int value);
1692
1695
1698
1700 std::string user1();
1701
1703 void setUser1(const std::string& value);
1704
1706 std::string user2();
1707
1709 void setUser2(const std::string& value);
1710
1712 std::string user3();
1713
1715 void setUser3(const std::string& value);
1716
1718 std::string user4();
1719
1721 void setUser4(const std::string& value);
1722
1724 std::string user5();
1725
1727 void setUser5(const std::string& value);
1728
1731
1733 void setWarnings(const int value);
1734
1736 double workFactor();
1737
1739 void setWorkFactor(const double value);
1740
1742 double workSpace();
1743
1745 void setWorkSpace(const double value);
1746
1748 double zeroRes();
1749
1751 void setZeroRes(const double value);
1752
1755
1758
1760 std::string LP();
1761
1763 void setLP(const std::string& value);
1764
1766 std::string MIP();
1767
1769 void setMIP(const std::string& value);
1770
1772 std::string RMIP();
1773
1775 void setRMIP(const std::string& value);
1776
1778 std::string NLP();
1779
1781 void setNLP(const std::string& value);
1782
1784 std::string MCP();
1785
1787 void setMCP(const std::string& value);
1788
1790 std::string MPEC();
1791
1793 void setMPEC(const std::string& value);
1794
1796 std::string RMPEC();
1797
1799 void setRMPEC(const std::string& value);
1800
1802 std::string CNS();
1803
1805 void setCNS(const std::string& value);
1806
1808 std::string DNLP();
1809
1811 void setDNLP(const std::string& value);
1812
1814 std::string RMINLP();
1815
1817 void setRMINLP(const std::string& value);
1818
1820 std::string MINLP();
1821
1823 void setMINLP(const std::string& value);
1824
1826 std::string QCP();
1827
1829 void setQCP(const std::string& value);
1830
1832 std::string MIQCP();
1833
1835 void setMIQCP(const std::string& value);
1836
1838 std::string RMIQCP();
1839
1841 void setRMIQCP(const std::string& value);
1842
1844 std::string EMP();
1845
1847 void setEMP(const std::string& value);
1848
1850 std::string getSolver(const std::string& modelType);
1851
1853 void setSolver(const std::string& modelType, const std::string& solver);
1854
1855private:
1856 std::shared_ptr<GAMSOptionsImpl> mImpl;
1857 GAMSOptions(GAMSWorkspace workspace, const GAMSOptions* optFrom);
1858 GAMSOptions(GAMSWorkspace workspace, const std::string& optFile = "");
1859 int appendLog();
1860 void setAppendLog(const int value);
1861 int compilerPreview();
1862 void setCompilerPreview(const int value);
1863 std::string connectIn();
1864 void setConnectIn(const std::string& value);
1865 std::string connectOut();
1866 void setConnectOut(const std::string& value);
1867 std::string curDir();
1868 void setCurDir(const std::string& value);
1869 int debugPort();
1870 void setDebugPort(const int value);
1871 std::string docFile();
1872 void setDocFile(const std::string& value);
1873 std::string epsToZero();
1874 void setEpsToZero(const std::string& value);
1875 std::string errNam();
1876 void setErrNam(const std::string& value);
1877 int fSave();
1878 void setFSave(const int value);
1879 int g205();
1880 void setG205(const int value);
1881 std::string gdxSymbols();
1882 void setgdxSymbols(const std::string& value);
1883 std::string gP_SolveLine();
1884 void setGP_SolveLine(const std::string& value);
1885 std::string iDCGenerateGDX();
1886 void setIDCGenerateGDX(const std::string& value);
1887 std::string iDCGenerateGDXInput();
1888 void setIDCGenerateGDXInput(const std::string& value);
1889 std::string iDCGenerateGDXOutput();
1890 void setIDCGenerateGDXOutput(const std::string& value);
1891 std::string iDCGenerateJSON();
1892 void setIDCGenerateJSON(const std::string& value);
1893 std::string iDCJSON();
1894 void setIDCJSON(const std::string& value);
1895 int iDCProtect();
1896 void setIDCProtect(const int value);
1897 int iDE();
1898 void setIDE(const int value);
1899 int incrementalMode();
1900 void setIncrementalMode(const int value);
1901 std::string input();
1902 void setInput(const std::string& value);
1903 std::string logFile();
1904 void setLogFile(const std::string& value);
1905 int logOption();
1906 void setLogOption(const int value);
1907 int maxGenericFiles();
1908 void setMaxGenericFiles(const int value);
1909 int mCPRHoldfx();
1910 void setMCPRHoldfx(const int value);
1911 int multiPass();
1912 void setMultiPass(const int value);
1913 std::string netLicense();
1914 void setNetLicense(const std::string& value);
1915 int noCr();
1916 void setNoCr(const int value);
1917 int opt();
1918 void setOpt(const int value);
1919 int pID2Error();
1920 void setPID2Error(const int value);
1921 std::string procDir();
1922 void setProcDir(const std::string& value);
1923 std::string procDirPath();
1924 void setProcDirPath(const std::string& value);
1925 int comPort();
1926 void setComPort(const int value);
1927 int relPath();
1928 void setRelPath(const int value);
1929 std::string restart();
1930 void setRestart(const std::string& value);
1931 std::string restartNamed();
1932 void setRestartNamed(const std::string& value);
1933 std::string save();
1934 void setSave(const std::string& value);
1935 std::string saveObfuscate();
1936 void setSaveObfuscate(const std::string& value);
1937 std::string scrDir();
1938 void setScrDir(const std::string& value);
1939 std::string scrExt();
1940 void setScrExt(const std::string& value);
1941 std::string scriptFrst();
1942 void setScriptFrst(const std::string& value);
1943 std::string scriptNext();
1944 void setScriptNext(const std::string& value);
1945 std::string scrNam();
1946 void setScrNam(const std::string& value);
1947 int serverRun();
1948 void setServerRun(const int value);
1949 std::string solver();
1950 void setSolver(const std::string& value);
1951 std::string solverCntr();
1952 void setSolverCntr(const std::string& value);
1953 std::string solverDict();
1954 void setSolverDict(const std::string& value);
1955 std::string solverInst();
1956 void setSolverInst(const std::string& value);
1957 std::string solverMatr();
1958 void setSolverMatr(const std::string& value);
1959 std::string solverSolu();
1960 void setSolverSolu(const std::string& value);
1961 std::string solverStat();
1962 void setSolverStat(const std::string& value);
1963 std::string sparseRun();
1964 void setSparseRun(const std::string& value);
1965 std::string sqaCmex();
1966 void setSqaCmex(const std::string& value);
1967 std::string subSys();
1968 void setSubSys(const std::string& value);
1969 int sys14();
1970 void setSys14(const int value);
1971 int sys15();
1972 void setSys15(const int value);
1973 int sys16();
1974 void setSys16(const int value);
1975 int sys17();
1976 void setSys17(const int value);
1977 int sys18();
1978 void setSys18(const int value);
1979 int sys19();
1980 void setSys19(const int value);
1981 std::string sysDir();
1982 void setSysDir(const std::string& value);
1983 std::string workDir();
1984 void setWorkDir(const std::string& value);
1985 int writeOutput();
1986 void setwriteOutput(const int value);
1987 std::string xSave();
1988 void setXSave(const std::string& value);
1989 std::string xSaveObfuscate();
1990 void setXSaveObfuscate(const std::string& value);
1991
1992};
1993}
1994#endif // GAMSOPTIONS_H
1995
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::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.
void setECLogLine(const GAMSOptions::EECLogLine::EECLogLineEnum value)
Set Show log line about embedded code initialization and execution or not.
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 processors 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.
GAMSOptions::EMemoryManager::EMemoryManagerEnum memoryManager()
Get Allows to try an experimental memory manager.
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 milliseconds.
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 milliseconds.
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.
static std::string eECLogLineText(GAMSOptions::EECLogLine::EECLogLineEnum type)
Get Show log line about embedded code initialization and execution or not as text.
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.
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 processors 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 setMemoryManager(const GAMSOptions::EMemoryManager::EMemoryManagerEnum value)
Set Allows to try an experimental memory manager.
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]".
static std::string eECLogLineCode(GAMSOptions::EECLogLine::EECLogLineEnum type)
Get Show log line about embedded code initialization and execution or not as code.
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".
GAMSOptions::EECLogLine::EECLogLineEnum eCLogLine()
Get Show log line about embedded code initialization and execution or not.
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.
static EECLogLine::EECLogLineEnum eECLogLineFromCode(const std::string &str)
Get Show log line about embedded code initialization and execution or not from std::string
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.
Switch to capture all model instances within a run.
ECaptureModelInstanceEnum
Switch to capture all model instances within a run.
Output case option for LST file.
ECaseEnum
Output case option for LST file.
Character set flag.
ECharSetEnum
Character set flag.
Check errorLevel automatically after executing external program.
ECheckErrorLevelEnum
Check errorLevel automatically after executing external program.
Switch default for "$on/offDigit".
EDigitEnum
Switch default for "$on/offDigit".
Writes preprocessed input to the file input.dmp.
EDumpOptEnum
Writes preprocessed input to the file input.dmp.
GAMS parameter logging.
EDumpParmsEnum
GAMS parameter logging.
Allow implicit loading of symbols from embedded code or not.
EECImplicitLoadEnum
Allow implicit loading of symbols from embedded code or not.
Show log line about embedded code initialization and execution or not.
EECLogLineEnum
Show log line about embedded code initialization and execution or not.
Switch default for "$on/offEmpty".
EEmptyEnum
Switch default for "$on/offEmpty".
Placing of compilation error messages.
EErrMsgEnum
Placing of compilation error messages.
Limits on external programs that are allowed to be executed.
EExecModeEnum
Limits on external programs that are allowed to be executed.
Options for finite differences.
EFDOptEnum
Options for finite differences.
Casing of file names and paths (put, gdx, ref, $include, etc.)
EFileCaseEnum
Casing of file names and paths (put, gdx, ref, $include, etc.)
Switch between filtered and domain-checked read from GDX.
EFilteredEnum
Switch between filtered and domain-checked read from GDX.
Force GAMS to process a save file created with a newer GAMS version or with execution errors.
EForceWorkEnum
Force GAMS to process a save file created with a newer GAMS version or with execution errors.
Free external resources at the end of each embedded Python code blocks.
EFreeEmbeddedPythonEnum
Free external resources at the end of each embedded Python code blocks.
Allow HoldFixed for models solved asynchronously as well.
EHoldFixedAsyncEnum
Allow HoldFixed for models solved asynchronously as well.
Treat fixed variables as constants.
EHoldFixedEnum
Treat fixed variables as constants.
Switch default for "$on/offImplicitAssign".
EImplicitAssignEnum
Switch default for "$on/offImplicitAssign".
Set mode for default upper bounds on integer variables.
EIntVarUpEnum
Set mode for default upper bounds on integer variables.
Allow solver to interact via command line input.
EInteractiveSolverEnum
Allow solver to interact via command line input.
Controls keeping or deletion of process directory and scratch files.
EKeepEnum
Controls keeping or deletion of process directory and scratch files.
Switch default for "$on/offListing".
EListingEnum
Switch default for "$on/offListing".
Amount of line tracing to the log file.
ELogLineEnum
Amount of line tracing to the log file.
Write title of LST file all left aligned.
ELstTitleLeftAlignedEnum
Write title of LST file all left aligned.
Model Instance Mode.
EMIIModeEnum
Model Instance Mode.
Allows to try an experimental memory manager.
EMemoryManagerEnum
Allows to try an experimental memory manager.
Triggers a compilation error when new equations or variable symbols are introduced.
ENoNewVarEquEnum
Triggers a compilation error when new equations or variable symbols are introduced.
Generate errors for unknown unique element in an equation.
EOn115Enum
Generate errors for unknown unique element in an equation.
Output file page control option.
EPageContrEnum
Output file page control option.
Prepend GAMS system directory to library load path.
EPrefixLoadPathEnum
Prepend GAMS system directory to library load path.
Indicator for writing workfile with previous workfile version.
EPreviousWorkEnum
Indicator for writing workfile with previous workfile version.
Monitor the memory used by the GAMS process tree.
EProcTreeMemMonitorEnum
Monitor the memory used by the GAMS process tree.
Numeric round format for put files.
EPutNREnum
Numeric round format for put files.
Controls the line numbers written to a reference file.
EReferenceLineNoEnum
Controls the line numbers written to a reference file.
Switch between merge and replace when reading from GDX into non-empty symbol.
EReplaceEnum
Switch between merge and replace when reading from GDX into non-empty symbol.
Save solver point in GDX file.
ESavePointEnum
Save solver point in GDX file.
Show the memory usage reported by the Operating System instead of the internal counting.
EShowOSMemoryEnum
Show the memory usage reported by the Operating System instead of the internal counting.
Solution report print option.
ESolPrintEnum
Solution report print option.
Multiple solve management.
ESolveOptEnum
Multiple solve management.
Summary of computing resources used by job steps.
EStepSumEnum
Summary of computing resources used by job steps.
String substitution options.
EStringChkEnum
String substitution options.
Switch default for "$on/offSuffixAlgebraVars".
ESuffixAlgebraVarsEnum
Switch default for "$on/offSuffixAlgebraVars".
Switch default for "$on/offSuffixDLVars".
ESuffixDLVarsEnum
Switch default for "$on/offSuffixDLVars".
Compiler listing option.
ESuppressEnum
Compiler listing option.
Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.
ESys10Enum
Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.
Dynamic resorting if indices in assignment/data statements are not in natural order.
ESys11Enum
Dynamic resorting if indices in assignment/data statements are not in natural order.
Solver Status file reporting option.
ESysOutEnum
Solver Status file reporting option.
Trace file format option.
ETraceOptEnum
Trace file format option.
Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.
EZeroResRepEnum
Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.
Compression of generated GDX file.
EgdxCompressEnum
Compression of generated GDX file.
Version of GDX files generated (for backward compatibility)
EgdxConvertEnum
Version of GDX files generated (for backward compatibility)
Unload labels or UELs to GDX either squeezed or full.
EgdxUelsEnum
Unload labels or UELs to GDX either squeezed or full.
Error if assignment to singleton set has multiple elements.
EstrictSingletonEnum
Error if assignment to singleton set has multiple elements.