-end</code></pre><p>Note that we included in this example a method for <code>investment_data()</code> as outlined above.</p><h2 id="how_to-use_emi-up_obj"><a class="docs-heading-anchor" href="#how_to-use_emi-up_obj">Updating the objective function</a><a id="how_to-use_emi-up_obj-1"></a><a class="docs-heading-anchor-permalink" href="#how_to-use_emi-up_obj" title="Permalink"></a></h2><p><code>EnergyModelsInvestments</code> does not change the objective function. This would require detailed knowledge regarding the individual contributing factors. Hence, we decided that it is beneficial to instead calculate the capital expense contributions in each investment period. As a consequence, when using <code>EnergyModelsInvestments</code>, you have to include the variable <span>$\texttt{cap\_capex}$</span> (if you used <code>prefix = :cap</code>) for all elements with investments to your objective function.</p><p>An illustrative example is given in the function <code>EMB.objective(m, 𝒩, 𝒯, 𝒫, modeltype::AbstractInvestmentModel)</code> compared to the function <code>objective(m, 𝒩, 𝒯, 𝒫, modeltype::EnergyModel)</code> in <code>EnergyModelsBase</code>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../update-models/">« Update models</a><a class="docs-footer-nextpage" href="../contribute/">Contribute to EnergyModelsInvestments »</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><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.17.0 on <span class="colophon-date" title="Wednesday 8 April 2026 12:00">Wednesday 8 April 2026</span>. Using Julia version 1.12.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
0 commit comments