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 41 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

◆ SolverFactory() [1/3]

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.

◆ SolverFactory() [2/3]

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

Definition at line 79 of file solver_factory.cc.

◆ SolverFactory() [3/3]

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

Definition at line 80 of file solver_factory.cc.

Member Function Documentation

◆ get()

OsiSolverInterface * cyclus::SolverFactory::get ( )

get the configured solver

Definition at line 84 of file solver_factory.cc.

◆ solver_t() [1/3]

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

get/set the solver type

Definition at line 51 of file solver_factory.h.

◆ solver_t() [2/3]

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

Definition at line 52 of file solver_factory.h.

◆ solver_t() [3/3]

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

Definition at line 53 of file solver_factory.h.


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