Skip to content

Commit

Permalink
[docs] Add new gallery section to the docs (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada authored Nov 5, 2024
1 parent 1c7404e commit 066b894
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pages = [
"Troubleshooting" => joinpath("getting_started", "troubleshooting.md"),
],
"Tutorials" => Any[
"Webinars and examples" => joinpath("tutorial", "webinars.md"),
"Webinars" => joinpath("tutorial", "webinars.md"),
"Simple system" => joinpath("tutorial", "simple_system.md"),
"Temporal resolution" => joinpath("tutorial", "temporal_resolution.md"),
"Stochastic structure" => joinpath("tutorial", "stochastic_system.md"),
Expand All @@ -49,6 +49,7 @@ pages = [
"Unit Commitment" => joinpath("tutorial", "unit_commitment.md"),
],
"How to" => [],
"Example gallery" => joinpath("gallery", "gallery.md"),
"Database structure" => Any[
"Basics of the data structure" => joinpath("concept_reference", "the_basics.md"),
"Archetypes" => joinpath("concept_reference", "archetypes.md"),
Expand Down
22 changes: 22 additions & 0 deletions docs/src/gallery/gallery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Example gallery

## How to run the examples

To run the examples, we recommend to follow the instructions [here](https://spine-tools.github.io/SpineOpt.jl/latest/getting_started/recommended_workflow/) to set up the basic SpineToolbox workflow, loading the JSON example file in your input data store depending on the example you want to run. We recommend creating a new SpineToolbox project for each example.

## Examples

Each example has a link to the JSON file with the input data.

- [**Simple system**](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/simple_system.json): Example with two nodes and units, including the relationships among them for a temporal block with duration of one day.
- [**Stochastic model**](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/stochastic.json): Setup of stochastic structures for three forecast scenarios.
- [**Capacity planning**](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/capacity_planning.json): This example shows the definition of investment and operational temporal blocks in SpineOpt for one target year.
- **Multi-year investment examples**: The following examples have a setup for a multi-year investment case study (e.g., for pathway planning) in a five-year time horizon with investments every five years (e.g., at the beginning and end of the time horizon) with a 4-month operational temporal block duration. Here, we have different options in SpineOpt:
- [*Example without economic parameters calculation*](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/multi-year_investment_without_econ_params.json): No extra manipulation of the input data from SpineOpt (`use_economic_represention=false`). So, the user input data needs to account for the value of money over time according to discount rate and year.
- [*Example with economic parameters calculation without milestone years*](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/multi-year_investment_with_econ_params_without_milestones.json): SpineOpt internally-calculates the parameters for discounting investment and operation costs given a discount rate, discount year, and lifetime information (`use_economic_represention=true`).
- [*Example with economic parameters calculation with milestone years*](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/multi-year_investment_with_econ_params_with_milestones.json): Since solving five years of operation might be computational intensive, SpineOpt offers the option of having milestone years (`use_milestone_years=true`). In that case, only two years are solved in the model. Still, one represents the operation of the non-milestone years using a calculated weight, including the discounted operation costs.
- [**Reserves constraints**](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/reserves.json): Extension of the simple system including operating reserve constraints.
- [**Unit commitment constraints**](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/unit_commitment.json): Extension of the sinple system including unit commitment constraints.
- [**Rolling horizon**](https://github.com/spine-tools/SpineOpt.jl/blob/master/examples/rolling_horizon.json): This is an Example with a total time horizon of one week, an optimization window of one day, and rolling forward one day at a time.

Some archived examples are also in the spine tools repository, e.g. [case study A5](https://github.com/spine-tools/spine-cs-a5).
8 changes: 3 additions & 5 deletions docs/src/tutorial/webinars.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Webinars and examples
# Webinars

[SpinOpt tutorial](https://www.youtube.com/watch?v=brf6rlzNDR0) covers the entire process from installing Spine Toolbox and SpineOpt, creating and running a model with these tools and manipulating databases.

[Spine Toolbox: Case study of Unit Commitment](https://www.youtube.com/watch?v=IYIEDyBsSvk) is another nice example by Alireza Zakariazadeh (a.r.zakariazadeh@gmail.com).

There are also some archived examples in the spine tools repository, e.g. [case study A5](https://github.com/spine-tools/spine-cs-a5).
[Spine Toolbox: Case study of Unit Commitment](https://www.youtube.com/watch?v=IYIEDyBsSvk) is another nice webinar by Alireza Zakariazadeh (`a.r.zakariazadeh@gmail.com`).

!!! tip
Looking for the Hydro tutorial? It is now part of the how to section.
Looking for the Hydro tutorial? It is now part of the how to section.

0 comments on commit 066b894

Please sign in to comment.