/home/coin/svn-release/OS-2.8.4/OS/src/OSSolverService.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 "OSnl2OS.h"
#include "OSCommandLine.h"
#include <stdio.h>
#include <map>
Include dependency graph for OSSolverService.cpp:

Go to the source code of this file.

Defines

#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

Detailed Description

Author:
Horand Gassmann, Jun Ma, Kipp Martin
Remarks:
Copyright (C) 2005-2012, Horand Gassmann, Jun Ma, Kipp Martin, Northwestern University, and the University of Chicago. All Rights Reserved. This software is licensed under the Eclipse Public License. Please see the accompanying LICENSE file in root directory for terms.

INPUTS:

Definition in file OSSolverService.cpp.


Define Documentation

#define MAXCHARS   5000

Definition at line 136 of file OSSolverService.cpp.


Typedef Documentation

Definition at line 138 of file OSSolverService.cpp.


Function Documentation

YY_BUFFER_STATE osss_scan_string ( const char *  osss,
void *  scanner 
)
void setyyextra ( OSCommandLine oscommandline,
void *  scanner 
)

Definition at line 3383 of file OSParseosss.cpp.

int ossslex ( void *  scanner  ) 
int ossslex_init ( void **  ptr  ) 

Definition at line 3211 of file OSParseosss.cpp.

int ossslex_destroy ( void *  scanner  ) 

Definition at line 3302 of file OSParseosss.cpp.

void interactiveShell (  ) 

Definition at line 1575 of file OSSolverService.cpp.

std::string get_help (  ) 

Definition at line 2095 of file OSSolverService.cpp.

std::string get_version (  ) 

Definition at line 2288 of file OSSolverService.cpp.

std::string get_options (  ) 

Definition at line 2299 of file OSSolverService.cpp.

void list_options ( OSCommandLine oscommandline  ) 

Definition at line 2438 of file OSSolverService.cpp.

void solve ( OSCommandLine oscommandline  ) 

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

Definition at line 674 of file OSSolverService.cpp.

void getJobID ( OSCommandLine oscommandline  ) 

Definition at line 935 of file OSSolverService.cpp.

void send ( OSCommandLine oscommandline  ) 

Definition at line 1118 of file OSSolverService.cpp.

void kill ( OSCommandLine oscommandline  ) 

Definition at line 1363 of file OSSolverService.cpp.

void retrieve ( OSCommandLine oscommandline  ) 

Definition at line 1245 of file OSSolverService.cpp.

void knock ( OSCommandLine oscommandline  ) 

Definition at line 1001 of file OSSolverService.cpp.

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 1474 of file OSSolverService.cpp.

void getOSiLFromMps ( OSCommandLine oscommandline  ) 

Definition at line 1536 of file OSSolverService.cpp.

void getOSiLFromGams ( OSCommandLine oscommandline  ) 

Definition at line 1506 of file OSSolverService.cpp.

void doPrintModel ( OSCommandLine oscommandline  ) 

Definition at line 2491 of file OSSolverService.cpp.

void doPrintModel ( OSInstance osinstance  ) 

Definition at line 2536 of file OSSolverService.cpp.

void doPrintRow ( OSCommandLine oscommandline  ) 

Definition at line 2549 of file OSSolverService.cpp.

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

Definition at line 2610 of file OSSolverService.cpp.

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.cpp.

void getServiceLocation ( OSCommandLine oscommandline  )  [inline]

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

Definition at line 1564 of file OSSolverService.cpp.


Variable Documentation

Definition at line 39 of file OSOutput.cpp.


Generated on 13 Dec 2014 by  doxygen 1.6.1