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 "
const OSSmartPtr< OSOutput > osoutput
const OSSmartPtr< OSOutput > osoutput
bool quit
if this parameter is true we quit/exit
std::string jobID
the JobID
OSOption * osoption
osoption is a representation of the solver options in OSOption format
std::string insListFile
name of the file containing the instance in LINDO instruction list format
std::string nl
the string that holds an instance in AMPL nl format
std::string serviceLocation
serviceLocation is the URL of the remote solver when a local solver is not used
std::string osplInputFile
name of an input file with xml in OS process language format, used for example to knock on a server,...
OSInstance * osinstance
osinstance is a representation of the instance in OSInstance format
bool writeVersion
if this parameter is true we print the current version of the OS project
int printLevel
this parameter controls the amount of output to print the higher the number, the more output is gener...
std::string datFile
the name of the file that holds an instance in GAMS dat format
~OSCommandLine()
destructor method
std::string printRowNumberAsString
this parameter contains a string representation (!) of the row number if only a single row (constrain...
std::string nlFile
the name of the file that holds an instance in AMPL nl format
std::string dat
the string that holds an instance in GAMS dat format
std::string osilOutputFile
osilOutputFile is the name of the file to which the instance can be written in OSiL format.
std::string logFile
this optional parameter contains the path to a logfile that can be used as an alternate output stream...
std::string osplOutputFile
name of an output file where the solver should write the result of a knock or kill service request
std::string solverName
the name of the solver to be invoked locally, e.g -solver Ipopt
std::string mpsFile
the name of the file that holds an instance in MPS format
void convertSolverNameToLowerCase()
to avoid ambiguity it might be necessary to convert the solver name to lower case ....
std::string list_options()
a function to print the current command line option values
bool listOptions
if this parameter is true we echo the values of the options found on the command line
bool invokeHelp
if this parameter is true we print the contents of the file help.txt and return
std::string osolFile
osolFile is the name of the file that holds the solver options in OSoL format
std::string osplInput
osplInput is the content of the osplInputFile
std::string browser
this parameter is a path to the browser on the local machine.
int filePrintLevel
this parameter controls the amount of output to send to the log file (if used) the higher the number,...
std::string configFile
configFile is the name of the file that holds the configuration options if the OSSolverService reads ...
void reset_options()
a function to reset the command line to default values useful especially in the interactive shell
std::string gamsControlFile
the name of the file that holds the GAMS control parameters
std::string osil
osil is the content of the osilFile
std::string insList
insList is the content of the insListFile – this is not implemented
bool printModel
if this parameter is true we print the current instance as read from an osil, nl or mps file
std::string osrlFile
osrlFile is the name of the file where the solver should write the result (in OSrL format)
std::string osolOutputFile
osolOutputFile is the name of the file to which the solver options can be written in OSoL format.
OSCommandLine()
constructor method
std::string serviceMethod
the service method the OSSolverService should execute, i.e.
void convertSolverNameToUpperCase()
... or to upper case
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 osol
osol is the content of the osolFile
Template class for Smart Pointers.
This file defines the OSInstance class along with its supporting classes.
#define DEFAULT_OUTPUT_LEVEL
@ ENUM_OUTPUT_LEVEL_trace