123 std::ostringstream outStr;
124 outStr <<
"The following command line options and values have been read:"
127 outStr <<
"Service Location = "
131 outStr <<
"Service Method = "
135 outStr <<
"Selected Solver = "
140 outStr <<
"Config file = "
144 outStr <<
"OSiL file = "
148 outStr <<
"OSiL output file = "
152 outStr <<
"OSoL file = "
156 outStr <<
"OSoL output file = "
160 outStr <<
"OSrL file = "
164 outStr <<
"Instruction List file = "
168 outStr <<
"OSpL Input file = "
172 outStr <<
"OSpL Output file = "
176 outStr <<
"MPS File Name = "
180 outStr <<
"NL File Name = "
184 outStr <<
"GAMS dat file = "
188 outStr <<
"GAMS control file = "
193 outStr <<
"Result browser = "
196 outStr <<
"Print level for stdout: "
201 outStr <<
"Secondary log to "
204 outStr <<
"Print level for " <<
logFile <<
": "
209 outStr <<
"job ID = "
214 outStr <<
"Print model = true"
217 outStr <<
"Print row "
std::string datFile
the name of the file that holds an instance in GAMS dat format
int printLevel
this parameter controls the amount of output to print the higher the number, the more output is gener...
bool invokeHelp
if this parameter is true we print the contents of the file help.txt and return
std::string insList
insList is the content of the insListFile – this is not implemented
#define DEFAULT_OUTPUT_LEVEL
const OSSmartPtr< OSOutput > osoutput
std::string dat
the string that holds an instance in GAMS dat format
bool writeVersion
if this parameter is true we print the current version of the OS project
std::string osplInput
osplInput is the content of the osplInputFile
std::string serviceLocation
serviceLocation is the URL of the remote solver when a local solver is not used
std::string osilOutputFile
osilOutputFile is the name of the file to which the instance can be written in OSiL format...
std::string jobID
the JobID
std::string osil
osil is the content of the osilFile
std::string nlFile
the name of the file that holds an instance in AMPL nl format
bool OSPrint(ENUM_OUTPUT_AREA area, ENUM_OUTPUT_LEVEL level, std::string outStr)
This is the main method to output a string All output generated by the program should ultimately use ...
Template class for Smart Pointers.
std::string nl
the string that holds an instance in AMPL nl format
bool listOptions
if this parameter is true we echo the values of the options found on the command line ...
std::string browser
this parameter is a path to the browser on the local machine.
std::string osplInputFile
name of an input file with xml in OS process language format, used for example to knock on a server...
std::string osrlFile
osrlFile is the name of the file where the solver should write the result (in OSrL format) ...
std::string gamsControlFile
the name of the file that holds the GAMS control parameters
std::string logFile
this optional parameter contains the path to a logfile that can be used as an alternate output stream...
OSInstance * osinstance
osinstance is a representation of the instance in OSInstance format
std::string mps
the string that holds an instance in MPS format
std::string osilFile
osilFile is the name of the file that holds the model instance in OSiL format
std::string osplOutputFile
name of an output file where the solver should write the result of a knock or kill service request ...
bool printModel
if this parameter is true we print the current instance as read from an osil, nl or mps file ...
std::string osolOutputFile
osolOutputFile is the name of the file to which the solver options can be written in OSoL format...
std::string printRowNumberAsString
this parameter contains a string representation (!) of the row number if only a single row (constrain...
std::string configFile
configFile is the name of the file that holds the configuration options if the OSSolverService reads ...
std::string mpsFile
the name of the file that holds an instance in MPS format
int filePrintLevel
this parameter controls the amount of output to send to the log file (if used) the higher the number...
std::string serviceMethod
the service method the OSSolverService should execute, i.e.
std::string osol
osol is the content of the osolFile
OSCommandLine()
constructor method
std::string insListFile
name of the file containing the instance in LINDO instruction list format
bool quit
if this parameter is true we quit/exit
std::string osolFile
osolFile is the name of the file that holds the solver options in OSoL format
void convertSolverNameToLowerCase()
to avoid ambiguity it might be necessary to convert the solver name to lower case ...
~OSCommandLine()
destructor method
std::string list_options()
a function to print the current command line option values
std::string solverName
the name of the solver to be invoked locally, e.g -solver Ipopt
OSOption * osoption
osoption is a representation of the solver options in OSOption format
void convertSolverNameToUpperCase()
...
void reset_options()
a function to reset the command line to default values useful especially in the interactive shell ...