Skip to content

Commit

Permalink
build based on 84ed807
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Mar 20, 2024
1 parent 6cd1131 commit 07bea5e
Show file tree
Hide file tree
Showing 69 changed files with 124 additions and 124 deletions.
2 changes: 1 addition & 1 deletion previews/PR662/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-03-20T23:09:17","documenter_version":"1.3.0"}}
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-03-20T23:27:54","documenter_version":"1.3.0"}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
(GenX) pkg&gt; add CPLEX</code></pre><ul><li>Edit the <code>Run.jl</code> file to use the commercial solver. For example, to use Gurobi, you can add the following lines to the <code>Run.jl</code> file:</li></ul><pre><code class="language-julia hljs">using Gurobi
using GenX

run_genx_case!(dirname(@__FILE__), Gurobi.Optimizer)</code></pre><div class="admonition is-warning"><header class="admonition-header">Warning</header><div class="admonition-body"><p>Note that if you have not already installed the required Julia packages or you do not have a valid Gurobi license on your host machine, you will receive an error message and Run.jl will not run to completion.</p></div></div></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../examples_casestudies/">« Running GenX</a><a class="docs-footer-nextpage" href="../../Tutorials/Tutorials_intro/">Tutorials Overview »</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="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Wednesday 20 March 2024 23:09">Wednesday 20 March 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
run_genx_case!(dirname(@__FILE__), Gurobi.Optimizer)</code></pre><div class="admonition is-warning"><header class="admonition-header">Warning</header><div class="admonition-body"><p>Note that if you have not already installed the required Julia packages or you do not have a valid Gurobi license on your host machine, you will receive an error message and Run.jl will not run to completion.</p></div></div></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../examples_casestudies/">« Running GenX</a><a class="docs-footer-nextpage" href="../../Tutorials/Tutorials_intro/">Tutorials Overview »</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="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Wednesday 20 March 2024 23:27">Wednesday 20 March 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
using Gurobi

run_genx_case!(dirname(@__FILE__), Gurobi.Optimizer)</code></pre><p>To run the case, open a terminal and run the following command:</p><pre><code class="nohighlight hljs">$ julia --project=&quot;/path/to/env&quot;
julia&gt; include(&quot;/path/to/MyCase/Run.jl&quot;)</code></pre><p>where <code>/path/to/env</code> is the path to the environment with <code>GenX</code> installed, and <code>/path/to/MyCase</code> is the path to the folder of the <code>MyCase</code> case. Alternatively, you can run the case directly from the terminal using the following command:</p><pre><code class="nohighlight hljs">$ julia --project=&quot;/path/to/env&quot; /path/to/MyCase/Run.jl</code></pre><h2 id="What-happens-when-you-run-a-case"><a class="docs-heading-anchor" href="#What-happens-when-you-run-a-case">What happens when you run a case</a><a id="What-happens-when-you-run-a-case-1"></a><a class="docs-heading-anchor-permalink" href="#What-happens-when-you-run-a-case" title="Permalink"></a></h2><p><em>Added in 0.3.4</em></p><p>The entry point for running a GenX case is the <code>run_genx_case!(&quot;path/to/case&quot;)</code> function, where <code>path/to/case</code> is the path to the case directory that contains the <code>.csv</code> files with the inputs for GenX and the <code>settings</code> folder with the configuration files.</p><p>The following are the main steps performed in this function:</p><ol><li>Establish path to environment setup files and GenX source files.</li><li>Read in model settings <code>genx_settings.yml</code> from the example directory.</li><li>Configure solver settings.</li><li>Load the model inputs from the example directory and perform time-domain clustering if required.</li><li>Generate a GenX model instance.</li><li>Solve the model.</li><li>Write the output files to a specified directory.</li></ol><p>After the script runs to completion, results will be written to a folder called <code>results</code>, located in the current working directory.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../third_party_genx/">« Third Party Extensions</a><a class="docs-footer-nextpage" href="../commercial_solvers/">Commertial solvers »</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="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Wednesday 20 March 2024 23:09">Wednesday 20 March 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
julia&gt; include(&quot;/path/to/MyCase/Run.jl&quot;)</code></pre><p>where <code>/path/to/env</code> is the path to the environment with <code>GenX</code> installed, and <code>/path/to/MyCase</code> is the path to the folder of the <code>MyCase</code> case. Alternatively, you can run the case directly from the terminal using the following command:</p><pre><code class="nohighlight hljs">$ julia --project=&quot;/path/to/env&quot; /path/to/MyCase/Run.jl</code></pre><h2 id="What-happens-when-you-run-a-case"><a class="docs-heading-anchor" href="#What-happens-when-you-run-a-case">What happens when you run a case</a><a id="What-happens-when-you-run-a-case-1"></a><a class="docs-heading-anchor-permalink" href="#What-happens-when-you-run-a-case" title="Permalink"></a></h2><p><em>Added in 0.3.4</em></p><p>The entry point for running a GenX case is the <code>run_genx_case!(&quot;path/to/case&quot;)</code> function, where <code>path/to/case</code> is the path to the case directory that contains the <code>.csv</code> files with the inputs for GenX and the <code>settings</code> folder with the configuration files.</p><p>The following are the main steps performed in this function:</p><ol><li>Establish path to environment setup files and GenX source files.</li><li>Read in model settings <code>genx_settings.yml</code> from the example directory.</li><li>Configure solver settings.</li><li>Load the model inputs from the example directory and perform time-domain clustering if required.</li><li>Generate a GenX model instance.</li><li>Solve the model.</li><li>Write the output files to a specified directory.</li></ol><p>After the script runs to completion, results will be written to a folder called <code>results</code>, located in the current working directory.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../third_party_genx/">« Third Party Extensions</a><a class="docs-footer-nextpage" href="../commercial_solvers/">Commertial solvers »</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="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Wednesday 20 March 2024 23:27">Wednesday 20 March 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 07bea5e

Please sign in to comment.