OS  2.10.1
Functions
OSRunSolver.h File Reference
#include "OSDefaultSolver.h"
+ Include dependency graph for OSRunSolver.h:

Go to the source code of this file.

Functions

std::string runSolver (std::string solverName, std::string osol, OSInstance *osinstance)
 This class is used to invoke a solver locally. More...
 
std::string runSolver (std::string solverName, OSOption *osoption, std::string osil)
 Alternate signature for this method. More...
 
std::string runSolver (std::string solverName, std::string osol, std::string osil)
 Alternate signature for this method. More...
 
std::string runSolver (std::string solverName, OSOption *osoption, OSInstance *osinstance)
 Alternate signature for this method. More...
 
DefaultSolverselectSolver (std::string solverName, OSInstance *osinstance)
 A method to select the solver. More...
 

Detailed Description

Author
Horand Gassmann, Jun Ma, Kipp Martin,
Remarks
Copyright (C) 2005-2013, 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.

Definition in file OSRunSolver.h.

Function Documentation

§ runSolver() [1/4]

std::string runSolver ( std::string  solverName,
std::string  osol,
OSInstance osinstance 
)

This class is used to invoke a solver locally.

A wrapper around the solve() method

Parameters
solverNameThe name of the solver selected by the user If empty, a default solver is selected
osolA string containing the user options in osol format
osinstanceA pointer to an OSInstance object containing the instance to be optimized
Returns
the solution (or error message) in OSrL format

§ runSolver() [2/4]

std::string runSolver ( std::string  solverName,
OSOption osoption,
std::string  osil 
)

Alternate signature for this method.

Parameters
solverNameThe name of the solver selected by the user If empty, a default solver is selected
osoptionA pointer to an OSOption object containing the options to be passed to the solver
osilA string containing the instance to be optimized
Returns
the solution (or error message) in OSrL format

§ runSolver() [3/4]

std::string runSolver ( std::string  solverName,
std::string  osol,
std::string  osil 
)

Alternate signature for this method.

Parameters
solverNameThe name of the solver selected by the user If empty, a default solver is selected
osolA string containing the user options in osol format
osilA string containing the instance to be optimized
Returns
the solution (or error message) in OSrL format

§ runSolver() [4/4]

std::string runSolver ( std::string  solverName,
OSOption osoption,
OSInstance osinstance 
)

Alternate signature for this method.

Parameters
solverNameThe name of the solver selected by the user If empty, a default solver is selected
osoptionA pointer to an OSOption object containing the options to be passed to the solver
osinstanceA pointer to an OSInstance object containing the instance to be optimized
Returns
the solution (or error message) in OSrL format

§ selectSolver()

DefaultSolver* selectSolver ( std::string  solverName,
OSInstance osinstance 
)

A method to select the solver.

Parameters
solverNameThe name of the solver selected by the user If empty, a default solver is selected based on the characteristics of the problem
osinstanceA pointer to an OSInstance object containing the instance to be optimized
Returns
a pointer to the selected solver or NULL if no such solver exists on the system