Struct vrp_core::algorithms::mdp::Simulator [−][src]
pub struct Simulator<S: State> { /* fields omitted */ }Expand description
A simulator to train agent with multiple episodes.
Implementations
pub fn new(
learning_strategy: Box<dyn LearningStrategy<S> + Send + Sync>,
policy_strategy: Box<dyn PolicyStrategy<S> + Send + Sync>
) -> Self
pub fn new(
learning_strategy: Box<dyn LearningStrategy<S> + Send + Sync>,
policy_strategy: Box<dyn PolicyStrategy<S> + Send + Sync>
) -> Self
Creates a new instance of MDP simulator.
Return a learned optimal policy for given state.
Gets state estimates.
Sets action estimates for given state.