pub struct Config {
pub horizon: usize,
pub population_size: usize,
pub evaluations: u64,
pub discount: f64,
pub rollouts: usize,
pub shift_buffer: bool,
pub reevaluate: bool,
pub mutation_rate: Option<f64>,
}Expand description
Parameters of a RollingHorizon planner.
Fields§
§horizon: usizeThe length of every action sequence, at least 1.
population_size: usizeThe number of sequences evolved; 1 is RMHC.
evaluations: u64Sequence evaluations (each rollouts model rollouts) per decision. Exact, except that
every sequence of the initial population is evaluated, so the effective budget is at
least population_size.
discount: f64The discount γ ∈ (0, 1] of step costs; 1 is the undiscounted sum of Olesen et al.
rollouts: usizeRollouts averaged per evaluation, for stochastic models.
shift_buffer: boolKeep the best sequence, shifted by one step, as the seed of the next decision.
reevaluate: boolRMHC on stochastic models: re-evaluate the incumbent each iteration so one lucky rollout cannot hold the lead forever.
mutation_rate: Option<f64>The per-action mutation probability of the default point mutation; None means
1 / horizon. At least one action always changes.