SGSolve
SGEnv Class Reference

Manages parameters for algorithm behavior. More...

#include <sgenv.hpp>

Public Member Functions

 SGEnv ()
 Constructor. More...
 
void setParam (SG::DBL_PARAM param, double value)
 Method for setting double parameters.
 
void setParam (SG::BOOL_PARAM param, bool value)
 Method for setting boolean parameters.
 
void setParam (SG::INT_PARAM param, int value)
 Method for setting integer parameters.
 
double getParam (SG::DBL_PARAM param) const
 Method for getting double parameters.
 
bool getParam (SG::BOOL_PARAM param) const
 Method for getting boolean parameters.
 
int getParam (SG::INT_PARAM param) const
 Method for getting integer parameters.
 
void restoreDefaults ()
 Method for restoring default values for all parameters.
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 Serializes the action using the boost::serialization library.
 

Private Attributes

vector< double > doubleParams
 Double parameters.
 
vector< bool > boolParams
 Bool parameters.
 
vector< int > intParams
 Int parameters.
 

Detailed Description

Manages parameters for algorithm behavior.

This class contains parameters for the algorithm.

TODO: Add more checks on the correctness of passed parameter values.

Examples
pd_twostate.cpp, and risksharing_maxminmax.cpp.

Constructor & Destructor Documentation

◆ SGEnv()

SGEnv::SGEnv ( )

Constructor.

Creates a new SGEnv object and initializes with default parameter values.


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