Vita
|
Minimum interface of an interpreter. More...
#include <core_interpreter.h>
Inherits vita::symbol_params.
Inherited by vita::interpreter< i_mep >.
Public Member Functions | |
bool | is_valid () const |
double | penalty () |
value_t | run () |
Public Member Functions inherited from vita::symbol_params | |
virtual value_t | fetch_arg (unsigned)=0 |
Fetches a specific input parameter assuming referential transparency. More... | |
virtual value_t | fetch_opaque_arg (unsigned)=0 |
Fetches a specific input parameter without assuming referential transparency. More... | |
virtual terminal_param_t | fetch_param () const =0 |
virtual value_t | fetch_var (unsigned) |
value_t | operator[] (unsigned i) |
Equivalent to fetch_arg(). More... | |
Minimum interface of an interpreter.
The class "executes" an individual (a program). The program can produce an output or perform some actions.
The class can also check if an individual breaks some constraints assigning a penalty to infeasible individuals.
Definition at line 68 of file core_interpreter.h.
|
inline |
Definition at line 73 of file core_interpreter.h.
|
inline |
Definition at line 72 of file core_interpreter.h.
|
inline |
Definition at line 71 of file core_interpreter.h.