The solution to this PDE is the relative value function $`V:\tilde{x}\rightarrow\mathbb{R}`$, and the optimal sampling policy is to trigger sampling whenever $`V(\tilde{x})=0`$ holds.
The solution to this PDE is the relative value function $`V:\tilde{x}\rightarrow\mathbb{R}`$, and the optimal sampling policy is to trigger sampling whenever $`V(\tilde{x})=0`$ holds.
For more details we refer to our [article](ecc2019_paper.pdf).
For more details we refer to our [article](ecc19_paper.pdf).
# Requirements
# Requirements
The demo code has been tested for Julia v0.6, which can be downloaded [here](https://julialang.org/downloads/oldreleases.html). The following packages are required:
The demo code has been tested for Julia v0.6, which can be downloaded [here](https://julialang.org/downloads/oldreleases.html). The following packages are required:
...
@@ -146,6 +146,8 @@ validation = true
...
@@ -146,6 +146,8 @@ validation = true
plotting = true
plotting = true
search_c = true
search_c = true
```
```
**Note: currently plotting only works for 2D systems.**
## Changing the System
## Changing the System
You can change the system matrix $`A`$, the (diagonal) quadratic cost weight
You can change the system matrix $`A`$, the (diagonal) quadratic cost weight
matrix $`Q`$ and the total cost $`J`$ by changing the following variables in
matrix $`Q`$ and the total cost $`J`$ by changing the following variables in