LILAC
|
A system that attempts to reach an equilibrium. More...
#include <stable.h>
Public Member Functions | |
double | simulate () |
virtual | ~stable () |
![]() | |
virtual double | score () |
This function returns the score of the system in its current state. | |
![]() | |
size_t | get_dimension () const |
![]() | |
item () | |
virtual | ~item () |
virtual void | print () const |
Standard print function. | |
virtual void | update () |
virtual std::string | type () const =0 |
void | setname (const std::string n) |
void | set_write_name (std::string wname) |
const std::string & | name () const |
const std::string & | write_name () const |
![]() | |
virtual const std::type_info & | vtype () const =0 |
bool | compare (const vartype *in) const |
bool | compare (const vartype &in) const |
bool | compare (const std::type_info &tinf) |
template<typename T > | |
bool | compare () const |
template<typename T > | |
bool | compare (const T &in) const |
std::string | vname () const |
virtual const std::type_info & | vtype_internal () const |
bool | compare_internal (const vartype *in) const |
bool | compare_internal (const vartype &in) const |
bool | compare_internal (const std::type_info &tinf) |
template<typename T > | |
bool | compare_internal () const |
template<typename T > | |
bool | compare_internal (const T &in) const |
std::string | vname_internal () const |
virtual | ~vartype () |
Protected Member Functions | |
virtual double | get_change ()=0 |
Returns the difference between the two most recent iterations. | |
virtual void | iterate_system ()=0 |
virtual std::vector< std::string > | dependencies () const =0 |
virtual void | postprocess (input &invals)=0 |
Protected Attributes | |
int | max_iterations |
Maximum number of times the system is iterated before assuming an unstable state. | |
double | change_threshold |
The threshold of change between two iterations for which the system will be considered stable. | |
int | num_gone |
int | round |
int | bad_res |
std::shared_ptr< writer > | cur_writer |
![]() | |
controller * | cont |
The controller. | |
objective * | obj |
The objective function. | |
writer * | cur_writer |
![]() | |
mempool | memp |
std::set< item_dim * > | children |
item_dim * | parent |
size_t | dimension |
![]() | |
std::string | _name |
std::string | _write_name |
char | has_write_name |
Additional Inherited Members | |
![]() | |
static std::shared_ptr< item > | create (std::string name, engineimp *rval) |
![]() | |
std::string | out_f_name |
A system that attempts to reach an equilibrium.
This class defines a system that tries to reach an equilibrium through repeated iterations
|
protectedpure virtual |
This function returns the dependencies of the stable class. The stable class depends on:
- double change_threshold: When the change between two iterations is less than change_threshold, the iteration stops. - integer max_iterations: The number at which the iteration stops and the system is deemed unstable
Implements simulation.
Implemented in stable_ode, jones_optical, stable_spectral_pde_1d_tmpl< T >, and stable_spectral_pde_1d_tmpl< comp >.
Definition at line 68 of file stable.cpp.
|
protectedpure virtual |
Returns the difference between the two most recent iterations.
Implemented in stable_ode, jones_optical, stable_ode_tmpl< T >, and stable_ode_tmpl< comp >.
|
protectedpure virtual |
Implemented in stable_ode, stable_ode_tmpl< T >, and stable_ode_tmpl< comp >.
|
protectedpure virtual |
Implements simulation.
Implemented in stable_ode, jones_optical, stable_spectral_pde_1d_tmpl< T >, stable_spectral_pde_1d_tmpl< comp >, stable_ode_tmpl< T >, and stable_ode_tmpl< comp >.
Definition at line 73 of file stable.cpp.
|
virtual |
This function iterates the system forwards in time until it reaches a stable state or a certain number of iterations, and then returns the objective function of that state.
Implements simulation.
Definition at line 29 of file stable.cpp.
|
protected |
|
protected |