From efe9284414f15c54e09f4645e9a2e4e8521f0964 Mon Sep 17 00:00:00 2001 From: oferdagan Date: Fri, 13 Sep 2024 10:36:16 -0600 Subject: [PATCH] Update RunCode.md --- RunCode.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/RunCode.md b/RunCode.md index fa6066c..6a13116 100644 --- a/RunCode.md +++ b/RunCode.md @@ -40,11 +40,14 @@ pkg> activate experiments * Currently due to SatelliteDynamics.jl dependency on [SOFA.jl](https://github.com/sisl/SOFA.jl), it only supports Unix systems (MacOS and Linux) -### 3. Running a simulation +### 4. Running a simulation +```julia +julia --project=experiments experiments/demo.jl +``` -The demo.jl file in from [SDAPOMDPs.jl](#2-install-sdapomdpsjl). The file supports running a MC simulation with n_sim = N simulations, for a single simulation set n_sim=1. -A quick analysis of the results, stored in the hist DataFrame, can be performed by the `revisedPlan = analyzeHist(bmdp, hist, saveFlag)` function. -Where `bmdp` is the belief-MDP model, hist is the simulation history, and saveFlag is a flag of true/false to indicate whether to save the results and figures. +The demo.jl file in [SDAPOMDPs.jl](#2-install-sdapomdpsjl) can be used to run MC simulations with n_sim = N simulations (for a single simulation set n_sim=1). +A quick analysis of the results, stored in the hist DataFrame, can be performed by the `revisedPlan = analyzeHist(bmdp, hist, modelList, dir2save)` function. +Where `bmdp` is the belief-MDP model, `hist` is the simulation history, `modelList` is a vector of strings describing the different hypothesis models, and `dir2save` is an optional string describing the library to save results and plots. The function returns the revised sensor tasking plan, prints the means of the cumulative reward, number of changes to the plan, steps to resolve the hypothesis, and observations to the object of interest taken before making a decision. For some intuition into how the integer linear program (ILP) solution performs, one may execute