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

Go to the source code of this file.

Defines

#define DEBUG_CL_INTERFACE
#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 (osOptionsStruc *osoptions, void *scanner)
int ossslex (void *scanner)
int ossslex_init (void **ptr)
int ossslex_destroy (void *scanner)
void interactiveShell ()
 Interactive shell.
std::string get_help ()
std::string get_version ()
std::string get_options ()
void reset_options ()
void solve ()
 Next we have implementations of the six service methods solve, send, retrieve, knock, kill, getJobID.
void getJobID ()
void send ()
void kill ()
void retrieve ()
void knock ()
void getOSiLFromNl ()
 Some wrappers around routines that allow getting problem instances in other formats: .nl (from AMPL), GAMS, MPS format.
void getOSiLFromMps ()
void getOSiLFromGams ()
void listOptions (osOptionsStruc *osoptions)
void doPrintModel (osOptionsStruc *osoptions)
void doPrintModel (OSInstance *osinstance)
void doPrintRow (osOptionsStruc *osoptions)
void doPrintRow (OSInstance *osinstance, std::string rownumberstring)
void getServiceLocation ()
int main (int argC, const char *argV[])

Variables

osOptionsStrucosoptions

Detailed Description

Author:
Horand Gassmann, Jun Ma, Kipp Martin
Remarks:
Copyright (C) 2005-2012, Horand Gassmann, Jun Ma, Kipp Martin, Dalhousie University, 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:

Author:
Horand Gassmann, Jun Ma, Kipp Martin
Remarks:
Copyright (C) 2005-2012, Horand Gassmann, Jun Ma, Kipp Martin, Dalhousie University, 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 DEBUG_CL_INTERFACE

Definition at line 139 of file OSSolverService.cpp.

#define MAXCHARS   5000

Definition at line 142 of file OSSolverService.cpp.


Typedef Documentation

Definition at line 144 of file OSSolverService.cpp.


Function Documentation

YY_BUFFER_STATE osss_scan_string ( const char *  osss,
void *  scanner 
)
void setyyextra ( osOptionsStruc osoptions,
void *  scanner 
)

Definition at line 3059 of file OSParseosss.cpp.

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

Definition at line 2887 of file OSParseosss.cpp.

int ossslex_destroy ( void *  scanner  ) 

Definition at line 2978 of file OSParseosss.cpp.

void interactiveShell (  ) 

Interactive shell.

Definition at line 1402 of file OSSolverService.cpp.

std::string get_help (  ) 

Definition at line 1913 of file OSSolverService.cpp.

std::string get_version (  ) 

Definition at line 2107 of file OSSolverService.cpp.

std::string get_options (  ) 

Definition at line 2154 of file OSSolverService.cpp.

void reset_options (  ) 

Definition at line 2119 of file OSSolverService.cpp.

void solve (  ) 

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

Definition at line 588 of file OSSolverService.cpp.

void getJobID (  ) 

Definition at line 862 of file OSSolverService.cpp.

void send (  ) 

Definition at line 1012 of file OSSolverService.cpp.

void kill (  ) 

Definition at line 1221 of file OSSolverService.cpp.

void retrieve (  ) 

Definition at line 1122 of file OSSolverService.cpp.

void knock (  ) 

Definition at line 927 of file OSSolverService.cpp.

void getOSiLFromNl (  ) 

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

Definition at line 1315 of file OSSolverService.cpp.

void getOSiLFromMps (  ) 

Definition at line 1375 of file OSSolverService.cpp.

void getOSiLFromGams (  ) 

Definition at line 1345 of file OSSolverService.cpp.

void listOptions ( osOptionsStruc osoptions  ) 

Definition at line 2269 of file OSSolverService.cpp.

void doPrintModel ( osOptionsStruc osoptions  ) 

Definition at line 2322 of file OSSolverService.cpp.

void doPrintModel ( OSInstance osinstance  ) 

Definition at line 2364 of file OSSolverService.cpp.

void doPrintRow ( osOptionsStruc osoptions  ) 

Definition at line 2377 of file OSSolverService.cpp.

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

Definition at line 2435 of file OSSolverService.cpp.

void getServiceLocation (  )  [inline]

Definition at line 185 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: --help, --version

Definition at line 196 of file OSSolverService.cpp.


Variable Documentation

Definition at line 183 of file OSSolverService.cpp.


Generated on 15 Jul 2012 by  doxygen 1.6.1