Loading...
Searching...
No Matches

#include <gamsoptions.h>

Classes

struct  EAction
 GAMS processing request. More...
 
struct  EAppendExpand
 Expand file append option. More...
 
struct  EAppendOut
 Output file append option. More...
 
struct  EAsyncSolLst
 Print solution listing when asynchronous solve (Grid or Threads) is used. More...
 
struct  ECaptureModelInstance
 Switch to capture all model instances within a run. More...
 
struct  ECase
 Output case option for LST file. More...
 
struct  ECharSet
 Character set flag. More...
 
struct  ECheckErrorLevel
 Check errorLevel automatically after executing external program. More...
 
struct  EDFormat
 Date format. More...
 
struct  EDigit
 Switch default for "$on/offDigit". More...
 
struct  EDumpOpt
 Writes preprocessed input to the file input.dmp. More...
 
struct  EDumpParms
 GAMS parameter logging. More...
 
struct  EECImplicitLoad
 Allow implicit loading of symbols from embedded code or not. More...
 
struct  EEmpty
 Switch default for "$on/offEmpty". More...
 
struct  EErrMsg
 Placing of compilation error messages. More...
 
struct  EExecMode
 Limits on external programs that are allowed to be executed. More...
 
struct  EFDOpt
 Options for finite differences. More...
 
struct  EFileCase
 Casing of file names and paths (put, gdx, ref, $include, etc.) More...
 
struct  EFiltered
 Switch between filtered and domain-checked read from GDX. More...
 
struct  EForceWork
 Force GAMS to process a save file created with a newer GAMS version or with execution errors. More...
 
struct  EFreeEmbeddedPython
 Free external resources at the end of each embedded Python code blocks. More...
 
struct  EgdxCompress
 Compression of generated GDX file. More...
 
struct  EgdxConvert
 Version of GDX files generated (for backward compatibility) More...
 
struct  EgdxUels
 Unload labels or UELs to GDX either squeezed or full. More...
 
struct  EHoldFixed
 Treat fixed variables as constants. More...
 
struct  EHoldFixedAsync
 Allow HoldFixed for models solved asynchronously as well. More...
 
struct  EImplicitAssign
 Switch default for "$on/offImplicitAssign". More...
 
struct  EInteractiveSolver
 Allow solver to interact via command line input. More...
 
struct  EIntVarUp
 Set mode for default upper bounds on integer variables. More...
 
struct  EKeep
 Controls keeping or deletion of process directory and scratch files. More...
 
struct  EListing
 Switch default for "$on/offListing". More...
 
struct  ELogLine
 Amount of line tracing to the log file. More...
 
struct  ELstTitleLeftAligned
 Write title of LST file all left aligned. More...
 
struct  EMIIMode
 Model Instance Mode. More...
 
struct  ENoNewVarEqu
 Triggers a compilation error when new equations or variable symbols are introduced. More...
 
struct  EOn115
 Generate errors for unknown unique element in an equation. More...
 
struct  EPageContr
 Output file page control option. More...
 
struct  EPrefixLoadPath
 Prepend GAMS system directory to library load path. More...
 
struct  EPreviousWork
 Indicator for writing workfile with previous workfile version. More...
 
struct  EProcTreeMemMonitor
 Monitor the memory used by the GAMS process tree. More...
 
struct  EPutNR
 Numeric round format for put files. More...
 
struct  EReferenceLineNo
 Controls the line numbers written to a reference file. More...
 
struct  EReplace
 Switch between merge and replace when reading from GDX into non-empty symbol. More...
 
struct  ESavePoint
 Save solver point in GDX file. More...
 
struct  EShowOSMemory
 Show the memory usage reported by the Operating System instead of the internal counting. More...
 
struct  ESolPrint
 Solution report print option. More...
 
struct  ESolveLink
 Solver link option. More...
 
struct  ESolveOpt
 Multiple solve management. More...
 
struct  EStepSum
 Summary of computing resources used by job steps. More...
 
struct  EstrictSingleton
 Error if assignment to singleton set has multiple elements. More...
 
struct  EStringChk
 String substitution options. More...
 
struct  ESuffixAlgebraVars
 Switch default for "$on/offSuffixAlgebraVars". More...
 
struct  ESuffixDLVars
 Switch default for "$on/offSuffixDLVars". More...
 
struct  ESuppress
 Compiler listing option. More...
 
struct  ESys10
 Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer. More...
 
struct  ESys11
 Dynamic resorting if indices in assignment/data statements are not in natural order. More...
 
struct  ESysOut
 Solver Status file reporting option. More...
 
struct  ETFormat
 Time format. More...
 
struct  ETraceOpt
 Trace file format option. More...
 
struct  EZeroResRep
 Report underflow as a warning when abs(results) LE ZeroRes and result set to zero. More...
 

Public Member Functions

 ~GAMSOptions ()
 Destructor.
 
LogId logID ()
 
void writeOptionFile (const std::string &optFileName)
 Export options to an option file.
 
void setAllModelTypes (const std::string &solver)
 Set the solver for all model types the solver can handle.
 
int inputDirSize ()
 Get the size of the inputdir list.
 
void addInputDir (const std::string value)
 Add new inputdir at the end of the inputdir list.
 
std::string getInputDir (const int index)
 Get an inputdir at position index of the inputdir list.
 
void setInputDir (const std::string value, const int index)
 Replace inputdir at the specified index of the inputdir list.
 
void removeInputDir (const int index)
 Remove an inputdir at position index of the inputdir list.
 
void setDefine (const std::string &key, const std::string &value)
 Set double-dash –key=value option pair.
 
std::string getDefine (const std::string &key)
 Get value of previously set double-dash –key-value option pair.
 
bool removeDefine (const std::string &key)
 Remove a double-dash option.
 
std::string gdx ()
 Get GDX file name.
 
void setGdx (const std::string &value)
 Set GDX file name.
 
GAMSOptions::EAction::EActionEnum action ()
 Get GAMS processing request.
 
void setAction (const GAMSOptions::EAction::EActionEnum value)
 Set GAMS processing request.
 
GAMSOptions::EAppendExpand::EAppendExpandEnum appendExpand ()
 Get Expand file append option.
 
void setAppendExpand (const GAMSOptions::EAppendExpand::EAppendExpandEnum value)
 Set Expand file append option.
 
GAMSOptions::EAppendOut::EAppendOutEnum appendOut ()
 Get Output file append option.
 
void setAppendOut (const GAMSOptions::EAppendOut::EAppendOutEnum value)
 Set Output file append option.
 
GAMSOptions::EAsyncSolLst::EAsyncSolLstEnum asyncSolLst ()
 Get Print solution listing when asynchronous solve (Grid or Threads) is used.
 
void setAsyncSolLst (const GAMSOptions::EAsyncSolLst::EAsyncSolLstEnum value)
 Set Print solution listing when asynchronous solve (Grid or Threads) is used.
 
double bratio ()
 Get Basis detection threshold.
 
void setBratio (const double value)
 Set Basis detection threshold.
 
GAMSOptions::ECaptureModelInstance::ECaptureModelInstanceEnum captureModelInstance ()
 Get Switch to capture all model instances within a run.
 
void setCaptureModelInstance (const GAMSOptions::ECaptureModelInstance::ECaptureModelInstanceEnum value)
 Set Switch to capture all model instances within a run.
 
int lstCase ()
 Get Output case option for LST file.
 
void setLstCase (const int value)
 Set Output case option for LST file.
 
int cErr ()
 Get Compile time error limit.
 
void setCErr (const int value)
 Set Compile time error limit.
 
GAMSOptions::ECharSet::ECharSetEnum charSet ()
 Get Character set flag.
 
void setCharSet (const GAMSOptions::ECharSet::ECharSetEnum value)
 Set Character set flag.
 
GAMSOptions::ECheckErrorLevel::ECheckErrorLevelEnum checkErrorLevel ()
 Get Check errorLevel automatically after executing external program.
 
void setCheckErrorLevel (const GAMSOptions::ECheckErrorLevel::ECheckErrorLevelEnum value)
 Set Check errorLevel automatically after executing external program.
 
std::string decryptKey ()
 Get Key to decrypt a text file that was encrypted via $encrypt.
 
void setDecryptKey (const std::string &value)
 Set Key to decrypt a text file that was encrypted via $encrypt.
 
GAMSOptions::EDFormat::EDFormatEnum dFormat ()
 Get Date format.
 
void setDFormat (const GAMSOptions::EDFormat::EDFormatEnum value)
 Set Date format.
 
GAMSOptions::EDigit::EDigitEnum digit ()
 Get Switch default for "$on/offDigit".
 
void setDigit (const GAMSOptions::EDigit::EDigitEnum value)
 Set Switch default for "$on/offDigit".
 
int domLim ()
 Get Domain violation limit solver default.
 
void setDomLim (const int value)
 Set Domain violation limit solver default.
 
GAMSOptions::EDumpOpt::EDumpOptEnum dumpOpt ()
 Get Writes preprocessed input to the file input.dmp.
 
void setDumpOpt (const GAMSOptions::EDumpOpt::EDumpOptEnum value)
 Set Writes preprocessed input to the file input.dmp.
 
std::string dumpOptGDX ()
 Get Defines a GDX file name stem created when using DumpOpt.
 
void setDumpOptGDX (const std::string &value)
 Set Defines a GDX file name stem created when using DumpOpt.
 
GAMSOptions::EDumpParms::EDumpParmsEnum dumpParms ()
 Get GAMS parameter logging.
 
void setDumpParms (const GAMSOptions::EDumpParms::EDumpParmsEnum value)
 Set GAMS parameter logging.
 
std::string dumpParmsLogPrefix ()
 Get Prefix of lines triggered by DumpParms>1.
 
void setDumpParmsLogPrefix (const std::string &value)
 Set Prefix of lines triggered by DumpParms>1.
 
GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum eCImplicitLoad ()
 Get Allow implicit loading of symbols from embedded code or not.
 
void setECImplicitLoad (const GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum value)
 Set Allow implicit loading of symbols from embedded code or not.
 
GAMSOptions::EEmpty::EEmptyEnum empty ()
 Get Switch default for "$on/offEmpty".
 
void setEmpty (const GAMSOptions::EEmpty::EEmptyEnum value)
 Set Switch default for "$on/offEmpty".
 
std::string encryptKey ()
 Get Key to encrypt a text file using $encrypt.
 
void setEncryptKey (const std::string &value)
 Set Key to encrypt a text file using $encrypt.
 
std::string eolCom ()
 Get Switch default for "$on/offEolCom" and "$eolCom".
 
void setEolCom (const std::string &value)
 Set Switch default for "$on/offEolCom" and "$eolCom".
 
GAMSOptions::EErrMsg::EErrMsgEnum errMsg ()
 Get Placing of compilation error messages.
 
void setErrMsg (const GAMSOptions::EErrMsg::EErrMsgEnum value)
 Set Placing of compilation error messages.
 
int errorLog ()
 Get Max error message lines written to the log for each error.
 
void setErrorLog (const int value)
 Set Max error message lines written to the log for each error.
 
double eTLim ()
 Get Elapsed time limit in seconds.
 
void setETLim (const double value)
 Set Elapsed time limit in seconds.
 
GAMSOptions::EExecMode::EExecModeEnum execMode ()
 Get Limits on external programs that are allowed to be executed.
 
void setExecMode (const GAMSOptions::EExecMode::EExecModeEnum value)
 Set Limits on external programs that are allowed to be executed.
 
std::string expand ()
 Get Expanded (include) input file name.
 
void setExpand (const std::string &value)
 Set Expanded (include) input file name.
 
double fDDelta ()
 Get Step size for finite differences.
 
void setFDDelta (const double value)
 Set Step size for finite differences.
 
GAMSOptions::EFDOpt::EFDOptEnum fDOpt ()
 Get Options for finite differences.
 
void setFDOpt (const GAMSOptions::EFDOpt::EFDOptEnum value)
 Set Options for finite differences.
 
std::string fErr ()
 Get Alternative error message file.
 
void setFErr (const std::string &value)
 Set Alternative error message file.
 
GAMSOptions::EFileCase::EFileCaseEnum fileCase ()
 Get Casing of file names and paths (put, gdx, ref, $include, etc.)
 
void setFileCase (const GAMSOptions::EFileCase::EFileCaseEnum value)
 Set Casing of file names and paths (put, gdx, ref, $include, etc.)
 
std::string fileStem ()
 Get Sets the file stem for output files which use the input file name as stem by default.
 
void setFileStem (const std::string &value)
 Set Sets the file stem for output files which use the input file name as stem by default.
 
std::string fileStemApFromEnv ()
 Get Append a string read from an environment variable to the "FileStem".
 
void setFileStemApFromEnv (const std::string &value)
 Set Append a string read from an environment variable to the "FileStem".
 
GAMSOptions::EFiltered::EFilteredEnum filtered ()
 Get Switch between filtered and domain-checked read from GDX.
 
void setFiltered (const GAMSOptions::EFiltered::EFilteredEnum value)
 Set Switch between filtered and domain-checked read from GDX.
 
int forceOptFile ()
 Get Overwrites other option file section mechanism.
 
void setForceOptFile (const int value)
 Set Overwrites other option file section mechanism.
 
GAMSOptions::EForceWork::EForceWorkEnum forceWork ()
 Get Force GAMS to process a save file created with a newer GAMS version or with execution errors.
 
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.
 
int forLim ()
 Get GAMS looping limit.
 
void setForLim (const int value)
 Set GAMS looping limit.
 
GAMSOptions::EFreeEmbeddedPython::EFreeEmbeddedPythonEnum freeEmbeddedPython ()
 Get Free external resources at the end of each embedded Python code blocks.
 
void setFreeEmbeddedPython (const GAMSOptions::EFreeEmbeddedPython::EFreeEmbeddedPythonEnum value)
 Set Free external resources at the end of each embedded Python code blocks.
 
GAMSOptions::EgdxCompress::EgdxCompressEnum gdxCompress ()
 Get Compression of generated GDX file.
 
void setgdxCompress (const GAMSOptions::EgdxCompress::EgdxCompressEnum value)
 Set Compression of generated GDX file.
 
GAMSOptions::EgdxConvert::EgdxConvertEnum gdxConvert ()
 Get Version of GDX files generated (for backward compatibility)
 
void setgdxConvert (const GAMSOptions::EgdxConvert::EgdxConvertEnum value)
 Set Version of GDX files generated (for backward compatibility)
 
GAMSOptions::EgdxUels::EgdxUelsEnum gdxUels ()
 Get Unload labels or UELs to GDX either squeezed or full.
 
void setgdxUels (const GAMSOptions::EgdxUels::EgdxUelsEnum value)
 Set Unload labels or UELs to GDX either squeezed or full.
 
std::string gridDir ()
 Get Grid file directory.
 
void setGridDir (const std::string &value)
 Set Grid file directory.
 
std::string gridScript ()
 Get Grid submission script.
 
void setGridScript (const std::string &value)
 Set Grid submission script.
 
double heapLimit ()
 Get Maximum Heap size allowed in MB.
 
void setHeapLimit (const double value)
 Set Maximum Heap size allowed in MB.
 
GAMSOptions::EHoldFixed::EHoldFixedEnum holdFixed ()
 Get Treat fixed variables as constants.
 
void setHoldFixed (const GAMSOptions::EHoldFixed::EHoldFixedEnum value)
 Set Treat fixed variables as constants.
 
GAMSOptions::EHoldFixedAsync::EHoldFixedAsyncEnum holdFixedAsync ()
 Get Allow HoldFixed for models solved asynchronously as well.
 
void setHoldFixedAsync (const GAMSOptions::EHoldFixedAsync::EHoldFixedAsyncEnum value)
 Set Allow HoldFixed for models solved asynchronously as well.
 
std::string iDCGDXInput ()
 Get GDX file name with data for implicit input.
 
void setIDCGDXInput (const std::string &value)
 Set GDX file name with data for implicit input.
 
std::string iDCGDXOutput ()
 Get GDX file name for data for implicit output.
 
void setIDCGDXOutput (const std::string &value)
 Set GDX file name for data for implicit output.
 
GAMSOptions::EImplicitAssign::EImplicitAssignEnum implicitAssign ()
 Get Switch default for "$on/offImplicitAssign".
 
void setImplicitAssign (const GAMSOptions::EImplicitAssign::EImplicitAssignEnum value)
 Set Switch default for "$on/offImplicitAssign".
 
std::string inlineCom ()
 Get Switch default for "$on/offInline" and "$inlineCom".
 
void setInlineCom (const std::string &value)
 Set Switch default for "$on/offInline" and "$inlineCom".
 
int integer1 ()
 Get Integer communication cell N.
 
void setInteger1 (const int value)
 Set Integer communication cell N.
 
int integer2 ()
 Get Integer communication cell N.
 
void setInteger2 (const int value)
 Set Integer communication cell N.
 
int integer3 ()
 Get Integer communication cell N.
 
void setInteger3 (const int value)
 Set Integer communication cell N.
 
int integer4 ()
 Get Integer communication cell N.
 
void setInteger4 (const int value)
 Set Integer communication cell N.
 
int integer5 ()
 Get Integer communication cell N.
 
void setInteger5 (const int value)
 Set Integer communication cell N.
 
GAMSOptions::EInteractiveSolver::EInteractiveSolverEnum interactiveSolver ()
 Get Allow solver to interact via command line input.
 
void setInteractiveSolver (const GAMSOptions::EInteractiveSolver::EInteractiveSolverEnum value)
 Set Allow solver to interact via command line input.
 
GAMSOptions::EIntVarUp::EIntVarUpEnum intVarUp ()
 Get Set mode for default upper bounds on integer variables.
 
void setIntVarUp (const GAMSOptions::EIntVarUp::EIntVarUpEnum value)
 Set Set mode for default upper bounds on integer variables.
 
int iterLim ()
 Get Iteration limit of solver.
 
void setIterLim (const int value)
 Set Iteration limit of solver.
 
std::string jobTrace ()
 Get Job trace string to be written to the trace file at the end of a GAMS job.
 
void setJobTrace (const std::string &value)
 Set Job trace string to be written to the trace file at the end of a GAMS job.
 
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.
 
std::string libIncDir ()
 Get LibInclude directory.
 
void setLibIncDir (const std::string &value)
 Set LibInclude directory.
 
std::string license ()
 Get Use alternative license file.
 
void setLicense (const std::string &value)
 Set Use alternative license file.
 
int limCol ()
 Get Maximum number of columns listed in one variable block.
 
void setLimCol (const int value)
 Set Maximum number of columns listed in one variable block.
 
int limRow ()
 Get Maximum number of rows listed in one equation block.
 
void setLimRow (const int value)
 Set Maximum number of rows listed in one equation block.
 
GAMSOptions::EListing::EListingEnum listing ()
 Get Switch default for "$on/offListing".
 
void setListing (const GAMSOptions::EListing::EListingEnum value)
 Set Switch default for "$on/offListing".
 
GAMSOptions::ELogLine::ELogLineEnum logLine ()
 Get Amount of line tracing to the log file.
 
void setLogLine (const GAMSOptions::ELogLine::ELogLineEnum value)
 Set Amount of line tracing to the log file.
 
GAMSOptions::ELstTitleLeftAligned::ELstTitleLeftAlignedEnum lstTitleLeftAligned ()
 Get Write title of LST file all left aligned.
 
void setLstTitleLeftAligned (const GAMSOptions::ELstTitleLeftAligned::ELstTitleLeftAlignedEnum value)
 Set Write title of LST file all left aligned.
 
int maxExecError ()
 Get Execution time error limit.
 
void setMaxExecError (const int value)
 Set Execution time error limit.
 
int maxProcDir ()
 Get Maximum number of 225* process directories.
 
void setMaxProcDir (const int value)
 Set Maximum number of 225* process directories.
 
GAMSOptions::EMIIMode::EMIIModeEnum mIIMode ()
 Get Model Instance Mode.
 
void setMIIMode (const GAMSOptions::EMIIMode::EMIIModeEnum value)
 Set Model Instance Mode.
 
std::string multi ()
 Get Switch default for "$on/offMulti[R]".
 
void setMulti (const std::string &value)
 Set Switch default for "$on/offMulti[R]".
 
int nodLim ()
 Get Node limit in branch and bound tree.
 
void setNodLim (const int value)
 Set Node limit in branch and bound tree.
 
GAMSOptions::ENoNewVarEqu::ENoNewVarEquEnum noNewVarEqu ()
 Get Triggers a compilation error when new equations or variable symbols are introduced.
 
void setNoNewVarEqu (const GAMSOptions::ENoNewVarEqu::ENoNewVarEquEnum value)
 Set Triggers a compilation error when new equations or variable symbols are introduced.
 
GAMSOptions::EOn115::EOn115Enum on115 ()
 Get Generate errors for unknown unique element in an equation.
 
void setOn115 (const GAMSOptions::EOn115::EOn115Enum value)
 Set Generate errors for unknown unique element in an equation.
 
double optCA ()
 Get Absolute Optimality criterion solver default.
 
void setOptCA (const double value)
 Set Absolute Optimality criterion solver default.
 
double optCR ()
 Get Relative Optimality criterion solver default.
 
void setOptCR (const double value)
 Set Relative Optimality criterion solver default.
 
std::string optDir ()
 Get Option file directory.
 
void setOptDir (const std::string &value)
 Set Option file directory.
 
int optFile ()
 Get Default option file.
 
void setOptFile (const int value)
 Set Default option file.
 
std::string output ()
 Get Listing file name.
 
void setOutput (const std::string &value)
 Set Listing file name.
 
GAMSOptions::EPageContr::EPageContrEnum pageContr ()
 Get Output file page control option.
 
void setPageContr (const GAMSOptions::EPageContr::EPageContrEnum value)
 Set Output file page control option.
 
int pageSize ()
 Get Output file page size (=0 no paging)
 
void setPageSize (const int value)
 Set Output file page size (=0 no paging)
 
int pageWidth ()
 Get Output file page width.
 
void setPageWidth (const int value)
 Set Output file page width.
 
std::string pLicense ()
 Get Privacy license file name.
 
void setPLicense (const std::string &value)
 Set Privacy license file name.
 
GAMSOptions::EPrefixLoadPath::EPrefixLoadPathEnum prefixLoadPath ()
 Get Prepend GAMS system directory to library load path.
 
void setPrefixLoadPath (const GAMSOptions::EPrefixLoadPath::EPrefixLoadPathEnum value)
 Set Prepend GAMS system directory to library load path.
 
GAMSOptions::EPreviousWork::EPreviousWorkEnum previousWork ()
 Get Indicator for writing workfile with previous workfile version.
 
void setPreviousWork (const GAMSOptions::EPreviousWork::EPreviousWorkEnum value)
 Set Indicator for writing workfile with previous workfile version.
 
GAMSOptions::EProcTreeMemMonitor::EProcTreeMemMonitorEnum procTreeMemMonitor ()
 Get Monitor the memory used by the GAMS process tree.
 
void setProcTreeMemMonitor (const GAMSOptions::EProcTreeMemMonitor::EProcTreeMemMonitorEnum value)
 Set Monitor the memory used by the GAMS process tree.
 
int procTreeMemTicks ()
 Get Set wait interval between memory monitor checks: ticks = milliseconds.
 
void setProcTreeMemTicks (const int value)
 Set Set wait interval between memory monitor checks: ticks = milliseconds.
 
int profile ()
 Get Execution profiling.
 
void setProfile (const int value)
 Set Execution profiling.
 
std::string profileFile ()
 Get Write profile information to this file.
 
void setProfileFile (const std::string &value)
 Set Write profile information to this file.
 
double profileTol ()
 Get Minimum time a statement must use to appear in profile generated output.
 
void setProfileTol (const double value)
 Set Minimum time a statement must use to appear in profile generated output.
 
std::string putDir ()
 Get Put file directory.
 
void setPutDir (const std::string &value)
 Set Put file directory.
 
int putND ()
 Get Number of decimals for put files.
 
void setPutND (const int value)
 Set Number of decimals for put files.
 
GAMSOptions::EPutNR::EPutNREnum putNR ()
 Get Numeric round format for put files.
 
void setPutNR (const GAMSOptions::EPutNR::EPutNREnum value)
 Set Numeric round format for put files.
 
int putPS ()
 Get Page size for put files.
 
void setPutPS (const int value)
 Set Page size for put files.
 
int putPW ()
 Get Page width for put files.
 
void setPutPW (const int value)
 Set Page width for put files.
 
std::string reference ()
 Get Symbol reference file.
 
void setReference (const std::string &value)
 Set Symbol reference file.
 
GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum referenceLineNo ()
 Get Controls the line numbers written to a reference file.
 
void setReferenceLineNo (const GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum value)
 Set Controls the line numbers written to a reference file.
 
GAMSOptions::EReplace::EReplaceEnum replace ()
 Get Switch between merge and replace when reading from GDX into non-empty symbol.
 
void setReplace (const GAMSOptions::EReplace::EReplaceEnum value)
 Set Switch between merge and replace when reading from GDX into non-empty symbol.
 
double resLim ()
 Get Wall-clock time limit for solver.
 
void setResLim (const double value)
 Set Wall-clock time limit for solver.
 
GAMSOptions::ESavePoint::ESavePointEnum savePoint ()
 Get Save solver point in GDX file.
 
void setSavePoint (const GAMSOptions::ESavePoint::ESavePointEnum value)
 Set Save solver point in GDX file.
 
std::string scriptExit ()
 Get Program or script to be executed at the end of a GAMS run.
 
void setScriptExit (const std::string &value)
 Set Program or script to be executed at the end of a GAMS run.
 
int seed ()
 Get Random number seed.
 
void setSeed (const int value)
 Set Random number seed.
 
GAMSOptions::EShowOSMemory::EShowOSMemoryEnum showOSMemory ()
 Get Show the memory usage reported by the Operating System instead of the internal counting.
 
void setShowOSMemory (const GAMSOptions::EShowOSMemory::EShowOSMemoryEnum value)
 Set Show the memory usage reported by the Operating System instead of the internal counting.
 
GAMSOptions::ESolPrint::ESolPrintEnum solPrint ()
 Get Solution report print option.
 
void setSolPrint (const GAMSOptions::ESolPrint::ESolPrintEnum value)
 Set Solution report print option.
 
GAMSOptions::ESolveLink::ESolveLinkEnum solveLink ()
 Get Solver link option.
 
void setSolveLink (const GAMSOptions::ESolveLink::ESolveLinkEnum value)
 Set Solver link option.
 
GAMSOptions::ESolveOpt::ESolveOptEnum solveOpt ()
 Get Multiple solve management.
 
void setSolveOpt (const GAMSOptions::ESolveOpt::ESolveOptEnum value)
 Set Multiple solve management.
 
GAMSOptions::EStepSum::EStepSumEnum stepSum ()
 Get Summary of computing resources used by job steps.
 
void setStepSum (const GAMSOptions::EStepSum::EStepSumEnum value)
 Set Summary of computing resources used by job steps.
 
GAMSOptions::EstrictSingleton::EstrictSingletonEnum strictSingleton ()
 Get Error if assignment to singleton set has multiple elements.
 
void setstrictSingleton (const GAMSOptions::EstrictSingleton::EstrictSingletonEnum value)
 Set Error if assignment to singleton set has multiple elements.
 
GAMSOptions::EStringChk::EStringChkEnum stringChk ()
 Get String substitution options.
 
void setStringChk (const GAMSOptions::EStringChk::EStringChkEnum value)
 Set String substitution options.
 
GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum suffixDLVars ()
 Get Switch default for "$on/offSuffixDLVars".
 
void setSuffixDLVars (const GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum value)
 Set Switch default for "$on/offSuffixDLVars".
 
GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum suffixAlgebraVars ()
 Get Switch default for "$on/offSuffixAlgebraVars".
 
void setSuffixAlgebraVars (const GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum value)
 Set Switch default for "$on/offSuffixAlgebraVars".
 
GAMSOptions::ESuppress::ESuppressEnum suppress ()
 Get Compiler listing option.
 
void setSuppress (const GAMSOptions::ESuppress::ESuppressEnum value)
 Set Compiler listing option.
 
std::string symbol ()
 Get Symbol table file.
 
void setSymbol (const std::string &value)
 Set Symbol table file.
 
std::string symPrefix ()
 Get Prefix all symbols encountered during compilation by the specified string in work file.
 
void setSymPrefix (const std::string &value)
 Set Prefix all symbols encountered during compilation by the specified string in work file.
 
GAMSOptions::ESys10::ESys10Enum sys10 ()
 Get Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.
 
void setSys10 (const GAMSOptions::ESys10::ESys10Enum value)
 Set Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.
 
GAMSOptions::ESys11::ESys11Enum sys11 ()
 Get Dynamic resorting if indices in assignment/data statements are not in natural order.
 
void setSys11 (const GAMSOptions::ESys11::ESys11Enum value)
 Set Dynamic resorting if indices in assignment/data statements are not in natural order.
 
int sys12 ()
 Get Pass model with generation errors to solver.
 
void setSys12 (const int value)
 Set Pass model with generation errors to solver.
 
std::string sysIncDir ()
 Get SysInclude directory.
 
void setSysIncDir (const std::string &value)
 Set SysInclude directory.
 
GAMSOptions::ESysOut::ESysOutEnum sysOut ()
 Get Solver Status file reporting option.
 
void setSysOut (const GAMSOptions::ESysOut::ESysOutEnum value)
 Set Solver Status file reporting option.
 
int tabIn ()
 Get Tab spacing.
 
void setTabIn (const int value)
 Set Tab spacing.
 
GAMSOptions::ETFormat::ETFormatEnum tFormat ()
 Get Time format.
 
void setTFormat (const GAMSOptions::ETFormat::ETFormatEnum value)
 Set Time format.
 
int threads ()
 Get Number of processors to be used by a solver.
 
void setThreads (const int value)
 Set Number of processors to be used by a solver.
 
int threadsAsync ()
 Get Limit on number of threads to be used for asynchronous solves (solveLink=6)
 
void setThreadsAsync (const int value)
 Set Limit on number of threads to be used for asynchronous solves (solveLink=6)
 
int timer ()
 Get Instruction timer threshold in milli seconds.
 
void setTimer (const int value)
 Set Instruction timer threshold in milli seconds.
 
std::string trace ()
 Get Trace file name.
 
void setTrace (const std::string &value)
 Set Trace file name.
 
int traceLevel ()
 Get Modelstat/Solvestat threshold used in conjunction with action=GT.
 
void setTraceLevel (const int value)
 Set Modelstat/Solvestat threshold used in conjunction with action=GT.
 
GAMSOptions::ETraceOpt::ETraceOptEnum traceOpt ()
 Get Trace file format option.
 
void setTraceOpt (const GAMSOptions::ETraceOpt::ETraceOptEnum value)
 Set Trace file format option.
 
std::string user1 ()
 Get User string N.
 
void setUser1 (const std::string &value)
 Set User string N.
 
std::string user2 ()
 Get User string N.
 
void setUser2 (const std::string &value)
 Set User string N.
 
std::string user3 ()
 Get User string N.
 
void setUser3 (const std::string &value)
 Set User string N.
 
std::string user4 ()
 Get User string N.
 
void setUser4 (const std::string &value)
 Set User string N.
 
std::string user5 ()
 Get User string N.
 
void setUser5 (const std::string &value)
 Set User string N.
 
int warnings ()
 Get Number of warnings permitted before a run terminates.
 
void setWarnings (const int value)
 Set Number of warnings permitted before a run terminates.
 
double workFactor ()
 Get Memory Estimate multiplier for some solvers.
 
void setWorkFactor (const double value)
 Set Memory Estimate multiplier for some solvers.
 
double workSpace ()
 Get Work space for some solvers in MB.
 
void setWorkSpace (const double value)
 Set Work space for some solvers in MB.
 
double zeroRes ()
 Get The results of certain operations will be set to zero if abs(result) LE ZeroRes.
 
void setZeroRes (const double value)
 Set The results of certain operations will be set to zero if abs(result) LE ZeroRes.
 
GAMSOptions::EZeroResRep::EZeroResRepEnum zeroResRep ()
 Get Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.
 
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 LP ()
 Get default LP solver.
 
void setLP (const std::string &value)
 Set default LP solver.
 
std::string MIP ()
 Get default MIP solver.
 
void setMIP (const std::string &value)
 Set default MIP solver.
 
std::string RMIP ()
 Get default RMIP solver.
 
void setRMIP (const std::string &value)
 Set default RMIP solver.
 
std::string NLP ()
 Get default NLP solver.
 
void setNLP (const std::string &value)
 Set default NLP solver.
 
std::string MCP ()
 Get default MCP solver.
 
void setMCP (const std::string &value)
 Set default MCP solver.
 
std::string MPEC ()
 Get default MPEC solver.
 
void setMPEC (const std::string &value)
 Set default MPEC solver.
 
std::string RMPEC ()
 Get default RMPEC solver.
 
void setRMPEC (const std::string &value)
 Set default RMPEC solver.
 
std::string CNS ()
 Get default CNS solver.
 
void setCNS (const std::string &value)
 Set default CNS solver.
 
std::string DNLP ()
 Get default DNLP solver.
 
void setDNLP (const std::string &value)
 Set default DNLP solver.
 
std::string RMINLP ()
 Get default RMINLP solver.
 
void setRMINLP (const std::string &value)
 Set default RMINLP solver.
 
std::string MINLP ()
 Get default MINLP solver.
 
void setMINLP (const std::string &value)
 Set default MINLP solver.
 
std::string QCP ()
 Get default QCP solver.
 
void setQCP (const std::string &value)
 Set default QCP solver.
 
std::string MIQCP ()
 Get default MIQCP solver.
 
void setMIQCP (const std::string &value)
 Set default MIQCP solver.
 
std::string RMIQCP ()
 Get default RMIQCP solver.
 
void setRMIQCP (const std::string &value)
 Set default RMIQCP solver.
 
std::string EMP ()
 Get default EMP solver.
 
void setEMP (const std::string &value)
 Set default EMP solver.
 
std::string getSolver (const std::string &modelType)
 Get solver by model type.
 
void setSolver (const std::string &modelType, const std::string &solver)
 Get solver by model type.
 

Static Public Member Functions

static const char * gamsBuild ()
 Get GAMS build information.
 
static const char * gamsVersion ()
 Get GAMS version information.
 
static std::string eActionText (GAMSOptions::EAction::EActionEnum type)
 Get GAMS processing request as text.
 
static std::string eActionCode (GAMSOptions::EAction::EActionEnum type)
 Get GAMS processing request as code.
 
static EAction::EActionEnum eActionFromCode (const std::string &str)
 Get GAMS processing request from std::string
 
static std::string eDigitText (GAMSOptions::EDigit::EDigitEnum type)
 Get Switch default for "$on/offDigit" as text.
 
static std::string eDigitCode (GAMSOptions::EDigit::EDigitEnum type)
 Get Switch default for "$on/offDigit" as code.
 
static EDigit::EDigitEnum eDigitFromCode (const std::string &str)
 Get Switch default for "$on/offDigit" from std::string
 
static std::string eECImplicitLoadText (GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum type)
 Get Allow implicit loading of symbols from embedded code or not as text.
 
static std::string eECImplicitLoadCode (GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum type)
 Get Allow implicit loading of symbols from embedded code or not as code.
 
static EECImplicitLoad::EECImplicitLoadEnum eECImplicitLoadFromCode (const std::string &str)
 Get Allow implicit loading of symbols from embedded code or not from std::string
 
static std::string eEmptyText (GAMSOptions::EEmpty::EEmptyEnum type)
 Get Switch default for "$on/offEmpty" as text.
 
static std::string eEmptyCode (GAMSOptions::EEmpty::EEmptyEnum type)
 Get Switch default for "$on/offEmpty" as code.
 
static EEmpty::EEmptyEnum eEmptyFromCode (const std::string &str)
 Get Switch default for "$on/offEmpty" from std::string
 
static std::string eFilteredText (GAMSOptions::EFiltered::EFilteredEnum type)
 Get Switch between filtered and domain-checked read from GDX as text.
 
static std::string eFilteredCode (GAMSOptions::EFiltered::EFilteredEnum type)
 Get Switch between filtered and domain-checked read from GDX as code.
 
static EFiltered::EFilteredEnum eFilteredFromCode (const std::string &str)
 Get Switch between filtered and domain-checked read from GDX from std::string
 
static std::string egdxConvertText (GAMSOptions::EgdxConvert::EgdxConvertEnum type)
 Get Version of GDX files generated (for backward compatibility) as text.
 
static std::string egdxConvertCode (GAMSOptions::EgdxConvert::EgdxConvertEnum type)
 Get Version of GDX files generated (for backward compatibility) as code.
 
static EgdxConvert::EgdxConvertEnum egdxConvertFromCode (const std::string &str)
 Get Version of GDX files generated (for backward compatibility) from std::string
 
static std::string egdxUelsText (GAMSOptions::EgdxUels::EgdxUelsEnum type)
 Get Unload labels or UELs to GDX either squeezed or full as text.
 
static std::string egdxUelsCode (GAMSOptions::EgdxUels::EgdxUelsEnum type)
 Get Unload labels or UELs to GDX either squeezed or full as code.
 
static EgdxUels::EgdxUelsEnum egdxUelsFromCode (const std::string &str)
 Get Unload labels or UELs to GDX either squeezed or full from std::string
 
static std::string eImplicitAssignText (GAMSOptions::EImplicitAssign::EImplicitAssignEnum type)
 Get Switch default for "$on/offImplicitAssign" as text.
 
static std::string eImplicitAssignCode (GAMSOptions::EImplicitAssign::EImplicitAssignEnum type)
 Get Switch default for "$on/offImplicitAssign" as code.
 
static EImplicitAssign::EImplicitAssignEnum eImplicitAssignFromCode (const std::string &str)
 Get Switch default for "$on/offImplicitAssign" from std::string
 
static std::string eListingText (GAMSOptions::EListing::EListingEnum type)
 Get Switch default for "$on/offListing" as text.
 
static std::string eListingCode (GAMSOptions::EListing::EListingEnum type)
 Get Switch default for "$on/offListing" as code.
 
static EListing::EListingEnum eListingFromCode (const std::string &str)
 Get Switch default for "$on/offListing" from std::string
 
static std::string eMIIModeText (GAMSOptions::EMIIMode::EMIIModeEnum type)
 Get Model Instance Mode as text.
 
static std::string eMIIModeCode (GAMSOptions::EMIIMode::EMIIModeEnum type)
 Get Model Instance Mode as code.
 
static EMIIMode::EMIIModeEnum eMIIModeFromCode (const std::string &str)
 Get Model Instance Mode from std::string
 
static std::string eReferenceLineNoText (GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum type)
 Get Controls the line numbers written to a reference file as text.
 
static std::string eReferenceLineNoCode (GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum type)
 Get Controls the line numbers written to a reference file as code.
 
static EReferenceLineNo::EReferenceLineNoEnum eReferenceLineNoFromCode (const std::string &str)
 Get Controls the line numbers written to a reference file from std::string
 
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 std::string eReplaceCode (GAMSOptions::EReplace::EReplaceEnum type)
 Get Switch between merge and replace when reading from GDX into non-empty symbol as code.
 
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
 
static std::string eSuffixDLVarsText (GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum type)
 Get Switch default for "$on/offSuffixDLVars" as text.
 
static std::string eSuffixDLVarsCode (GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum type)
 Get Switch default for "$on/offSuffixDLVars" as code.
 
static ESuffixDLVars::ESuffixDLVarsEnum eSuffixDLVarsFromCode (const std::string &str)
 Get Switch default for "$on/offSuffixDLVars" from std::string
 
static std::string eSuffixAlgebraVarsText (GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum type)
 Get Switch default for "$on/offSuffixAlgebraVars" as text.
 
static std::string eSuffixAlgebraVarsCode (GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum type)
 Get Switch default for "$on/offSuffixAlgebraVars" as code.
 
static ESuffixAlgebraVars::ESuffixAlgebraVarsEnum eSuffixAlgebraVarsFromCode (const std::string &str)
 Get Switch default for "$on/offSuffixAlgebraVars" from std::string
 

Detailed Description

The GAMSOptions class manages GAMS options (sometimes also called GAMS parameters since they correspond to the command line parameters of the GAMS executable) for a GAMSJob and GAMSModelInstance. There are integer (e.g. NodLim), double (e.g. ResLim), and string (e.g. PutDir) valued options. There are also a few list options (setDefine() to set string macros inside GAMS and addInputDir() provide multiple search paths for include files) and a power option to set a solver for all suitable model types (setAllModelTypes()).

Some options known from other interfaces to GAMS that are of limited use or could even create problematic situations in the C++ environment are not settable through the GAMSOptions class.

For some options (e.g. Case) other GAMS interfaces use numeric values (e.g. 0,1) while the GAMSOptions class has enumerated types with proper names (e.g. MixedCase, UpperCase).

Definition at line 54 of file gamsoptions.h.

Constructor & Destructor Documentation

◆ ~GAMSOptions()

gams::GAMSOptions::~GAMSOptions ( )

Destructor.

Member Function Documentation

◆ action()

GAMSOptions::EAction::EActionEnum gams::GAMSOptions::action ( )

Get GAMS processing request.

◆ addInputDir()

void gams::GAMSOptions::addInputDir ( const std::string  value)

Add new inputdir at the end of the inputdir list.

◆ appendExpand()

GAMSOptions::EAppendExpand::EAppendExpandEnum gams::GAMSOptions::appendExpand ( )

Get Expand file append option.

◆ appendOut()

GAMSOptions::EAppendOut::EAppendOutEnum gams::GAMSOptions::appendOut ( )

Get Output file append option.

◆ asyncSolLst()

GAMSOptions::EAsyncSolLst::EAsyncSolLstEnum gams::GAMSOptions::asyncSolLst ( )

Get Print solution listing when asynchronous solve (Grid or Threads) is used.

◆ bratio()

double gams::GAMSOptions::bratio ( )

Get Basis detection threshold.

◆ captureModelInstance()

GAMSOptions::ECaptureModelInstance::ECaptureModelInstanceEnum gams::GAMSOptions::captureModelInstance ( )

Get Switch to capture all model instances within a run.

◆ cErr()

int gams::GAMSOptions::cErr ( )

Get Compile time error limit.

◆ charSet()

GAMSOptions::ECharSet::ECharSetEnum gams::GAMSOptions::charSet ( )

Get Character set flag.

◆ checkErrorLevel()

GAMSOptions::ECheckErrorLevel::ECheckErrorLevelEnum gams::GAMSOptions::checkErrorLevel ( )

Get Check errorLevel automatically after executing external program.

◆ CNS()

std::string gams::GAMSOptions::CNS ( )

Get default CNS solver.

◆ decryptKey()

std::string gams::GAMSOptions::decryptKey ( )

Get Key to decrypt a text file that was encrypted via $encrypt.

◆ dFormat()

GAMSOptions::EDFormat::EDFormatEnum gams::GAMSOptions::dFormat ( )

Get Date format.

◆ digit()

GAMSOptions::EDigit::EDigitEnum gams::GAMSOptions::digit ( )

Get Switch default for "$on/offDigit".

◆ DNLP()

std::string gams::GAMSOptions::DNLP ( )

Get default DNLP solver.

◆ domLim()

int gams::GAMSOptions::domLim ( )

Get Domain violation limit solver default.

◆ dumpOpt()

GAMSOptions::EDumpOpt::EDumpOptEnum gams::GAMSOptions::dumpOpt ( )

Get Writes preprocessed input to the file input.dmp.

◆ dumpOptGDX()

std::string gams::GAMSOptions::dumpOptGDX ( )

Get Defines a GDX file name stem created when using DumpOpt.

◆ dumpParms()

GAMSOptions::EDumpParms::EDumpParmsEnum gams::GAMSOptions::dumpParms ( )

Get GAMS parameter logging.

◆ dumpParmsLogPrefix()

std::string gams::GAMSOptions::dumpParmsLogPrefix ( )

Get Prefix of lines triggered by DumpParms>1.

◆ eActionCode()

static std::string gams::GAMSOptions::eActionCode ( GAMSOptions::EAction::EActionEnum  type)
static

Get GAMS processing request as code.

◆ eActionFromCode()

static EAction::EActionEnum gams::GAMSOptions::eActionFromCode ( const std::string &  str)
static

Get GAMS processing request from std::string

◆ eActionText()

static std::string gams::GAMSOptions::eActionText ( GAMSOptions::EAction::EActionEnum  type)
static

Get GAMS processing request as text.

◆ eCImplicitLoad()

GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum gams::GAMSOptions::eCImplicitLoad ( )

Get Allow implicit loading of symbols from embedded code or not.

◆ eDigitCode()

static std::string gams::GAMSOptions::eDigitCode ( GAMSOptions::EDigit::EDigitEnum  type)
static

Get Switch default for "$on/offDigit" as code.

◆ eDigitFromCode()

static EDigit::EDigitEnum gams::GAMSOptions::eDigitFromCode ( const std::string &  str)
static

Get Switch default for "$on/offDigit" from std::string

◆ eDigitText()

static std::string gams::GAMSOptions::eDigitText ( GAMSOptions::EDigit::EDigitEnum  type)
static

Get Switch default for "$on/offDigit" as text.

◆ eECImplicitLoadCode()

static std::string gams::GAMSOptions::eECImplicitLoadCode ( GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum  type)
static

Get Allow implicit loading of symbols from embedded code or not as code.

◆ eECImplicitLoadFromCode()

static EECImplicitLoad::EECImplicitLoadEnum gams::GAMSOptions::eECImplicitLoadFromCode ( const std::string &  str)
static

Get Allow implicit loading of symbols from embedded code or not from std::string

◆ eECImplicitLoadText()

static std::string gams::GAMSOptions::eECImplicitLoadText ( GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum  type)
static

Get Allow implicit loading of symbols from embedded code or not as text.

◆ eEmptyCode()

static std::string gams::GAMSOptions::eEmptyCode ( GAMSOptions::EEmpty::EEmptyEnum  type)
static

Get Switch default for "$on/offEmpty" as code.

◆ eEmptyFromCode()

static EEmpty::EEmptyEnum gams::GAMSOptions::eEmptyFromCode ( const std::string &  str)
static

Get Switch default for "$on/offEmpty" from std::string

◆ eEmptyText()

static std::string gams::GAMSOptions::eEmptyText ( GAMSOptions::EEmpty::EEmptyEnum  type)
static

Get Switch default for "$on/offEmpty" as text.

◆ eFilteredCode()

static std::string gams::GAMSOptions::eFilteredCode ( GAMSOptions::EFiltered::EFilteredEnum  type)
static

Get Switch between filtered and domain-checked read from GDX as code.

◆ eFilteredFromCode()

static EFiltered::EFilteredEnum gams::GAMSOptions::eFilteredFromCode ( const std::string &  str)
static

Get Switch between filtered and domain-checked read from GDX from std::string

◆ eFilteredText()

static std::string gams::GAMSOptions::eFilteredText ( GAMSOptions::EFiltered::EFilteredEnum  type)
static

Get Switch between filtered and domain-checked read from GDX as text.

◆ egdxConvertCode()

static std::string gams::GAMSOptions::egdxConvertCode ( GAMSOptions::EgdxConvert::EgdxConvertEnum  type)
static

Get Version of GDX files generated (for backward compatibility) as code.

◆ egdxConvertFromCode()

static EgdxConvert::EgdxConvertEnum gams::GAMSOptions::egdxConvertFromCode ( const std::string &  str)
static

Get Version of GDX files generated (for backward compatibility) from std::string

◆ egdxConvertText()

static std::string gams::GAMSOptions::egdxConvertText ( GAMSOptions::EgdxConvert::EgdxConvertEnum  type)
static

Get Version of GDX files generated (for backward compatibility) as text.

◆ egdxUelsCode()

static std::string gams::GAMSOptions::egdxUelsCode ( GAMSOptions::EgdxUels::EgdxUelsEnum  type)
static

Get Unload labels or UELs to GDX either squeezed or full as code.

◆ egdxUelsFromCode()

static EgdxUels::EgdxUelsEnum gams::GAMSOptions::egdxUelsFromCode ( const std::string &  str)
static

Get Unload labels or UELs to GDX either squeezed or full from std::string

◆ egdxUelsText()

static std::string gams::GAMSOptions::egdxUelsText ( GAMSOptions::EgdxUels::EgdxUelsEnum  type)
static

Get Unload labels or UELs to GDX either squeezed or full as text.

◆ eImplicitAssignCode()

static std::string gams::GAMSOptions::eImplicitAssignCode ( GAMSOptions::EImplicitAssign::EImplicitAssignEnum  type)
static

Get Switch default for "$on/offImplicitAssign" as code.

◆ eImplicitAssignFromCode()

static EImplicitAssign::EImplicitAssignEnum gams::GAMSOptions::eImplicitAssignFromCode ( const std::string &  str)
static

Get Switch default for "$on/offImplicitAssign" from std::string

◆ eImplicitAssignText()

static std::string gams::GAMSOptions::eImplicitAssignText ( GAMSOptions::EImplicitAssign::EImplicitAssignEnum  type)
static

Get Switch default for "$on/offImplicitAssign" as text.

◆ eListingCode()

static std::string gams::GAMSOptions::eListingCode ( GAMSOptions::EListing::EListingEnum  type)
static

Get Switch default for "$on/offListing" as code.

◆ eListingFromCode()

static EListing::EListingEnum gams::GAMSOptions::eListingFromCode ( const std::string &  str)
static

Get Switch default for "$on/offListing" from std::string

◆ eListingText()

static std::string gams::GAMSOptions::eListingText ( GAMSOptions::EListing::EListingEnum  type)
static

Get Switch default for "$on/offListing" as text.

◆ eMIIModeCode()

static std::string gams::GAMSOptions::eMIIModeCode ( GAMSOptions::EMIIMode::EMIIModeEnum  type)
static

Get Model Instance Mode as code.

◆ eMIIModeFromCode()

static EMIIMode::EMIIModeEnum gams::GAMSOptions::eMIIModeFromCode ( const std::string &  str)
static

Get Model Instance Mode from std::string

◆ eMIIModeText()

static std::string gams::GAMSOptions::eMIIModeText ( GAMSOptions::EMIIMode::EMIIModeEnum  type)
static

Get Model Instance Mode as text.

◆ EMP()

std::string gams::GAMSOptions::EMP ( )

Get default EMP solver.

◆ empty()

GAMSOptions::EEmpty::EEmptyEnum gams::GAMSOptions::empty ( )

Get Switch default for "$on/offEmpty".

◆ encryptKey()

std::string gams::GAMSOptions::encryptKey ( )

Get Key to encrypt a text file using $encrypt.

◆ eolCom()

std::string gams::GAMSOptions::eolCom ( )

Get Switch default for "$on/offEolCom" and "$eolCom".

◆ eReferenceLineNoCode()

static std::string gams::GAMSOptions::eReferenceLineNoCode ( GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum  type)
static

Get Controls the line numbers written to a reference file as code.

◆ eReferenceLineNoFromCode()

static EReferenceLineNo::EReferenceLineNoEnum gams::GAMSOptions::eReferenceLineNoFromCode ( const std::string &  str)
static

Get Controls the line numbers written to a reference file from std::string

◆ eReferenceLineNoText()

static std::string gams::GAMSOptions::eReferenceLineNoText ( GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum  type)
static

Get Controls the line numbers written to a reference file as text.

◆ eReplaceCode()

static std::string gams::GAMSOptions::eReplaceCode ( GAMSOptions::EReplace::EReplaceEnum  type)
static

Get Switch between merge and replace when reading from GDX into non-empty symbol as code.

◆ eReplaceFromCode()

static EReplace::EReplaceEnum gams::GAMSOptions::eReplaceFromCode ( const std::string &  str)
static

Get Switch between merge and replace when reading from GDX into non-empty symbol from std::string

◆ eReplaceText()

static std::string gams::GAMSOptions::eReplaceText ( GAMSOptions::EReplace::EReplaceEnum  type)
static

Get Switch between merge and replace when reading from GDX into non-empty symbol as text.

◆ errMsg()

GAMSOptions::EErrMsg::EErrMsgEnum gams::GAMSOptions::errMsg ( )

Get Placing of compilation error messages.

◆ errorLog()

int gams::GAMSOptions::errorLog ( )

Get Max error message lines written to the log for each error.

◆ eSuffixAlgebraVarsCode()

static std::string gams::GAMSOptions::eSuffixAlgebraVarsCode ( GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum  type)
static

Get Switch default for "$on/offSuffixAlgebraVars" as code.

◆ eSuffixAlgebraVarsFromCode()

static ESuffixAlgebraVars::ESuffixAlgebraVarsEnum gams::GAMSOptions::eSuffixAlgebraVarsFromCode ( const std::string &  str)
static

Get Switch default for "$on/offSuffixAlgebraVars" from std::string

◆ eSuffixAlgebraVarsText()

static std::string gams::GAMSOptions::eSuffixAlgebraVarsText ( GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum  type)
static

Get Switch default for "$on/offSuffixAlgebraVars" as text.

◆ eSuffixDLVarsCode()

static std::string gams::GAMSOptions::eSuffixDLVarsCode ( GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum  type)
static

Get Switch default for "$on/offSuffixDLVars" as code.

◆ eSuffixDLVarsFromCode()

static ESuffixDLVars::ESuffixDLVarsEnum gams::GAMSOptions::eSuffixDLVarsFromCode ( const std::string &  str)
static

Get Switch default for "$on/offSuffixDLVars" from std::string

◆ eSuffixDLVarsText()

static std::string gams::GAMSOptions::eSuffixDLVarsText ( GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum  type)
static

Get Switch default for "$on/offSuffixDLVars" as text.

◆ eTLim()

double gams::GAMSOptions::eTLim ( )

Get Elapsed time limit in seconds.

◆ execMode()

GAMSOptions::EExecMode::EExecModeEnum gams::GAMSOptions::execMode ( )

Get Limits on external programs that are allowed to be executed.

◆ expand()

std::string gams::GAMSOptions::expand ( )

Get Expanded (include) input file name.

◆ fDDelta()

double gams::GAMSOptions::fDDelta ( )

Get Step size for finite differences.

◆ fDOpt()

GAMSOptions::EFDOpt::EFDOptEnum gams::GAMSOptions::fDOpt ( )

Get Options for finite differences.

◆ fErr()

std::string gams::GAMSOptions::fErr ( )

Get Alternative error message file.

◆ fileCase()

GAMSOptions::EFileCase::EFileCaseEnum gams::GAMSOptions::fileCase ( )

Get Casing of file names and paths (put, gdx, ref, $include, etc.)

◆ fileStem()

std::string gams::GAMSOptions::fileStem ( )

Get Sets the file stem for output files which use the input file name as stem by default.

◆ fileStemApFromEnv()

std::string gams::GAMSOptions::fileStemApFromEnv ( )

Get Append a string read from an environment variable to the "FileStem".

◆ filtered()

GAMSOptions::EFiltered::EFilteredEnum gams::GAMSOptions::filtered ( )

Get Switch between filtered and domain-checked read from GDX.

◆ forceOptFile()

int gams::GAMSOptions::forceOptFile ( )

Get Overwrites other option file section mechanism.

◆ forceWork()

GAMSOptions::EForceWork::EForceWorkEnum gams::GAMSOptions::forceWork ( )

Get Force GAMS to process a save file created with a newer GAMS version or with execution errors.

◆ forLim()

int gams::GAMSOptions::forLim ( )

Get GAMS looping limit.

◆ freeEmbeddedPython()

GAMSOptions::EFreeEmbeddedPython::EFreeEmbeddedPythonEnum gams::GAMSOptions::freeEmbeddedPython ( )

Get Free external resources at the end of each embedded Python code blocks.

◆ gamsBuild()

static const char * gams::GAMSOptions::gamsBuild ( )
static

Get GAMS build information.

◆ gamsVersion()

static const char * gams::GAMSOptions::gamsVersion ( )
static

Get GAMS version information.

◆ gdx()

std::string gams::GAMSOptions::gdx ( )

Get GDX file name.

◆ gdxCompress()

GAMSOptions::EgdxCompress::EgdxCompressEnum gams::GAMSOptions::gdxCompress ( )

Get Compression of generated GDX file.

◆ gdxConvert()

GAMSOptions::EgdxConvert::EgdxConvertEnum gams::GAMSOptions::gdxConvert ( )

Get Version of GDX files generated (for backward compatibility)

◆ gdxUels()

GAMSOptions::EgdxUels::EgdxUelsEnum gams::GAMSOptions::gdxUels ( )

Get Unload labels or UELs to GDX either squeezed or full.

◆ getDefine()

std::string gams::GAMSOptions::getDefine ( const std::string &  key)

Get value of previously set double-dash –key-value option pair.

◆ getInputDir()

std::string gams::GAMSOptions::getInputDir ( const int  index)

Get an inputdir at position index of the inputdir list.

◆ getSolver()

std::string gams::GAMSOptions::getSolver ( const std::string &  modelType)

Get solver by model type.

◆ gridDir()

std::string gams::GAMSOptions::gridDir ( )

Get Grid file directory.

◆ gridScript()

std::string gams::GAMSOptions::gridScript ( )

Get Grid submission script.

◆ heapLimit()

double gams::GAMSOptions::heapLimit ( )

Get Maximum Heap size allowed in MB.

◆ holdFixed()

GAMSOptions::EHoldFixed::EHoldFixedEnum gams::GAMSOptions::holdFixed ( )

Get Treat fixed variables as constants.

◆ holdFixedAsync()

GAMSOptions::EHoldFixedAsync::EHoldFixedAsyncEnum gams::GAMSOptions::holdFixedAsync ( )

Get Allow HoldFixed for models solved asynchronously as well.

◆ iDCGDXInput()

std::string gams::GAMSOptions::iDCGDXInput ( )

Get GDX file name with data for implicit input.

◆ iDCGDXOutput()

std::string gams::GAMSOptions::iDCGDXOutput ( )

Get GDX file name for data for implicit output.

◆ implicitAssign()

GAMSOptions::EImplicitAssign::EImplicitAssignEnum gams::GAMSOptions::implicitAssign ( )

Get Switch default for "$on/offImplicitAssign".

◆ inlineCom()

std::string gams::GAMSOptions::inlineCom ( )

Get Switch default for "$on/offInline" and "$inlineCom".

◆ inputDirSize()

int gams::GAMSOptions::inputDirSize ( )

Get the size of the inputdir list.

◆ integer1()

int gams::GAMSOptions::integer1 ( )

Get Integer communication cell N.

◆ integer2()

int gams::GAMSOptions::integer2 ( )

Get Integer communication cell N.

◆ integer3()

int gams::GAMSOptions::integer3 ( )

Get Integer communication cell N.

◆ integer4()

int gams::GAMSOptions::integer4 ( )

Get Integer communication cell N.

◆ integer5()

int gams::GAMSOptions::integer5 ( )

Get Integer communication cell N.

◆ interactiveSolver()

GAMSOptions::EInteractiveSolver::EInteractiveSolverEnum gams::GAMSOptions::interactiveSolver ( )

Get Allow solver to interact via command line input.

◆ intVarUp()

GAMSOptions::EIntVarUp::EIntVarUpEnum gams::GAMSOptions::intVarUp ( )

Get Set mode for default upper bounds on integer variables.

◆ iterLim()

int gams::GAMSOptions::iterLim ( )

Get Iteration limit of solver.

◆ jobTrace()

std::string gams::GAMSOptions::jobTrace ( )

Get Job trace string to be written to the trace file at the end of a GAMS job.

◆ keep()

GAMSOptions::EKeep::EKeepEnum gams::GAMSOptions::keep ( )

Get Controls keeping or deletion of process directory and scratch files.

◆ libIncDir()

std::string gams::GAMSOptions::libIncDir ( )

Get LibInclude directory.

◆ license()

std::string gams::GAMSOptions::license ( )

Get Use alternative license file.

◆ limCol()

int gams::GAMSOptions::limCol ( )

Get Maximum number of columns listed in one variable block.

◆ limRow()

int gams::GAMSOptions::limRow ( )

Get Maximum number of rows listed in one equation block.

◆ listing()

GAMSOptions::EListing::EListingEnum gams::GAMSOptions::listing ( )

Get Switch default for "$on/offListing".

◆ logID()

LogId gams::GAMSOptions::logID ( )

Get the GAMS log ID.

Returns
Returns the GAMS log ID.

◆ logLine()

GAMSOptions::ELogLine::ELogLineEnum gams::GAMSOptions::logLine ( )

Get Amount of line tracing to the log file.

◆ LP()

std::string gams::GAMSOptions::LP ( )

Get default LP solver.

◆ lstCase()

int gams::GAMSOptions::lstCase ( )

Get Output case option for LST file.

◆ lstTitleLeftAligned()

GAMSOptions::ELstTitleLeftAligned::ELstTitleLeftAlignedEnum gams::GAMSOptions::lstTitleLeftAligned ( )

Get Write title of LST file all left aligned.

◆ maxExecError()

int gams::GAMSOptions::maxExecError ( )

Get Execution time error limit.

◆ maxProcDir()

int gams::GAMSOptions::maxProcDir ( )

Get Maximum number of 225* process directories.

◆ MCP()

std::string gams::GAMSOptions::MCP ( )

Get default MCP solver.

◆ mIIMode()

GAMSOptions::EMIIMode::EMIIModeEnum gams::GAMSOptions::mIIMode ( )

Get Model Instance Mode.

◆ MINLP()

std::string gams::GAMSOptions::MINLP ( )

Get default MINLP solver.

◆ MIP()

std::string gams::GAMSOptions::MIP ( )

Get default MIP solver.

◆ MIQCP()

std::string gams::GAMSOptions::MIQCP ( )

Get default MIQCP solver.

◆ MPEC()

std::string gams::GAMSOptions::MPEC ( )

Get default MPEC solver.

◆ multi()

std::string gams::GAMSOptions::multi ( )

Get Switch default for "$on/offMulti[R]".

◆ NLP()

std::string gams::GAMSOptions::NLP ( )

Get default NLP solver.

◆ nodLim()

int gams::GAMSOptions::nodLim ( )

Get Node limit in branch and bound tree.

◆ noNewVarEqu()

GAMSOptions::ENoNewVarEqu::ENoNewVarEquEnum gams::GAMSOptions::noNewVarEqu ( )

Get Triggers a compilation error when new equations or variable symbols are introduced.

◆ on115()

GAMSOptions::EOn115::EOn115Enum gams::GAMSOptions::on115 ( )

Get Generate errors for unknown unique element in an equation.

◆ optCA()

double gams::GAMSOptions::optCA ( )

Get Absolute Optimality criterion solver default.

◆ optCR()

double gams::GAMSOptions::optCR ( )

Get Relative Optimality criterion solver default.

◆ optDir()

std::string gams::GAMSOptions::optDir ( )

Get Option file directory.

◆ optFile()

int gams::GAMSOptions::optFile ( )

Get Default option file.

◆ output()

std::string gams::GAMSOptions::output ( )

Get Listing file name.

◆ pageContr()

GAMSOptions::EPageContr::EPageContrEnum gams::GAMSOptions::pageContr ( )

Get Output file page control option.

◆ pageSize()

int gams::GAMSOptions::pageSize ( )

Get Output file page size (=0 no paging)

◆ pageWidth()

int gams::GAMSOptions::pageWidth ( )

Get Output file page width.

◆ pLicense()

std::string gams::GAMSOptions::pLicense ( )

Get Privacy license file name.

◆ prefixLoadPath()

GAMSOptions::EPrefixLoadPath::EPrefixLoadPathEnum gams::GAMSOptions::prefixLoadPath ( )

Get Prepend GAMS system directory to library load path.

◆ previousWork()

GAMSOptions::EPreviousWork::EPreviousWorkEnum gams::GAMSOptions::previousWork ( )

Get Indicator for writing workfile with previous workfile version.

◆ procTreeMemMonitor()

GAMSOptions::EProcTreeMemMonitor::EProcTreeMemMonitorEnum gams::GAMSOptions::procTreeMemMonitor ( )

Get Monitor the memory used by the GAMS process tree.

◆ procTreeMemTicks()

int gams::GAMSOptions::procTreeMemTicks ( )

Get Set wait interval between memory monitor checks: ticks = milliseconds.

◆ profile()

int gams::GAMSOptions::profile ( )

Get Execution profiling.

◆ profileFile()

std::string gams::GAMSOptions::profileFile ( )

Get Write profile information to this file.

◆ profileTol()

double gams::GAMSOptions::profileTol ( )

Get Minimum time a statement must use to appear in profile generated output.

◆ putDir()

std::string gams::GAMSOptions::putDir ( )

Get Put file directory.

◆ putND()

int gams::GAMSOptions::putND ( )

Get Number of decimals for put files.

◆ putNR()

GAMSOptions::EPutNR::EPutNREnum gams::GAMSOptions::putNR ( )

Get Numeric round format for put files.

◆ putPS()

int gams::GAMSOptions::putPS ( )

Get Page size for put files.

◆ putPW()

int gams::GAMSOptions::putPW ( )

Get Page width for put files.

◆ QCP()

std::string gams::GAMSOptions::QCP ( )

Get default QCP solver.

◆ reference()

std::string gams::GAMSOptions::reference ( )

Get Symbol reference file.

◆ referenceLineNo()

GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum gams::GAMSOptions::referenceLineNo ( )

Get Controls the line numbers written to a reference file.

◆ removeDefine()

bool gams::GAMSOptions::removeDefine ( const std::string &  key)

Remove a double-dash option.

◆ removeInputDir()

void gams::GAMSOptions::removeInputDir ( const int  index)

Remove an inputdir at position index of the inputdir list.

◆ replace()

GAMSOptions::EReplace::EReplaceEnum gams::GAMSOptions::replace ( )

Get Switch between merge and replace when reading from GDX into non-empty symbol.

◆ resLim()

double gams::GAMSOptions::resLim ( )

Get Wall-clock time limit for solver.

◆ RMINLP()

std::string gams::GAMSOptions::RMINLP ( )

Get default RMINLP solver.

◆ RMIP()

std::string gams::GAMSOptions::RMIP ( )

Get default RMIP solver.

◆ RMIQCP()

std::string gams::GAMSOptions::RMIQCP ( )

Get default RMIQCP solver.

◆ RMPEC()

std::string gams::GAMSOptions::RMPEC ( )

Get default RMPEC solver.

◆ savePoint()

GAMSOptions::ESavePoint::ESavePointEnum gams::GAMSOptions::savePoint ( )

Get Save solver point in GDX file.

◆ scriptExit()

std::string gams::GAMSOptions::scriptExit ( )

Get Program or script to be executed at the end of a GAMS run.

◆ seed()

int gams::GAMSOptions::seed ( )

Get Random number seed.

◆ setAction()

void gams::GAMSOptions::setAction ( const GAMSOptions::EAction::EActionEnum  value)

Set GAMS processing request.

◆ setAllModelTypes()

void gams::GAMSOptions::setAllModelTypes ( const std::string &  solver)

Set the solver for all model types the solver can handle.

◆ setAppendExpand()

void gams::GAMSOptions::setAppendExpand ( const GAMSOptions::EAppendExpand::EAppendExpandEnum  value)

Set Expand file append option.

◆ setAppendOut()

void gams::GAMSOptions::setAppendOut ( const GAMSOptions::EAppendOut::EAppendOutEnum  value)

Set Output file append option.

◆ setAsyncSolLst()

void gams::GAMSOptions::setAsyncSolLst ( const GAMSOptions::EAsyncSolLst::EAsyncSolLstEnum  value)

Set Print solution listing when asynchronous solve (Grid or Threads) is used.

◆ setBratio()

void gams::GAMSOptions::setBratio ( const double  value)

Set Basis detection threshold.

◆ setCaptureModelInstance()

void gams::GAMSOptions::setCaptureModelInstance ( const GAMSOptions::ECaptureModelInstance::ECaptureModelInstanceEnum  value)

Set Switch to capture all model instances within a run.

◆ setCErr()

void gams::GAMSOptions::setCErr ( const int  value)

Set Compile time error limit.

◆ setCharSet()

void gams::GAMSOptions::setCharSet ( const GAMSOptions::ECharSet::ECharSetEnum  value)

Set Character set flag.

◆ setCheckErrorLevel()

void gams::GAMSOptions::setCheckErrorLevel ( const GAMSOptions::ECheckErrorLevel::ECheckErrorLevelEnum  value)

Set Check errorLevel automatically after executing external program.

◆ setCNS()

void gams::GAMSOptions::setCNS ( const std::string &  value)

Set default CNS solver.

◆ setDecryptKey()

void gams::GAMSOptions::setDecryptKey ( const std::string &  value)

Set Key to decrypt a text file that was encrypted via $encrypt.

◆ setDefine()

void gams::GAMSOptions::setDefine ( const std::string &  key,
const std::string &  value 
)

Set double-dash –key=value option pair.

◆ setDFormat()

void gams::GAMSOptions::setDFormat ( const GAMSOptions::EDFormat::EDFormatEnum  value)

Set Date format.

◆ setDigit()

void gams::GAMSOptions::setDigit ( const GAMSOptions::EDigit::EDigitEnum  value)

Set Switch default for "$on/offDigit".

◆ setDNLP()

void gams::GAMSOptions::setDNLP ( const std::string &  value)

Set default DNLP solver.

◆ setDomLim()

void gams::GAMSOptions::setDomLim ( const int  value)

Set Domain violation limit solver default.

◆ setDumpOpt()

void gams::GAMSOptions::setDumpOpt ( const GAMSOptions::EDumpOpt::EDumpOptEnum  value)

Set Writes preprocessed input to the file input.dmp.

◆ setDumpOptGDX()

void gams::GAMSOptions::setDumpOptGDX ( const std::string &  value)

Set Defines a GDX file name stem created when using DumpOpt.

◆ setDumpParms()

void gams::GAMSOptions::setDumpParms ( const GAMSOptions::EDumpParms::EDumpParmsEnum  value)

Set GAMS parameter logging.

◆ setDumpParmsLogPrefix()

void gams::GAMSOptions::setDumpParmsLogPrefix ( const std::string &  value)

Set Prefix of lines triggered by DumpParms>1.

◆ setECImplicitLoad()

void gams::GAMSOptions::setECImplicitLoad ( const GAMSOptions::EECImplicitLoad::EECImplicitLoadEnum  value)

Set Allow implicit loading of symbols from embedded code or not.

◆ setEMP()

void gams::GAMSOptions::setEMP ( const std::string &  value)

Set default EMP solver.

◆ setEmpty()

void gams::GAMSOptions::setEmpty ( const GAMSOptions::EEmpty::EEmptyEnum  value)

Set Switch default for "$on/offEmpty".

◆ setEncryptKey()

void gams::GAMSOptions::setEncryptKey ( const std::string &  value)

Set Key to encrypt a text file using $encrypt.

◆ setEolCom()

void gams::GAMSOptions::setEolCom ( const std::string &  value)

Set Switch default for "$on/offEolCom" and "$eolCom".

◆ setErrMsg()

void gams::GAMSOptions::setErrMsg ( const GAMSOptions::EErrMsg::EErrMsgEnum  value)

Set Placing of compilation error messages.

◆ setErrorLog()

void gams::GAMSOptions::setErrorLog ( const int  value)

Set Max error message lines written to the log for each error.

◆ setETLim()

void gams::GAMSOptions::setETLim ( const double  value)

Set Elapsed time limit in seconds.

◆ setExecMode()

void gams::GAMSOptions::setExecMode ( const GAMSOptions::EExecMode::EExecModeEnum  value)

Set Limits on external programs that are allowed to be executed.

◆ setExpand()

void gams::GAMSOptions::setExpand ( const std::string &  value)

Set Expanded (include) input file name.

◆ setFDDelta()

void gams::GAMSOptions::setFDDelta ( const double  value)

Set Step size for finite differences.

◆ setFDOpt()

void gams::GAMSOptions::setFDOpt ( const GAMSOptions::EFDOpt::EFDOptEnum  value)

Set Options for finite differences.

◆ setFErr()

void gams::GAMSOptions::setFErr ( const std::string &  value)

Set Alternative error message file.

◆ setFileCase()

void gams::GAMSOptions::setFileCase ( const GAMSOptions::EFileCase::EFileCaseEnum  value)

Set Casing of file names and paths (put, gdx, ref, $include, etc.)

◆ setFileStem()

void gams::GAMSOptions::setFileStem ( const std::string &  value)

Set Sets the file stem for output files which use the input file name as stem by default.

◆ setFileStemApFromEnv()

void gams::GAMSOptions::setFileStemApFromEnv ( const std::string &  value)

Set Append a string read from an environment variable to the "FileStem".

◆ setFiltered()

void gams::GAMSOptions::setFiltered ( const GAMSOptions::EFiltered::EFilteredEnum  value)

Set Switch between filtered and domain-checked read from GDX.

◆ setForceOptFile()

void gams::GAMSOptions::setForceOptFile ( const int  value)

Set Overwrites other option file section mechanism.

◆ setForceWork()

void gams::GAMSOptions::setForceWork ( const GAMSOptions::EForceWork::EForceWorkEnum  value)

Set Force GAMS to process a save file created with a newer GAMS version or with execution errors.

◆ setForLim()

void gams::GAMSOptions::setForLim ( const int  value)

Set GAMS looping limit.

◆ setFreeEmbeddedPython()

void gams::GAMSOptions::setFreeEmbeddedPython ( const GAMSOptions::EFreeEmbeddedPython::EFreeEmbeddedPythonEnum  value)

Set Free external resources at the end of each embedded Python code blocks.

◆ setGdx()

void gams::GAMSOptions::setGdx ( const std::string &  value)

Set GDX file name.

◆ setgdxCompress()

void gams::GAMSOptions::setgdxCompress ( const GAMSOptions::EgdxCompress::EgdxCompressEnum  value)

Set Compression of generated GDX file.

◆ setgdxConvert()

void gams::GAMSOptions::setgdxConvert ( const GAMSOptions::EgdxConvert::EgdxConvertEnum  value)

Set Version of GDX files generated (for backward compatibility)

◆ setgdxUels()

void gams::GAMSOptions::setgdxUels ( const GAMSOptions::EgdxUels::EgdxUelsEnum  value)

Set Unload labels or UELs to GDX either squeezed or full.

◆ setGridDir()

void gams::GAMSOptions::setGridDir ( const std::string &  value)

Set Grid file directory.

◆ setGridScript()

void gams::GAMSOptions::setGridScript ( const std::string &  value)

Set Grid submission script.

◆ setHeapLimit()

void gams::GAMSOptions::setHeapLimit ( const double  value)

Set Maximum Heap size allowed in MB.

◆ setHoldFixed()

void gams::GAMSOptions::setHoldFixed ( const GAMSOptions::EHoldFixed::EHoldFixedEnum  value)

Set Treat fixed variables as constants.

◆ setHoldFixedAsync()

void gams::GAMSOptions::setHoldFixedAsync ( const GAMSOptions::EHoldFixedAsync::EHoldFixedAsyncEnum  value)

Set Allow HoldFixed for models solved asynchronously as well.

◆ setIDCGDXInput()

void gams::GAMSOptions::setIDCGDXInput ( const std::string &  value)

Set GDX file name with data for implicit input.

◆ setIDCGDXOutput()

void gams::GAMSOptions::setIDCGDXOutput ( const std::string &  value)

Set GDX file name for data for implicit output.

◆ setImplicitAssign()

void gams::GAMSOptions::setImplicitAssign ( const GAMSOptions::EImplicitAssign::EImplicitAssignEnum  value)

Set Switch default for "$on/offImplicitAssign".

◆ setInlineCom()

void gams::GAMSOptions::setInlineCom ( const std::string &  value)

Set Switch default for "$on/offInline" and "$inlineCom".

◆ setInputDir()

void gams::GAMSOptions::setInputDir ( const std::string  value,
const int  index 
)

Replace inputdir at the specified index of the inputdir list.

◆ setInteger1()

void gams::GAMSOptions::setInteger1 ( const int  value)

Set Integer communication cell N.

◆ setInteger2()

void gams::GAMSOptions::setInteger2 ( const int  value)

Set Integer communication cell N.

◆ setInteger3()

void gams::GAMSOptions::setInteger3 ( const int  value)

Set Integer communication cell N.

◆ setInteger4()

void gams::GAMSOptions::setInteger4 ( const int  value)

Set Integer communication cell N.

◆ setInteger5()

void gams::GAMSOptions::setInteger5 ( const int  value)

Set Integer communication cell N.

◆ setInteractiveSolver()

void gams::GAMSOptions::setInteractiveSolver ( const GAMSOptions::EInteractiveSolver::EInteractiveSolverEnum  value)

Set Allow solver to interact via command line input.

◆ setIntVarUp()

void gams::GAMSOptions::setIntVarUp ( const GAMSOptions::EIntVarUp::EIntVarUpEnum  value)

Set Set mode for default upper bounds on integer variables.

◆ setIterLim()

void gams::GAMSOptions::setIterLim ( const int  value)

Set Iteration limit of solver.

◆ setJobTrace()

void gams::GAMSOptions::setJobTrace ( const std::string &  value)

Set Job trace string to be written to the trace file at the end of a GAMS job.

◆ setKeep()

void gams::GAMSOptions::setKeep ( const GAMSOptions::EKeep::EKeepEnum  value)

Set Controls keeping or deletion of process directory and scratch files.

◆ setLibIncDir()

void gams::GAMSOptions::setLibIncDir ( const std::string &  value)

Set LibInclude directory.

◆ setLicense()

void gams::GAMSOptions::setLicense ( const std::string &  value)

Set Use alternative license file.

◆ setLimCol()

void gams::GAMSOptions::setLimCol ( const int  value)

Set Maximum number of columns listed in one variable block.

◆ setLimRow()

void gams::GAMSOptions::setLimRow ( const int  value)

Set Maximum number of rows listed in one equation block.

◆ setListing()

void gams::GAMSOptions::setListing ( const GAMSOptions::EListing::EListingEnum  value)

Set Switch default for "$on/offListing".

◆ setLogLine()

void gams::GAMSOptions::setLogLine ( const GAMSOptions::ELogLine::ELogLineEnum  value)

Set Amount of line tracing to the log file.

◆ setLP()

void gams::GAMSOptions::setLP ( const std::string &  value)

Set default LP solver.

◆ setLstCase()

void gams::GAMSOptions::setLstCase ( const int  value)

Set Output case option for LST file.

◆ setLstTitleLeftAligned()

void gams::GAMSOptions::setLstTitleLeftAligned ( const GAMSOptions::ELstTitleLeftAligned::ELstTitleLeftAlignedEnum  value)

Set Write title of LST file all left aligned.

◆ setMaxExecError()

void gams::GAMSOptions::setMaxExecError ( const int  value)

Set Execution time error limit.

◆ setMaxProcDir()

void gams::GAMSOptions::setMaxProcDir ( const int  value)

Set Maximum number of 225* process directories.

◆ setMCP()

void gams::GAMSOptions::setMCP ( const std::string &  value)

Set default MCP solver.

◆ setMIIMode()

void gams::GAMSOptions::setMIIMode ( const GAMSOptions::EMIIMode::EMIIModeEnum  value)

Set Model Instance Mode.

◆ setMINLP()

void gams::GAMSOptions::setMINLP ( const std::string &  value)

Set default MINLP solver.

◆ setMIP()

void gams::GAMSOptions::setMIP ( const std::string &  value)

Set default MIP solver.

◆ setMIQCP()

void gams::GAMSOptions::setMIQCP ( const std::string &  value)

Set default MIQCP solver.

◆ setMPEC()

void gams::GAMSOptions::setMPEC ( const std::string &  value)

Set default MPEC solver.

◆ setMulti()

void gams::GAMSOptions::setMulti ( const std::string &  value)

Set Switch default for "$on/offMulti[R]".

◆ setNLP()

void gams::GAMSOptions::setNLP ( const std::string &  value)

Set default NLP solver.

◆ setNodLim()

void gams::GAMSOptions::setNodLim ( const int  value)

Set Node limit in branch and bound tree.

◆ setNoNewVarEqu()

void gams::GAMSOptions::setNoNewVarEqu ( const GAMSOptions::ENoNewVarEqu::ENoNewVarEquEnum  value)

Set Triggers a compilation error when new equations or variable symbols are introduced.

◆ setOn115()

void gams::GAMSOptions::setOn115 ( const GAMSOptions::EOn115::EOn115Enum  value)

Set Generate errors for unknown unique element in an equation.

◆ setOptCA()

void gams::GAMSOptions::setOptCA ( const double  value)

Set Absolute Optimality criterion solver default.

◆ setOptCR()

void gams::GAMSOptions::setOptCR ( const double  value)

Set Relative Optimality criterion solver default.

◆ setOptDir()

void gams::GAMSOptions::setOptDir ( const std::string &  value)

Set Option file directory.

◆ setOptFile()

void gams::GAMSOptions::setOptFile ( const int  value)

Set Default option file.

◆ setOutput()

void gams::GAMSOptions::setOutput ( const std::string &  value)

Set Listing file name.

◆ setPageContr()

void gams::GAMSOptions::setPageContr ( const GAMSOptions::EPageContr::EPageContrEnum  value)

Set Output file page control option.

◆ setPageSize()

void gams::GAMSOptions::setPageSize ( const int  value)

Set Output file page size (=0 no paging)

◆ setPageWidth()

void gams::GAMSOptions::setPageWidth ( const int  value)

Set Output file page width.

◆ setPLicense()

void gams::GAMSOptions::setPLicense ( const std::string &  value)

Set Privacy license file name.

◆ setPrefixLoadPath()

void gams::GAMSOptions::setPrefixLoadPath ( const GAMSOptions::EPrefixLoadPath::EPrefixLoadPathEnum  value)

Set Prepend GAMS system directory to library load path.

◆ setPreviousWork()

void gams::GAMSOptions::setPreviousWork ( const GAMSOptions::EPreviousWork::EPreviousWorkEnum  value)

Set Indicator for writing workfile with previous workfile version.

◆ setProcTreeMemMonitor()

void gams::GAMSOptions::setProcTreeMemMonitor ( const GAMSOptions::EProcTreeMemMonitor::EProcTreeMemMonitorEnum  value)

Set Monitor the memory used by the GAMS process tree.

◆ setProcTreeMemTicks()

void gams::GAMSOptions::setProcTreeMemTicks ( const int  value)

Set Set wait interval between memory monitor checks: ticks = milliseconds.

◆ setProfile()

void gams::GAMSOptions::setProfile ( const int  value)

Set Execution profiling.

◆ setProfileFile()

void gams::GAMSOptions::setProfileFile ( const std::string &  value)

Set Write profile information to this file.

◆ setProfileTol()

void gams::GAMSOptions::setProfileTol ( const double  value)

Set Minimum time a statement must use to appear in profile generated output.

◆ setPutDir()

void gams::GAMSOptions::setPutDir ( const std::string &  value)

Set Put file directory.

◆ setPutND()

void gams::GAMSOptions::setPutND ( const int  value)

Set Number of decimals for put files.

◆ setPutNR()

void gams::GAMSOptions::setPutNR ( const GAMSOptions::EPutNR::EPutNREnum  value)

Set Numeric round format for put files.

◆ setPutPS()

void gams::GAMSOptions::setPutPS ( const int  value)

Set Page size for put files.

◆ setPutPW()

void gams::GAMSOptions::setPutPW ( const int  value)

Set Page width for put files.

◆ setQCP()

void gams::GAMSOptions::setQCP ( const std::string &  value)

Set default QCP solver.

◆ setReference()

void gams::GAMSOptions::setReference ( const std::string &  value)

Set Symbol reference file.

◆ setReferenceLineNo()

void gams::GAMSOptions::setReferenceLineNo ( const GAMSOptions::EReferenceLineNo::EReferenceLineNoEnum  value)

Set Controls the line numbers written to a reference file.

◆ setReplace()

void gams::GAMSOptions::setReplace ( const GAMSOptions::EReplace::EReplaceEnum  value)

Set Switch between merge and replace when reading from GDX into non-empty symbol.

◆ setResLim()

void gams::GAMSOptions::setResLim ( const double  value)

Set Wall-clock time limit for solver.

◆ setRMINLP()

void gams::GAMSOptions::setRMINLP ( const std::string &  value)

Set default RMINLP solver.

◆ setRMIP()

void gams::GAMSOptions::setRMIP ( const std::string &  value)

Set default RMIP solver.

◆ setRMIQCP()

void gams::GAMSOptions::setRMIQCP ( const std::string &  value)

Set default RMIQCP solver.

◆ setRMPEC()

void gams::GAMSOptions::setRMPEC ( const std::string &  value)

Set default RMPEC solver.

◆ setSavePoint()

void gams::GAMSOptions::setSavePoint ( const GAMSOptions::ESavePoint::ESavePointEnum  value)

Set Save solver point in GDX file.

◆ setScriptExit()

void gams::GAMSOptions::setScriptExit ( const std::string &  value)

Set Program or script to be executed at the end of a GAMS run.

◆ setSeed()

void gams::GAMSOptions::setSeed ( const int  value)

Set Random number seed.

◆ setShowOSMemory()

void gams::GAMSOptions::setShowOSMemory ( const GAMSOptions::EShowOSMemory::EShowOSMemoryEnum  value)

Set Show the memory usage reported by the Operating System instead of the internal counting.

◆ setSolPrint()

void gams::GAMSOptions::setSolPrint ( const GAMSOptions::ESolPrint::ESolPrintEnum  value)

Set Solution report print option.

◆ setSolveLink()

void gams::GAMSOptions::setSolveLink ( const GAMSOptions::ESolveLink::ESolveLinkEnum  value)

Set Solver link option.

◆ setSolveOpt()

void gams::GAMSOptions::setSolveOpt ( const GAMSOptions::ESolveOpt::ESolveOptEnum  value)

Set Multiple solve management.

◆ setSolver()

void gams::GAMSOptions::setSolver ( const std::string &  modelType,
const std::string &  solver 
)

Get solver by model type.

◆ setStepSum()

void gams::GAMSOptions::setStepSum ( const GAMSOptions::EStepSum::EStepSumEnum  value)

Set Summary of computing resources used by job steps.

◆ setstrictSingleton()

void gams::GAMSOptions::setstrictSingleton ( const GAMSOptions::EstrictSingleton::EstrictSingletonEnum  value)

Set Error if assignment to singleton set has multiple elements.

◆ setStringChk()

void gams::GAMSOptions::setStringChk ( const GAMSOptions::EStringChk::EStringChkEnum  value)

Set String substitution options.

◆ setSuffixAlgebraVars()

void gams::GAMSOptions::setSuffixAlgebraVars ( const GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum  value)

Set Switch default for "$on/offSuffixAlgebraVars".

◆ setSuffixDLVars()

void gams::GAMSOptions::setSuffixDLVars ( const GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum  value)

Set Switch default for "$on/offSuffixDLVars".

◆ setSuppress()

void gams::GAMSOptions::setSuppress ( const GAMSOptions::ESuppress::ESuppressEnum  value)

Set Compiler listing option.

◆ setSymbol()

void gams::GAMSOptions::setSymbol ( const std::string &  value)

Set Symbol table file.

◆ setSymPrefix()

void gams::GAMSOptions::setSymPrefix ( const std::string &  value)

Set Prefix all symbols encountered during compilation by the specified string in work file.

◆ setSys10()

void gams::GAMSOptions::setSys10 ( const GAMSOptions::ESys10::ESys10Enum  value)

Set Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.

◆ setSys11()

void gams::GAMSOptions::setSys11 ( const GAMSOptions::ESys11::ESys11Enum  value)

Set Dynamic resorting if indices in assignment/data statements are not in natural order.

◆ setSys12()

void gams::GAMSOptions::setSys12 ( const int  value)

Set Pass model with generation errors to solver.

◆ setSysIncDir()

void gams::GAMSOptions::setSysIncDir ( const std::string &  value)

Set SysInclude directory.

◆ setSysOut()

void gams::GAMSOptions::setSysOut ( const GAMSOptions::ESysOut::ESysOutEnum  value)

Set Solver Status file reporting option.

◆ setTabIn()

void gams::GAMSOptions::setTabIn ( const int  value)

Set Tab spacing.

◆ setTFormat()

void gams::GAMSOptions::setTFormat ( const GAMSOptions::ETFormat::ETFormatEnum  value)

Set Time format.

◆ setThreads()

void gams::GAMSOptions::setThreads ( const int  value)

Set Number of processors to be used by a solver.

◆ setThreadsAsync()

void gams::GAMSOptions::setThreadsAsync ( const int  value)

Set Limit on number of threads to be used for asynchronous solves (solveLink=6)

◆ setTimer()

void gams::GAMSOptions::setTimer ( const int  value)

Set Instruction timer threshold in milli seconds.

◆ setTrace()

void gams::GAMSOptions::setTrace ( const std::string &  value)

Set Trace file name.

◆ setTraceLevel()

void gams::GAMSOptions::setTraceLevel ( const int  value)

Set Modelstat/Solvestat threshold used in conjunction with action=GT.

◆ setTraceOpt()

void gams::GAMSOptions::setTraceOpt ( const GAMSOptions::ETraceOpt::ETraceOptEnum  value)

Set Trace file format option.

◆ setUser1()

void gams::GAMSOptions::setUser1 ( const std::string &  value)

Set User string N.

◆ setUser2()

void gams::GAMSOptions::setUser2 ( const std::string &  value)

Set User string N.

◆ setUser3()

void gams::GAMSOptions::setUser3 ( const std::string &  value)

Set User string N.

◆ setUser4()

void gams::GAMSOptions::setUser4 ( const std::string &  value)

Set User string N.

◆ setUser5()

void gams::GAMSOptions::setUser5 ( const std::string &  value)

Set User string N.

◆ setWarnings()

void gams::GAMSOptions::setWarnings ( const int  value)

Set Number of warnings permitted before a run terminates.

◆ setWorkFactor()

void gams::GAMSOptions::setWorkFactor ( const double  value)

Set Memory Estimate multiplier for some solvers.

◆ setWorkSpace()

void gams::GAMSOptions::setWorkSpace ( const double  value)

Set Work space for some solvers in MB.

◆ setZeroRes()

void gams::GAMSOptions::setZeroRes ( const double  value)

Set The results of certain operations will be set to zero if abs(result) LE ZeroRes.

◆ setZeroResRep()

void gams::GAMSOptions::setZeroResRep ( const GAMSOptions::EZeroResRep::EZeroResRepEnum  value)

Set Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.

◆ showOSMemory()

GAMSOptions::EShowOSMemory::EShowOSMemoryEnum gams::GAMSOptions::showOSMemory ( )

Get Show the memory usage reported by the Operating System instead of the internal counting.

◆ solPrint()

GAMSOptions::ESolPrint::ESolPrintEnum gams::GAMSOptions::solPrint ( )

Get Solution report print option.

◆ solveLink()

GAMSOptions::ESolveLink::ESolveLinkEnum gams::GAMSOptions::solveLink ( )

Get Solver link option.

◆ solveOpt()

GAMSOptions::ESolveOpt::ESolveOptEnum gams::GAMSOptions::solveOpt ( )

Get Multiple solve management.

◆ stepSum()

GAMSOptions::EStepSum::EStepSumEnum gams::GAMSOptions::stepSum ( )

Get Summary of computing resources used by job steps.

◆ strictSingleton()

GAMSOptions::EstrictSingleton::EstrictSingletonEnum gams::GAMSOptions::strictSingleton ( )

Get Error if assignment to singleton set has multiple elements.

◆ stringChk()

GAMSOptions::EStringChk::EStringChkEnum gams::GAMSOptions::stringChk ( )

Get String substitution options.

◆ suffixAlgebraVars()

GAMSOptions::ESuffixAlgebraVars::ESuffixAlgebraVarsEnum gams::GAMSOptions::suffixAlgebraVars ( )

Get Switch default for "$on/offSuffixAlgebraVars".

◆ suffixDLVars()

GAMSOptions::ESuffixDLVars::ESuffixDLVarsEnum gams::GAMSOptions::suffixDLVars ( )

Get Switch default for "$on/offSuffixDLVars".

◆ suppress()

GAMSOptions::ESuppress::ESuppressEnum gams::GAMSOptions::suppress ( )

Get Compiler listing option.

◆ symbol()

std::string gams::GAMSOptions::symbol ( )

Get Symbol table file.

◆ symPrefix()

std::string gams::GAMSOptions::symPrefix ( )

Get Prefix all symbols encountered during compilation by the specified string in work file.

◆ sys10()

GAMSOptions::ESys10::ESys10Enum gams::GAMSOptions::sys10 ( )

Get Changes rpower to ipower when the exponent is constant and within 1e-12 of an integer.

◆ sys11()

GAMSOptions::ESys11::ESys11Enum gams::GAMSOptions::sys11 ( )

Get Dynamic resorting if indices in assignment/data statements are not in natural order.

◆ sys12()

int gams::GAMSOptions::sys12 ( )

Get Pass model with generation errors to solver.

◆ sysIncDir()

std::string gams::GAMSOptions::sysIncDir ( )

Get SysInclude directory.

◆ sysOut()

GAMSOptions::ESysOut::ESysOutEnum gams::GAMSOptions::sysOut ( )

Get Solver Status file reporting option.

◆ tabIn()

int gams::GAMSOptions::tabIn ( )

Get Tab spacing.

◆ tFormat()

GAMSOptions::ETFormat::ETFormatEnum gams::GAMSOptions::tFormat ( )

Get Time format.

◆ threads()

int gams::GAMSOptions::threads ( )

Get Number of processors to be used by a solver.

◆ threadsAsync()

int gams::GAMSOptions::threadsAsync ( )

Get Limit on number of threads to be used for asynchronous solves (solveLink=6)

◆ timer()

int gams::GAMSOptions::timer ( )

Get Instruction timer threshold in milli seconds.

◆ trace()

std::string gams::GAMSOptions::trace ( )

Get Trace file name.

◆ traceLevel()

int gams::GAMSOptions::traceLevel ( )

Get Modelstat/Solvestat threshold used in conjunction with action=GT.

◆ traceOpt()

GAMSOptions::ETraceOpt::ETraceOptEnum gams::GAMSOptions::traceOpt ( )

Get Trace file format option.

◆ user1()

std::string gams::GAMSOptions::user1 ( )

Get User string N.

◆ user2()

std::string gams::GAMSOptions::user2 ( )

Get User string N.

◆ user3()

std::string gams::GAMSOptions::user3 ( )

Get User string N.

◆ user4()

std::string gams::GAMSOptions::user4 ( )

Get User string N.

◆ user5()

std::string gams::GAMSOptions::user5 ( )

Get User string N.

◆ warnings()

int gams::GAMSOptions::warnings ( )

Get Number of warnings permitted before a run terminates.

◆ workFactor()

double gams::GAMSOptions::workFactor ( )

Get Memory Estimate multiplier for some solvers.

◆ workSpace()

double gams::GAMSOptions::workSpace ( )

Get Work space for some solvers in MB.

◆ writeOptionFile()

void gams::GAMSOptions::writeOptionFile ( const std::string &  optFileName)

Export options to an option file.

◆ zeroRes()

double gams::GAMSOptions::zeroRes ( )

Get The results of certain operations will be set to zero if abs(result) LE ZeroRes.

◆ zeroResRep()

GAMSOptions::EZeroResRep::EZeroResRepEnum gams::GAMSOptions::zeroResRep ( )

Get Report underflow as a warning when abs(results) LE ZeroRes and result set to zero.