CYCLUS
Public Member Functions | List of all members
cyclus::SolverFactory Class Reference

Detailed Description

A factory class that, given a configuration, returns a Coin::OsiSolverInterface for a solver.

Warning
it is the caller's responsibility to manage the member of the interface

Definition at line 39 of file solver_factory.h.

#include <solver_factory.h>

Public Member Functions

OsiSolverInterface * get ()
 
void solver_t (std::string t)
 
const std::string solver_t () const
 
std::string solver_t ()
 
 SolverFactory ()
 
 SolverFactory (std::string t)
 
 SolverFactory (std::string t, double tmax)
 

Constructor & Destructor Documentation

cyclus::SolverFactory::SolverFactory ( )

currently supported solver types are 'clp' and 'cbc'

Parameters
tthe solver type
tmaxthe maximum solution time

Definition at line 78 of file solver_factory.cc.

cyclus::SolverFactory::SolverFactory ( std::string  t)
explicit

Definition at line 79 of file solver_factory.cc.

cyclus::SolverFactory::SolverFactory ( std::string  t,
double  tmax 
)

Definition at line 80 of file solver_factory.cc.

Member Function Documentation

OsiSolverInterface * cyclus::SolverFactory::get ( )

get the configured solver

Definition at line 84 of file solver_factory.cc.

void cyclus::SolverFactory::solver_t ( std::string  t)
inline

get/set the solver type

Definition at line 49 of file solver_factory.h.

const std::string cyclus::SolverFactory::solver_t ( ) const
inline

Definition at line 50 of file solver_factory.h.

std::string cyclus::SolverFactory::solver_t ( )
inline

Definition at line 51 of file solver_factory.h.


The documentation for this class was generated from the following files: