From 01d10584d1849aab8095e4c3774cd0d981a0d76f Mon Sep 17 00:00:00 2001 From: Keith Badger Date: Tue, 9 Jul 2024 17:24:38 -0400 Subject: [PATCH] Added explanation of garnet MDPs --- src/domains/garnet.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/domains/garnet.jl b/src/domains/garnet.jl index b9fa705..f91549f 100644 --- a/src/domains/garnet.jl +++ b/src/domains/garnet.jl @@ -18,6 +18,11 @@ struct GarnetMDP <: TabMDP # TODO: add a constructor that checks for consistency end +""" +A Garnet MDP is a tabular MDP where the number of next states available from any current state is a fixed proportion of the total number of states in the model. +This proportion is called "nbranch" and it must between 0 and 1. +""" + function make_garnet(S::Integer, A::AbstractVector{Int}, nbranch::Number, min_reward::Integer, max_reward::Integer) 0.0 ≤ nbranch ≤ 1.0 || error("nbranch must be in [0,1]")