From 7dcbd58b2bc7d90f9bd53418d18886e0a2b72eaf Mon Sep 17 00:00:00 2001 From: Zachary Sunberg Date: Mon, 10 Jul 2023 08:47:18 -0600 Subject: [PATCH] Update generative.jl --- src/generative.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generative.jl b/src/generative.jl index 97e8aace..cc68f116 100644 --- a/src/generative.jl +++ b/src/generative.jl @@ -3,6 +3,8 @@ Function for implementing the entire MDP/POMDP generative model by returning a `NamedTuple`. +`gen` should *only* be implemented in the case where *two or more* of the next state, observation, and reward need to be generated at the same time. If the state transition model can be separated from the reward and observation models, you should implement `transition` with an `ImplicitDistribution` instead of `gen`. + Solver and simulator writers should use the `@gen` macro to call a generative model. # Arguments