|
XCSF 1.4.8
XCSF learning classifier system
|
The real multiplexer problem environment. More...
Go to the source code of this file.
Data Structures | |
| struct | EnvMux |
| Real multiplexer environment data structure. More... | |
Functions | |
| bool | env_mux_is_done (const struct XCSF *xcsf) |
| Returns whether the multiplexer is in a terminal state. | |
| bool | env_mux_multistep (const struct XCSF *xcsf) |
| Returns whether the multiplexer is a multistep problem. | |
| double | env_mux_execute (const struct XCSF *xcsf, const int action) |
| Returns the reward for executing a multiplexer action. | |
| double | env_mux_maxpayoff (const struct XCSF *xcsf) |
| Returns the maximum payoff value possible in the multiplexer. | |
| const double * | env_mux_get_state (const struct XCSF *xcsf) |
| Returns a random multiplexer problem instance. | |
| void | env_mux_free (const struct XCSF *xcsf) |
| Frees the multiplexer environment. | |
| void | env_mux_init (struct XCSF *xcsf, int bits) |
| Initialises a real multiplexer environment of specified length. | |
| void | env_mux_reset (const struct XCSF *xcsf) |
| Dummy method since no multiplexer reset is necessary. | |
Variables | |
| static struct EnvVtbl const | env_mux_vtbl |
| Real multiplexer environment implemented functions. | |
The real multiplexer problem environment.
Definition in file env_mux.h.
| double env_mux_execute | ( | const struct XCSF * | xcsf, |
| const int | action | ||
| ) |
Returns the reward for executing a multiplexer action.
| [in] | xcsf | The XCSF data structure. |
| [in] | action | The selected action. |
Definition at line 92 of file env_mux.c.
References MAX_PAYOFF, EnvMux::pos_bits, and EnvMux::state.
| void env_mux_free | ( | const struct XCSF * | xcsf | ) |
Frees the multiplexer environment.
| [in] | xcsf | The XCSF data structure. |
Definition at line 63 of file env_mux.c.
References EnvMux::state.
| const double * env_mux_get_state | ( | const struct XCSF * | xcsf | ) |
Returns a random multiplexer problem instance.
| [in] | xcsf | The XCSF data structure. |
Definition at line 76 of file env_mux.c.
References rand_uniform(), and EnvMux::state.
| void env_mux_init | ( | struct XCSF * | xcsf, |
| const int | bits | ||
| ) |
Initialises a real multiplexer environment of specified length.
The biggest mux problem is chosen that fits the specified length.
| [in] | xcsf | The XCSF data structure. |
| [in] | bits | The problem length. |
Definition at line 44 of file env_mux.c.
References param_init(), EnvMux::pos_bits, and EnvMux::state.
Referenced by env_init().
| bool env_mux_is_done | ( | const struct XCSF * | xcsf | ) |
| double env_mux_maxpayoff | ( | const struct XCSF * | xcsf | ) |
Returns the maximum payoff value possible in the multiplexer.
| [in] | xcsf | The XCSF data structure. |
Definition at line 133 of file env_mux.c.
References MAX_PAYOFF.
| bool env_mux_multistep | ( | const struct XCSF * | xcsf | ) |
| void env_mux_reset | ( | const struct XCSF * | xcsf | ) |
|
static |
Real multiplexer environment implemented functions.
Definition at line 64 of file env_mux.h.
Referenced by env_init().