You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
UnitCommitment.jl/0.4/guides/format/index.html

153 lines
46 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>JSON data format · UnitCommitment.jl</title><meta name="title" content="JSON data format · UnitCommitment.jl"/><meta property="og:title" content="JSON data format · UnitCommitment.jl"/><meta property="twitter:title" content="JSON data format · UnitCommitment.jl"/><meta name="description" content="Documentation for UnitCommitment.jl."/><meta property="og:description" content="Documentation for UnitCommitment.jl."/><meta property="twitter:description" content="Documentation for UnitCommitment.jl."/><script data-outdated-warner src="../../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="../.."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../../assets/documenter.js"></script><script src="../../search_index.js"></script><script src="../../siteinfo.js"></script><script src="../../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../../assets/themeswap.js"></script><link href="../../assets/custom.css" rel="stylesheet" type="text/css"/></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href="../../">UnitCommitment.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li><a class="tocitem" href="../../">Home</a></li><li><span class="tocitem">Tutorials</span><ul><li><a class="tocitem" href="../../tutorials/usage/">Getting started</a></li><li><a class="tocitem" href="../../tutorials/customizing/">Model customization</a></li><li><a class="tocitem" href="../../tutorials/lmp/">Locational Marginal Prices</a></li><li><a class="tocitem" href="../../tutorials/market/">Market Clearing</a></li><li><a class="tocitem" href="../../tutorials/decomposition/">Decomposition methods</a></li></ul></li><li><span class="tocitem">User guide</span><ul><li><a class="tocitem" href="../problem/">Problem definition</a></li><li class="is-active"><a class="tocitem" href>JSON data format</a><ul class="internal"><li><a class="tocitem" href="#Current-limitations"><span>Current limitations</span></a></li></ul></li><li><a class="tocitem" href="../instances/">Benchmark instances</a></li></ul></li><li><a class="tocitem" href="../../api/">API Reference</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li><a class="is-disabled">User guide</a></li><li class="is-active"><a href>JSON data format</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>JSON data format</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/ANL-CEEESA/UnitCommitment.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/ANL-CEEESA/UnitCommitment.jl/blob/dev/docs/src/guides/format.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="JSON-data-format"><a class="docs-heading-anchor" href="#JSON-data-format">JSON data format</a><a id="JSON-data-format-1"></a><a class="docs-heading-anchor-permalink" href="#JSON-data-format" title="Permalink"></a></h1><p>An instance of the stochastic security-constrained unit commitment (SCUC) problem is composed multiple scenarios. Each scenario should be described in an individual JSON file containing the main section belows. For deterministic instances, a single scenario file, following the same format below, may also be provided. Fields that are allowed to differ among scenarios are marked as &quot;uncertain&quot;. Fields that are allowed to be time-dependent are marked as &quot;time series&quot;.</p><ul><li><a href="#Parameters">Parameters</a></li><li><a href="#Buses">Buses</a></li><li><a href="#Generators">Generators</a></li><li><a href="#Storage-units">Storage units</a></li><li><a href="#Price-sensitive-loads">Price-sensitive loads</a></li><li><a href="#Transmission-lines">Transmission lines</a></li><li><a href="#Reserves">Reserves</a></li><li><a href="#Contingencies">Contingencies</a></li></ul><p>Each section is described in detail below. See <a href="https://axavier.org/UnitCommitment.jl/0.4/instances/matpower/case118/2017-01-01.json.gz">case118/2017-01-01.json.gz</a> for a complete example.</p><h3 id="Parameters"><a class="docs-heading-anchor" href="#Parameters">Parameters</a><a id="Parameters-1"></a><a class="docs-heading-anchor-permalink" href="#Parameters" title="Permalink"></a></h3><p>This section describes system-wide parameters, such as power balance penalty, and optimization parameters, such as the length of the planning horizon and the time.</p><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: center">Default</th><th style="text-align: center">Time series?</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Version</code></td><td style="text-align: left">Version of UnitCommitment.jl this file was written for. Required to ensure that the file remains readable in future versions of the package. If you are following this page to construct the file, this field should equal <code>0.4</code>.</td><td style="text-align: center">Required</td><td style="text-align: center">No</td><td style="text-align: center">No</td></tr><tr><td style="text-align: left"><code>Time horizon (min)</code> or <code>Time horizon (h)</code></td><td style="text-align: left">Length of the planning horizon (in minutes or hours). Either <code>Time horizon (min)</code> or <code>Time horizon (h)</code> is required, but not both.</td><td style="text-align: center">Required</td><td style="text-align: center">No</td><td style="text-align: center">No</td></tr><tr><td style="text-align: left"><code>Time step (min)</code></td><td style="text-align: left">Length of each time step (in minutes). Must be a divisor of 60 (e.g. 60, 30, 20, 15, etc).</td><td style="text-align: center"><code>60</code></td><td style="text-align: center">No</td><td style="text-align: center">No</td></tr><tr><td style="text-align: left"><code>Power balance penalty ($/MW)</code></td><td style="text-align: left">Penalty for system-wide shortage or surplus in production (in /MW). This is charged per time step. For example, if there is a shortage of 1 MW for three time steps, three times this amount will be charged.</td><td style="text-align: center"><code>1000.0</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Scenario name</code></td><td style="text-align: left">Name of the scenario.</td><td style="text-align: center"><code>&quot;s1&quot;</code></td><td style="text-align: center">No</td><td style="text-align: center">-</td></tr><tr><td style="text-align: left"><code>Scenario weight</code></td><td style="text-align: left">Weight of the scenario. The scenario weight can be any positive real number, that is, it does not have to be between zero and one. The package normalizes the weights to ensure that the probability of all scenarios sum up to one.</td><td style="text-align: center">1.0</td><td style="text-align: center">No</td><td style="text-align: center">-</td></tr></table><h4 id="Example"><a class="docs-heading-anchor" href="#Example">Example</a><a id="Example-1"></a><a class="docs-heading-anchor-permalink" href="#Example" title="Permalink"></a></h4><pre><code class="language-json hljs">{
&quot;Parameters&quot;: {
&quot;Version&quot;: &quot;0.4&quot;,
&quot;Time horizon (h)&quot;: 4,
&quot;Power balance penalty ($/MW)&quot;: 1000.0,
&quot;Scenario name&quot;: &quot;s1&quot;,
&quot;Scenario weight&quot;: 0.5
}
}</code></pre><h3 id="Buses"><a class="docs-heading-anchor" href="#Buses">Buses</a><a id="Buses-1"></a><a class="docs-heading-anchor-permalink" href="#Buses" title="Permalink"></a></h3><p>This section describes the characteristics of each bus in the system.</p><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: right">Default</th><th style="text-align: center">Time series?</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Load (MW)</code></td><td style="text-align: left">Fixed load connected to the bus (in MW).</td><td style="text-align: right">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr></table><h4 id="Example-2"><a class="docs-heading-anchor" href="#Example-2">Example</a><a class="docs-heading-anchor-permalink" href="#Example-2" title="Permalink"></a></h4><pre><code class="language-json hljs">{
&quot;Buses&quot;: {
&quot;b1&quot;: {
&quot;Load (MW)&quot;: 0.0
},
&quot;b2&quot;: {
&quot;Load (MW)&quot;: [26.01527, 24.46212, 23.29725, 22.90897]
}
}
}</code></pre><h3 id="Generators"><a class="docs-heading-anchor" href="#Generators">Generators</a><a id="Generators-1"></a><a class="docs-heading-anchor-permalink" href="#Generators" title="Permalink"></a></h3><p>This section describes all generators in the system. Two types of units can be specified:</p><ul><li><strong>Thermal units:</strong> Units that produce power by converting heat into electrical energy, such as coal and oil power plants. These units use a more complex model, with binary decision variables, and various constraints to enforce ramp rates and minimum up/down time.</li><li><strong>Profiled units:</strong> Simplified model for units that do not require the constraints mentioned above, only a maximum and minimum power output for each time period. Typically used for renewables and hydro.</li></ul><h4 id="Thermal-Units"><a class="docs-heading-anchor" href="#Thermal-Units">Thermal Units</a><a id="Thermal-Units-1"></a><a class="docs-heading-anchor-permalink" href="#Thermal-Units" title="Permalink"></a></h4><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: right">Default</th><th style="text-align: center">Time series?</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Bus</code></td><td style="text-align: left">Identifier of the bus where this generator is located (string).</td><td style="text-align: right">Required</td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Type</code></td><td style="text-align: left">Type of the generator (string). For thermal generators, this must be <code>Thermal</code>.</td><td style="text-align: right">Required</td><td style="text-align: center">No</td><td style="text-align: center">No</td></tr><tr><td style="text-align: left"><code>Production cost curve (MW)</code> and <code>Production cost curve ($)</code></td><td style="text-align: left">Parameters describing the piecewise-linear production costs. See below for more details.</td><td style="text-align: right">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Startup costs ($)</code> and <code>Startup delays (h)</code></td><td style="text-align: left">Parameters describing how much it costs to start the generator after it has been shut down for a certain amount of time. If <code>Startup costs ($)</code> and <code>Startup delays (h)</code> are set to <code>[300.0, 400.0]</code> and <code>[1, 4]</code>, for example, and the generator is shut down at time <code>00:00</code> (h:min), then it costs <span>$</span>300 to start up the generator at any time between <code>01:00</code> and <code>03:59</code>, and <span>$</span>400 to start the generator at time <code>04:00</code> or any time after that. The number of startup cost points is unlimited, and may be different for each generator. Startup delays must be strictly increasing and the first entry must equal <code>Minimum downtime (h)</code>.</td><td style="text-align: right"><code>[0.0]</code> and <code>[1]</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Minimum uptime (h)</code></td><td style="text-align: left">Minimum amount of time the generator must stay operational after starting up (in hours). For example, if the generator starts up at time <code>00:00</code> (h:min) and <code>Minimum uptime (h)</code> is set to 4, then the generator can only shut down at time <code>04:00</code>.</td><td style="text-align: right"><code>1</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Minimum downtime (h)</code></td><td style="text-align: left">Minimum amount of time the generator must stay offline after shutting down (in hours). For example, if the generator shuts down at time <code>00:00</code> (h:min) and <code>Minimum downtime (h)</code> is set to 4, then the generator can only start producing power again at time <code>04:00</code>.</td><td style="text-align: right"><code>1</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Ramp up limit (MW)</code></td><td style="text-align: left">Maximum increase in production from one time step to the next (in MW). For example, if the generator is producing 100 MW at time step 1 and if this parameter is set to 40 MW, then the generator will produce at most 140 MW at time step 2.</td><td style="text-align: right"><code>+inf</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Ramp down limit (MW)</code></td><td style="text-align: left">Maximum decrease in production from one time step to the next (in MW). For example, if the generator is producing 100 MW at time step 1 and this parameter is set to 40 MW, then the generator will produce at least 60 MW at time step 2.</td><td style="text-align: right"><code>+inf</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Startup limit (MW)</code></td><td style="text-align: left">Maximum amount of power a generator can produce immediately after starting up (in MW). For example, if <code>Startup limit (MW)</code> is set to 100 MW and the unit is off at time step 1, then it may produce at most 100 MW at time step 2.</td><td style="text-align: right"><code>+inf</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Shutdown limit (MW)</code></td><td style="text-align: left">Maximum amount of power a generator can produce immediately before shutting down (in MW). Specifically, the generator can only shut down at time step <code>t+1</code> if its production at time step <code>t</code> is below this limit.</td><td style="text-align: right"><code>+inf</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Initial status (h)</code></td><td style="text-align: left">If set to a positive number, indicates the amount of time (in hours) the generator has been on at the beginning of the simulation, and if set to a negative number, the amount of time the generator has been off. For example, if <code>Initial status (h)</code> is <code>-2</code>, this means that the generator was off since <code>-02:00</code> (h:min). The simulation starts at time <code>00:00</code>. If <code>Initial status (h)</code> is <code>3</code>, this means that the generator was on since <code>-03:00</code>. A value of zero is not acceptable.</td><td style="text-align: right">Required</td><td style="text-align: center">No</td><td style="text-align: center">No</td></tr><tr><td style="text-align: left"><code>Initial power (MW)</code></td><td style="text-align: left">Amount of power the generator at time step <code>-1</code>, immediately before the planning horizon starts.</td><td style="text-align: right">Required</td><td style="text-align: center">No</td><td style="text-align: center">No</td></tr><tr><td style="text-align: left"><code>Must run?</code></td><td style="text-align: left">If <code>true</code>, the generator should be committed, even if that is not economical (Boolean).</td><td style="text-align: right"><code>false</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Reserve eligibility</code></td><td style="text-align: left">List of reserve products this generator is eligibe to provide. By default, the generator is not eligible to provide any reserves.</td><td style="text-align: right"><code>[]</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Commitment status</code></td><td style="text-align: left">List of commitment status over the time horizon. At time <code>t</code>, if <code>true</code>, the generator must be commited at that time period; if <code>false</code>, the generator must not be commited at that time period. If <code>null</code> at time <code>t</code>, the generator&#39;s commitment status is then decided by the model. By default, the status is a list of <code>null</code> values.</td><td style="text-align: right"><code>null</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr></table><h4 id="Profiled-Units"><a class="docs-heading-anchor" href="#Profiled-Units">Profiled Units</a><a id="Profiled-Units-1"></a><a class="docs-heading-anchor-permalink" href="#Profiled-Units" title="Permalink"></a></h4><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: center">Default</th><th style="text-align: center">Time series?</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Bus</code></td><td style="text-align: left">Identifier of the bus where this generator is located (string).</td><td style="text-align: center">Required</td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Type</code></td><td style="text-align: left">Type of the generator (string). For profiled generators, this must be <code>Profiled</code>.</td><td style="text-align: center">Required</td><td style="text-align: center">No</td><td style="text-align: center">No</td></tr><tr><td style="text-align: left"><code>Cost ($/MW)</code></td><td style="text-align: left">Cost incurred for serving each MW of power by this generator.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Minimum power (MW)</code></td><td style="text-align: left">Minimum amount of power this generator may supply.</td><td style="text-align: center"><code>0.0</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Maximum power (MW)</code></td><td style="text-align: left">Maximum amount of power this generator may supply.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr></table><h4 id="Production-costs-and-limits"><a class="docs-heading-anchor" href="#Production-costs-and-limits">Production costs and limits</a><a id="Production-costs-and-limits-1"></a><a class="docs-heading-anchor-permalink" href="#Production-costs-and-limits" title="Permalink"></a></h4><p>Production costs are represented as piecewise-linear curves. Figure 1 shows an example cost curve with three segments, where it costs <span>$</span>1400, <span>$</span>1600, <span>$</span>2200 and <span>$</span>2400 to generate, respectively, 100, 110, 130 and 135 MW of power. To model this generator, <code>Production cost curve (MW)</code> should be set to <code>[100, 110, 130, 135]</code>, and <code>Production cost curve ($)</code> should be set to <code>[1400, 1600, 2200, 2400]</code>. Note that this curve also specifies the production limits. Specifically, the first point identifies the minimum power output when the unit is operational, while the last point identifies the maximum power output.</p><center>
<img src="../assets/cost_curve.png" style="max-width: 500px"/>
<div><b>Figure 1.</b> Piecewise-linear production cost curve.</div>
<br/>
</center><h4 id="Additional-remarks:"><a class="docs-heading-anchor" href="#Additional-remarks:">Additional remarks:</a><a id="Additional-remarks:-1"></a><a class="docs-heading-anchor-permalink" href="#Additional-remarks:" title="Permalink"></a></h4><ul><li>For time-dependent production limits or time-dependent production costs, the usage of nested arrays is allowed. For example, if <code>Production cost curve (MW)</code> is set to <code>[5.0, [10.0, 12.0, 15.0, 20.0]]</code>, then the unit may generate at most 10, 12, 15 and 20 MW of power during time steps 1, 2, 3 and 4, respectively. The minimum output for all time periods is fixed to at 5 MW.</li><li>There is no limit to the number of piecewise-linear segments, and different generators may have a different number of segments.</li><li>If <code>Production cost curve (MW)</code> and <code>Production cost curve ($)</code> both contain a single element, then the generator must produce exactly that amount of power when operational. To specify that the generator may produce any amount of power up to a certain limit <code>P</code>, the parameter <code>Production cost curve (MW)</code> should be set to <code>[0, P]</code>.</li><li>Production cost curves must be convex.</li></ul><h4 id="Example-3"><a class="docs-heading-anchor" href="#Example-3">Example</a><a class="docs-heading-anchor-permalink" href="#Example-3" title="Permalink"></a></h4><pre><code class="language-json hljs">{
&quot;Generators&quot;: {
&quot;gen1&quot;: {
&quot;Bus&quot;: &quot;b1&quot;,
&quot;Type&quot;: &quot;Thermal&quot;,
&quot;Production cost curve (MW)&quot;: [100.0, 110.0, 130.0, 135.0],
&quot;Production cost curve ($)&quot;: [1400.0, 1600.0, 2200.0, 2400.0],
&quot;Startup costs ($)&quot;: [300.0, 400.0],
&quot;Startup delays (h)&quot;: [1, 4],
&quot;Ramp up limit (MW)&quot;: 232.68,
&quot;Ramp down limit (MW)&quot;: 232.68,
&quot;Startup limit (MW)&quot;: 232.68,
&quot;Shutdown limit (MW)&quot;: 232.68,
&quot;Minimum downtime (h)&quot;: 4,
&quot;Minimum uptime (h)&quot;: 4,
&quot;Initial status (h)&quot;: 12,
&quot;Initial power (MW)&quot;: 115,
&quot;Must run?&quot;: false,
&quot;Reserve eligibility&quot;: [&quot;r1&quot;]
},
&quot;gen2&quot;: {
&quot;Bus&quot;: &quot;b5&quot;,
&quot;Type&quot;: &quot;Thermal&quot;,
&quot;Production cost curve (MW)&quot;: [0.0, [10.0, 8.0, 0.0, 3.0]],
&quot;Production cost curve ($)&quot;: [0.0, 0.0],
&quot;Initial status (h)&quot;: -100,
&quot;Initial power (MW)&quot;: 0,
&quot;Reserve eligibility&quot;: [&quot;r1&quot;, &quot;r2&quot;],
&quot;Commitment status&quot;: [true, false, null, true]
},
&quot;gen3&quot;: {
&quot;Bus&quot;: &quot;b6&quot;,
&quot;Type&quot;: &quot;Profiled&quot;,
&quot;Minimum power (MW)&quot;: 10.0,
&quot;Maximum power (MW)&quot;: 120.0,
&quot;Cost ($/MW)&quot;: 100.0
}
}
}</code></pre><h3 id="Storage-units"><a class="docs-heading-anchor" href="#Storage-units">Storage units</a><a id="Storage-units-1"></a><a class="docs-heading-anchor-permalink" href="#Storage-units" title="Permalink"></a></h3><p>This section describes energy storage units in the system which charge and discharge power. The storage units consume power while charging, and generate power while discharging.</p><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: center">Default</th><th style="text-align: center">Time series?</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Bus</code></td><td style="text-align: left">Bus where the storage unit is located. Multiple storage units may be placed at the same bus.</td><td style="text-align: center">Required</td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Minimum level (MWh)</code></td><td style="text-align: left">Minimum of energy level this storage unit may contain.</td><td style="text-align: center"><code>0.0</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Maximum level (MWh)</code></td><td style="text-align: left">Maximum of energy level this storage unit may contain.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Allow simultaneous charging and discharging</code></td><td style="text-align: left">If <code>false</code>, the storage unit is not allowed to charge and discharge at the same time (Boolean).</td><td style="text-align: center"><code>true</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Charge cost ($/MW)</code></td><td style="text-align: left">Cost incurred for charging each MW of power into this storage unit.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Discharge cost ($/MW)</code></td><td style="text-align: left">Cost incurred for discharging each MW of power from this storage unit.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Charge efficiency</code></td><td style="text-align: left">Efficiency rate to charge power into this storage unit. This value must be greater than or equal to <code>0.0</code>, and less than or equal to <code>1.0</code>.</td><td style="text-align: center"><code>1.0</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Discharge efficiency</code></td><td style="text-align: left">Efficiency rate to discharge power from this storage unit. This value must be greater than or equal to <code>0.0</code>, and less than or equal to <code>1.0</code>.</td><td style="text-align: center"><code>1.0</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Loss factor</code></td><td style="text-align: left">The energy dissipation rate of this storage unit. This value must be greater than or equal to <code>0.0</code>, and less than or equal to <code>1.0</code>.</td><td style="text-align: center"><code>0.0</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Minimum charge rate (MW)</code></td><td style="text-align: left">Minimum amount of power rate this storage unit may charge.</td><td style="text-align: center"><code>0.0</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Maximum charge rate (MW)</code></td><td style="text-align: left">Maximum amount of power rate this storage unit may charge.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Minimum discharge rate (MW)</code></td><td style="text-align: left">Minimum amount of power rate this storage unit may discharge.</td><td style="text-align: center"><code>0.0</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Maximum discharge rate (MW)</code></td><td style="text-align: left">Maximum amount of power rate this storage unit may discharge.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Initial level (MWh)</code></td><td style="text-align: left">Amount of energy this storage unit at time step <code>-1</code>, immediately before the planning horizon starts.</td><td style="text-align: center"><code>0.0</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Last period minimum level (MWh)</code></td><td style="text-align: left">Minimum of energy level this storage unit may contain in the last time step. By default, this value is the same as the last value of <code>Minimum level (MWh)</code>.</td><td style="text-align: center"><code>Minimum level (MWh)</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Last period maximum level (MWh)</code></td><td style="text-align: left">Maximum of energy level this storage unit may contain in the last time step. By default, this value is the same as the last value of <code>Maximum level (MWh)</code>.</td><td style="text-align: center"><code>Maximum level (MWh)</code></td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr></table><h4 id="Example-4"><a class="docs-heading-anchor" href="#Example-4">Example</a><a class="docs-heading-anchor-permalink" href="#Example-4" title="Permalink"></a></h4><pre><code class="language-json hljs">{
&quot;Storage units&quot;: {
&quot;su1&quot;: {
&quot;Bus&quot;: &quot;b2&quot;,
&quot;Maximum level (MWh)&quot;: 100.0,
&quot;Charge cost ($/MW)&quot;: 2.0,
&quot;Discharge cost ($/MW)&quot;: 2.5,
&quot;Maximum charge rate (MW)&quot;: 10.0,
&quot;Maximum discharge rate (MW)&quot;: 8.0
},
&quot;su2&quot;: {
&quot;Bus&quot;: &quot;b2&quot;,
&quot;Minimum level (MWh)&quot;: 10.0,
&quot;Maximum level (MWh)&quot;: 100.0,
&quot;Allow simultaneous charging and discharging&quot;: false,
&quot;Charge cost ($/MW)&quot;: 3.0,
&quot;Discharge cost ($/MW)&quot;: 3.5,
&quot;Charge efficiency&quot;: 0.8,
&quot;Discharge efficiency&quot;: 0.85,
&quot;Loss factor&quot;: 0.01,
&quot;Minimum charge rate (MW)&quot;: 5.0,
&quot;Maximum charge rate (MW)&quot;: 10.0,
&quot;Minimum discharge rate (MW)&quot;: 2.0,
&quot;Maximum discharge rate (MW)&quot;: 10.0,
&quot;Initial level (MWh)&quot;: 70.0,
&quot;Last period minimum level (MWh)&quot;: 80.0,
&quot;Last period maximum level (MWh)&quot;: 85.0
},
&quot;su3&quot;: {
&quot;Bus&quot;: &quot;b9&quot;,
&quot;Minimum level (MWh)&quot;: [10.0, 11.0, 12.0, 13.0],
&quot;Maximum level (MWh)&quot;: [100.0, 110.0, 120.0, 130.0],
&quot;Allow simultaneous charging and discharging&quot;: [false, false, true, true],
&quot;Charge cost ($/MW)&quot;: [2.0, 2.1, 2.2, 2.3],
&quot;Discharge cost ($/MW)&quot;: [1.0, 1.1, 1.2, 1.3],
&quot;Charge efficiency&quot;: [0.8, 0.81, 0.82, 0.82],
&quot;Discharge efficiency&quot;: [0.85, 0.86, 0.87, 0.88],
&quot;Loss factor&quot;: [0.01, 0.01, 0.02, 0.02],
&quot;Minimum charge rate (MW)&quot;: [5.0, 5.1, 5.2, 5.3],
&quot;Maximum charge rate (MW)&quot;: [10.0, 10.1, 10.2, 10.3],
&quot;Minimum discharge rate (MW)&quot;: [4.0, 4.1, 4.2, 4.3],
&quot;Maximum discharge rate (MW)&quot;: [8.0, 8.1, 8.2, 8.3],
&quot;Initial level (MWh)&quot;: 20.0,
&quot;Last period minimum level (MWh)&quot;: 21.0,
&quot;Last period maximum level (MWh)&quot;: 22.0
}
}
}</code></pre><h3 id="Price-sensitive-loads"><a class="docs-heading-anchor" href="#Price-sensitive-loads">Price-sensitive loads</a><a id="Price-sensitive-loads-1"></a><a class="docs-heading-anchor-permalink" href="#Price-sensitive-loads" title="Permalink"></a></h3><p>This section describes components in the system which may increase or reduce their energy consumption according to the energy prices. Fixed loads (as described in the <code>buses</code> section) are always served, regardless of the price, unless there is significant congestion in the system or insufficient production capacity. Price-sensitive loads, on the other hand, are only served if it is economical to do so.</p><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: center">Default</th><th style="text-align: center">Time series?</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Bus</code></td><td style="text-align: left">Bus where the load is located. Multiple price-sensitive loads may be placed at the same bus.</td><td style="text-align: center">Required</td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Revenue ($/MW)</code></td><td style="text-align: left">Revenue obtained for serving each MW of power to this load.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Demand (MW)</code></td><td style="text-align: left">Maximum amount of power required by this load. Any amount lower than this may be served.</td><td style="text-align: center">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr></table><h4 id="Example-5"><a class="docs-heading-anchor" href="#Example-5">Example</a><a class="docs-heading-anchor-permalink" href="#Example-5" title="Permalink"></a></h4><pre><code class="language-json hljs">{
&quot;Price-sensitive loads&quot;: {
&quot;p1&quot;: {
&quot;Bus&quot;: &quot;b3&quot;,
&quot;Revenue ($/MW)&quot;: 23.0,
&quot;Demand (MW)&quot;: 50.0
}
}
}</code></pre><h3 id="Transmission-lines"><a class="docs-heading-anchor" href="#Transmission-lines">Transmission lines</a><a id="Transmission-lines-1"></a><a class="docs-heading-anchor-permalink" href="#Transmission-lines" title="Permalink"></a></h3><p>This section describes the characteristics of transmission system, such as its topology and the susceptance of each transmission line.</p><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: right">Default</th><th style="text-align: center">Time series?</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Source bus</code></td><td style="text-align: left">Identifier of the bus where the transmission line originates.</td><td style="text-align: right">Required</td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Target bus</code></td><td style="text-align: left">Identifier of the bus where the transmission line reaches.</td><td style="text-align: right">Required</td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Susceptance (S)</code></td><td style="text-align: left">Susceptance of the transmission line (in siemens).</td><td style="text-align: right">Required</td><td style="text-align: center">No</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Normal flow limit (MW)</code></td><td style="text-align: left">Maximum amount of power (in MW) allowed to flow through the line when the system is in its regular, fully-operational state.</td><td style="text-align: right"><code>+inf</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Emergency flow limit (MW)</code></td><td style="text-align: left">Maximum amount of power (in MW) allowed to flow through the line when the system is in degraded state (for example, after the failure of another transmission line).</td><td style="text-align: right"><code>+inf</code></td><td style="text-align: center">Y</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Flow limit penalty ($/MW)</code></td><td style="text-align: left">Penalty for violating the flow limits of the transmission line (in /MW). This is charged per time step. For example, if there is a thermal violation of 1 MW for three time steps, then three times this amount will be charged.</td><td style="text-align: right"><code>5000.0</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr></table><h4 id="Example-6"><a class="docs-heading-anchor" href="#Example-6">Example</a><a class="docs-heading-anchor-permalink" href="#Example-6" title="Permalink"></a></h4><pre><code class="language-json hljs">{
&quot;Transmission lines&quot;: {
&quot;l1&quot;: {
&quot;Source bus&quot;: &quot;b1&quot;,
&quot;Target bus&quot;: &quot;b2&quot;,
&quot;Susceptance (S)&quot;: 29.49686,
&quot;Normal flow limit (MW)&quot;: 15000.0,
&quot;Emergency flow limit (MW)&quot;: 20000.0,
&quot;Flow limit penalty ($/MW)&quot;: 5000.0
}
}
}</code></pre><h3 id="Reserves"><a class="docs-heading-anchor" href="#Reserves">Reserves</a><a id="Reserves-1"></a><a class="docs-heading-anchor-permalink" href="#Reserves" title="Permalink"></a></h3><p>This section describes the hourly amount of reserves required.</p><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: right">Default</th><th style="text-align: center">Time series?</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Type</code></td><td style="text-align: left">Type of reserve product. Must be either &quot;spinning&quot; or &quot;flexiramp&quot;.</td><td style="text-align: right">Required</td><td style="text-align: center">No</td><td style="text-align: center">No</td></tr><tr><td style="text-align: left"><code>Amount (MW)</code></td><td style="text-align: left">Amount of reserves required.</td><td style="text-align: right">Required</td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Shortfall penalty ($/MW)</code></td><td style="text-align: left">Penalty for shortage in meeting the reserve requirements (in /MW). This is charged per time step. Negative value implies reserve constraints must always be satisfied.</td><td style="text-align: right"><code>-1</code></td><td style="text-align: center">Yes</td><td style="text-align: center">Yes</td></tr></table><h4 id="Example-1"><a class="docs-heading-anchor" href="#Example-1">Example 1</a><a id="Example-1-1"></a><a class="docs-heading-anchor-permalink" href="#Example-1" title="Permalink"></a></h4><pre><code class="language-json hljs">{
&quot;Reserves&quot;: {
&quot;r1&quot;: {
&quot;Type&quot;: &quot;spinning&quot;,
&quot;Amount (MW)&quot;: [57.30552, 53.88429, 51.31838, 50.46307],
&quot;Shortfall penalty ($/MW)&quot;: 5.0
},
&quot;r2&quot;: {
&quot;Type&quot;: &quot;flexiramp&quot;,
&quot;Amount (MW)&quot;: [20.31042, 23.65273, 27.41784, 25.34057]
}
}
}</code></pre><h3 id="Contingencies"><a class="docs-heading-anchor" href="#Contingencies">Contingencies</a><a id="Contingencies-1"></a><a class="docs-heading-anchor-permalink" href="#Contingencies" title="Permalink"></a></h3><p>This section describes credible contingency scenarios in the optimization, such as the loss of a transmission line or generator.</p><table><tr><th style="text-align: left">Key</th><th style="text-align: left">Description</th><th style="text-align: center">Default</th><th style="text-align: center">Uncertain?</th></tr><tr><td style="text-align: left"><code>Affected generators</code></td><td style="text-align: left">List of generators affected by this contingency. May be omitted if no generators are affected.</td><td style="text-align: center"><code>[]</code></td><td style="text-align: center">Yes</td></tr><tr><td style="text-align: left"><code>Affected lines</code></td><td style="text-align: left">List of transmission lines affected by this contingency. May be omitted if no lines are affected.</td><td style="text-align: center"><code>[]</code></td><td style="text-align: center">Yes</td></tr></table><h4 id="Example-7"><a class="docs-heading-anchor" href="#Example-7">Example</a><a class="docs-heading-anchor-permalink" href="#Example-7" title="Permalink"></a></h4><pre><code class="language-json hljs">{
&quot;Contingencies&quot;: {
&quot;c1&quot;: {
&quot;Affected lines&quot;: [&quot;l1&quot;, &quot;l2&quot;, &quot;l3&quot;],
&quot;Affected generators&quot;: [&quot;g1&quot;]
},
&quot;c2&quot;: {
&quot;Affected lines&quot;: [&quot;l4&quot;]
}
}
}</code></pre><h3 id="Additional-remarks"><a class="docs-heading-anchor" href="#Additional-remarks">Additional remarks</a><a id="Additional-remarks-1"></a><a class="docs-heading-anchor-permalink" href="#Additional-remarks" title="Permalink"></a></h3><h4 id="Time-series-parameters"><a class="docs-heading-anchor" href="#Time-series-parameters">Time series parameters</a><a id="Time-series-parameters-1"></a><a class="docs-heading-anchor-permalink" href="#Time-series-parameters" title="Permalink"></a></h4><p>Many numerical properties in the JSON file can be specified either as a single floating point number if they are time-independent, or as an array containing exactly <code>T</code> elements, if they are time-dependent, where <code>T</code> is the number of time steps in the planning horizon. For example, both formats below are valid when <code>T=3</code>:</p><pre><code class="language-json hljs">{
&quot;Load (MW)&quot;: 800.0,
&quot;Load (MW)&quot;: [800.0, 850.0, 730.0]
}</code></pre><p>The value <code>T</code> depends on both <code>Time horizon (h)</code> and <code>Time step (min)</code>, as the table below illustrates.</p><table><tr><th style="text-align: center">Time horizon (h)</th><th style="text-align: center">Time step (min)</th><th style="text-align: center">T</th></tr><tr><td style="text-align: center">24</td><td style="text-align: center">60</td><td style="text-align: center">24</td></tr><tr><td style="text-align: center">24</td><td style="text-align: center">15</td><td style="text-align: center">96</td></tr><tr><td style="text-align: center">24</td><td style="text-align: center">5</td><td style="text-align: center">288</td></tr><tr><td style="text-align: center">36</td><td style="text-align: center">60</td><td style="text-align: center">36</td></tr><tr><td style="text-align: center">36</td><td style="text-align: center">15</td><td style="text-align: center">144</td></tr><tr><td style="text-align: center">36</td><td style="text-align: center">5</td><td style="text-align: center">432</td></tr></table><h2 id="Current-limitations"><a class="docs-heading-anchor" href="#Current-limitations">Current limitations</a><a id="Current-limitations-1"></a><a class="docs-heading-anchor-permalink" href="#Current-limitations" title="Permalink"></a></h2><ul><li>Network topology must remain the same for all time periods.</li><li>Only N-1 transmission contingencies are supported. Generator contingencies are not currently supported.</li><li>Time-varying minimum production amounts are not currently compatible with ramp/startup/shutdown limits.</li><li>Flexible ramping products can only be acquired under the <code>WanHob2016</code> formulation, which does not support spinning reserves.</li><li>The set of generators must be the same in all scenarios.</li></ul></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../problem/">« Problem definition</a><a class="docs-footer-nextpage" href="../instances/">Benchmark instances »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Tuesday 21 May 2024 10:56">Tuesday 21 May 2024</span>. Using Julia version 1.10.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>