My Project
OSSolverService_old.cpp File Reference
#include "OSCoinSolver.h"
#include "OSResult.h"
#include "OSiLReader.h"
#include "OSiLWriter.h"
#include "OSoLReader.h"
#include "OSrLReader.h"
#include "OSrLWriter.h"
#include "OSInstance.h"
#include "OSOption.h"
#include "OSoLWriter.h"
#include "OSFileUtil.h"
#include "OSOutput.h"
#include "OSConfig.h"
#include "OSDefaultSolver.h"
#include "OSWSUtil.h"
#include "OSSolverAgent.h"
#include "OShL.h"
#include "OSErrorClass.h"
#include "OSmps2osil.h"
#include "OSBase64.h"
#include "OSRunSolver.h"
#include "OSCommandLine.h"
#include <stdio.h>
#include <map>

Go to the source code of this file.

Macros

#define MAXCHARS   5000
 

Typedefs

typedef struct yy_buffer_stateYY_BUFFER_STATE
 

Functions

YY_BUFFER_STATE osss_scan_string (const char *osss, void *scanner)
 
void setyyextra (OSCommandLine *oscommandline, void *scanner)
 
int ossslex (void *scanner)
 
int ossslex_init (void **ptr)
 
int ossslex_destroy (void *scanner)
 
void interactiveShell ()
 
std::string get_help ()
 
std::string get_version ()
 
std::string get_options ()
 
void list_options (OSCommandLine *oscommandline)
 
void solve (OSCommandLine *oscommandline)
 Next we have implementations of the six service methods solve, send, retrieve, knock, kill, getJobID.
 
void getJobID (OSCommandLine *oscommandline)
 
void send (OSCommandLine *oscommandline)
 
void kill (OSCommandLine *oscommandline)
 
void retrieve (OSCommandLine *oscommandline)
 
void knock (OSCommandLine *oscommandline)
 
void getOSiLFromNl (OSCommandLine *oscommandline)
 Some wrappers around routines that allow getting problem instances in other formats: .nl (from AMPL), GAMS, MPS format.
 
void getOSiLFromMps (OSCommandLine *oscommandline)
 
void getOSiLFromGams (OSCommandLine *oscommandline)
 
void doPrintModel (OSCommandLine *oscommandline)
 
void doPrintModel (OSInstance *osinstance)
 
void doPrintRow (OSCommandLine *oscommandline)
 
void doPrintRow (OSInstance *osinstance, std::string rownumberstring)
 
int main (int argC, const char *argV[])
 
void getServiceLocation (OSCommandLine *oscommandline)
 ======================== Interactive shell =========================
 

Variables

const OSSmartPtr< OSOutputosoutput
 

Macro Definition Documentation

◆ MAXCHARS

#define MAXCHARS   5000

Definition at line 136 of file OSSolverService_old.cpp.

Typedef Documentation

◆ YY_BUFFER_STATE

Definition at line 138 of file OSSolverService_old.cpp.

Function Documentation

◆ osss_scan_string()

YY_BUFFER_STATE osss_scan_string ( const char * osss,
void * scanner )

◆ setyyextra()

void setyyextra ( OSCommandLine * oscommandline,
void * scanner )

Definition at line 3383 of file OSParseosss.cpp.

◆ ossslex()

int ossslex ( void * scanner)

◆ ossslex_init()

int ossslex_init ( void ** ptr)

Definition at line 3211 of file OSParseosss.cpp.

◆ ossslex_destroy()

int ossslex_destroy ( void * scanner)

Definition at line 3302 of file OSParseosss.cpp.

◆ interactiveShell()

void interactiveShell ( )

Definition at line 1499 of file OSSolverService_old.cpp.

◆ get_help()

std::string get_help ( )

Definition at line 2019 of file OSSolverService_old.cpp.

◆ get_version()

std::string get_version ( )

Definition at line 2212 of file OSSolverService_old.cpp.

◆ get_options()

std::string get_options ( )

Definition at line 2223 of file OSSolverService_old.cpp.

◆ list_options()

void list_options ( OSCommandLine * oscommandline)

Definition at line 2362 of file OSSolverService_old.cpp.

◆ solve()

void solve ( OSCommandLine * oscommandline)

Next we have implementations of the six service methods solve, send, retrieve, knock, kill, getJobID.

Definition at line 670 of file OSSolverService_old.cpp.

◆ getJobID()

void getJobID ( OSCommandLine * oscommandline)

Definition at line 938 of file OSSolverService_old.cpp.

◆ send()

void send ( OSCommandLine * oscommandline)

Definition at line 1089 of file OSSolverService_old.cpp.

◆ kill()

void kill ( OSCommandLine * oscommandline)

Definition at line 1304 of file OSSolverService_old.cpp.

◆ retrieve()

void retrieve ( OSCommandLine * oscommandline)

Definition at line 1199 of file OSSolverService_old.cpp.

◆ knock()

void knock ( OSCommandLine * oscommandline)

Definition at line 1003 of file OSSolverService_old.cpp.

◆ getOSiLFromNl()

void getOSiLFromNl ( OSCommandLine * oscommandline)

Some wrappers around routines that allow getting problem instances in other formats: .nl (from AMPL), GAMS, MPS format.

Definition at line 1398 of file OSSolverService_old.cpp.

◆ getOSiLFromMps()

void getOSiLFromMps ( OSCommandLine * oscommandline)

Definition at line 1460 of file OSSolverService_old.cpp.

◆ getOSiLFromGams()

void getOSiLFromGams ( OSCommandLine * oscommandline)

Definition at line 1430 of file OSSolverService_old.cpp.

◆ doPrintModel() [1/2]

void doPrintModel ( OSCommandLine * oscommandline)

Definition at line 2415 of file OSSolverService_old.cpp.

◆ doPrintModel() [2/2]

void doPrintModel ( OSInstance * osinstance)

Definition at line 2460 of file OSSolverService_old.cpp.

◆ doPrintRow() [1/2]

void doPrintRow ( OSCommandLine * oscommandline)

Definition at line 2473 of file OSSolverService_old.cpp.

◆ doPrintRow() [2/2]

void doPrintRow ( OSInstance * osinstance,
std::string rownumberstring )

Definition at line 2534 of file OSSolverService_old.cpp.

◆ main()

int main ( int argC,
const char * argV[] )

Parse the command line

new – added on September 19, 2011 If we are here, then the command line had a configure file. Command line options should override the config file so go back and get these options again

end of new code added on September 19, 2011

Deal with action items: -printLevel, -logFile, -filePrintLevel, –help, –version

Definition at line 172 of file OSSolverService_old.cpp.

◆ getServiceLocation()

void getServiceLocation ( OSCommandLine * oscommandline)
inline

======================== Interactive shell =========================

Definition at line 1488 of file OSSolverService_old.cpp.

Variable Documentation

◆ osoutput

const OSSmartPtr<OSOutput> osoutput
extern

Definition at line 39 of file OSOutput.cpp.