|
PIPS-IPM++ Solver and Tools
a parallel interior-point method for doubly bordered block diagonal linear programs
|
an option of template type T More...
#include <PIPSIPMppOptions.h>
Public Member Functions | |
| Option (const std::string &name_, const std::string &description_, Category category_, const T &defaultval_, const std::vector< std::pair< T, std::string > > &possiblevals_=std::vector< std::pair< T, std::string > >()) | |
| constructor for an enumerated option or a non-enumerated option without bounds | |
| Option (const std::string &name_, const std::string &description_, Category category_, const T &defaultval_, const T &minval_, const T &maxval_) | |
| constructor for a non-enumeration option with bounds | |
| const std::string & | get_name () const |
| const std::string & | get_description () const |
| Category | get_category () const |
| const std::vector< std::pair< T, std::string > > & | get_possible_values () const |
| std::pair< T, T > | get_allowed_range () const |
| const T & | get_default () const |
| const T & | get_value () const |
| bool | has_been_set () const |
| void | reset () |
| reset option to default value | |
| void | set_value (const T &val) |
| void | set_default (const T &val) |
Protected Attributes | |
| std::string | name |
| name of option | |
| std::string | description |
| description of option | |
| Category | category |
| option category | |
| T | defaultval |
| default value of option | |
| T | currentval |
| current value of option | |
| bool | valueset |
| has an option value be assigned | |
| T | minval |
| minimal value of option, if not string-valued | |
| T | maxval |
| maximal value of option, if not string-valued | |
| std::vector< std::pair< T, std::string > > | possiblevals |
| possible values for an enumerated option, with description | |
an option of template type T
|
inline |
constructor for an enumerated option or a non-enumerated option without bounds
| name_ | name of option |
| description_ | description of option |
| category_ | option category |
| defaultval_ | default value for option |
| possiblevals_ | a list of possible values, each with a description; or empty if any value is possible |
|
inline |
constructor for a non-enumeration option with bounds
| name_ | name of option |
| description_ | description of option |
| category_ | option category |
| defaultval_ | default value for option |
| minval_ | minimal value the option can be set to |
| maxval_ | maximal value the option can be set to |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
change default value
| val | new default value of option |
|
inline |
set option value
| val | value the option should be set to |