Skip to content

Commit 8d3d44d

Browse files
committed
Merge branch 'main' into tyler
2 parents c1d9d78 + ab82dbe commit 8d3d44d

File tree

5 files changed

+63
-54
lines changed

5 files changed

+63
-54
lines changed

RunCode.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ pkg> activate experiments
4141
* Currently due to SatelliteDynamics.jl dependency on [SOFA.jl](https://github.com/sisl/SOFA.jl), it only supports Unix systems (MacOS and Linux)
4242

4343
### 4. Running a simulation
44+
```julia
45+
julia --project=experiments experiments/demo.jl
46+
```
4447

45-
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.
46-
A quick analysis of the results, stored in the hist DataFrame, can be performed by the `revisedPlan = analyzeHist(bmdp, hist, saveFlag)` function.
47-
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.
48+
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).
49+
A quick analysis of the results, stored in the hist DataFrame, can be performed by the `revisedPlan = analyzeHist(bmdp, hist, modelList, dir2save)` function.
50+
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.
4851
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.
4952

5053
For some intuition into how the integer linear program (ILP) solution performs, one may execute

_includes/demoResults.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
**Demo Results**
3+
4+
<img src="assets/images/histogram.svg" alt="Image" style="max-width: auto; height: auto;">

0 commit comments

Comments
 (0)