-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding dual debug mode tests for opt mode
- Loading branch information
1 parent
59f598d
commit a341a23
Showing
3 changed files
with
143 additions
and
7 deletions.
There are no files selected for viewing
113 changes: 113 additions & 0 deletions
113
tests/integration_tests/mechanics/debug_mode/opt/heron_input.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<HERON> | ||
<TestInfo> | ||
<name>DebugMode</name> | ||
<author>talbpaul</author> | ||
<created>2021-02-22</created> | ||
<description> | ||
Tests a debug mode of operation, where a single outer runs a single sample of inner | ||
and outputs the optimized dispatch. | ||
</description> | ||
<classesTested>HERON</classesTested> | ||
</TestInfo> | ||
|
||
<Case name="Debug_Run"> | ||
<mode>opt</mode> | ||
<debug> | ||
<inner_samples>2</inner_samples> | ||
<macro_steps>2</macro_steps> | ||
<dispatch_plot>True</dispatch_plot> | ||
</debug> | ||
<num_arma_samples>1</num_arma_samples> | ||
<time_discretization> | ||
<time_variable>Time</time_variable> | ||
<end_time>2</end_time> | ||
<num_steps>21</num_steps> | ||
</time_discretization> | ||
<economics> | ||
<ProjectTime>3</ProjectTime> | ||
<DiscountRate>0.08</DiscountRate> | ||
<tax>0.3</tax> | ||
<inflation>0.02</inflation> | ||
<verbosity>50</verbosity> | ||
</economics> | ||
<dispatcher> | ||
<pyomo/> | ||
</dispatcher> | ||
</Case> | ||
|
||
<Components> | ||
<Component name="steamer"> | ||
<produces resource="steam" dispatch="fixed"> | ||
<capacity resource="steam"> | ||
<opt_bounds debug_value="3.14">1, 100</opt_bounds> | ||
</capacity> | ||
</produces> | ||
<economics> | ||
<lifetime>5</lifetime> | ||
</economics> | ||
</Component> | ||
|
||
<Component name="generator"> | ||
<produces resource="electricity" dispatch="independent"> | ||
<consumes>steam</consumes> | ||
<capacity resource="steam"> | ||
<fixed_value>-100</fixed_value> | ||
</capacity> | ||
<transfer> | ||
<linear> | ||
<rate resource="steam">-1</rate> | ||
<rate resource="electricity">0.5</rate> | ||
</linear> | ||
</transfer> | ||
</produces> | ||
<economics> | ||
<lifetime>5</lifetime> | ||
</economics> | ||
</Component> | ||
|
||
<Component name="electr_market"> | ||
<demands resource="electricity" dispatch="dependent"> | ||
<capacity> | ||
<fixed_value>-2</fixed_value> | ||
</capacity> | ||
</demands> | ||
<economics> | ||
<lifetime>30</lifetime> | ||
<CashFlow name="e_sales" type="repeating" taxable='True' inflation='none' > | ||
<driver> | ||
<activity>electricity</activity> | ||
</driver> | ||
<reference_price> | ||
<fixed_value>0.5</fixed_value> | ||
</reference_price> | ||
</CashFlow> | ||
</economics> | ||
</Component> | ||
|
||
<Component name="electr_flex"> | ||
<demands resource="electricity" dispatch="dependent"> | ||
<capacity> | ||
<fixed_value>-1e200</fixed_value> | ||
</capacity> | ||
</demands> | ||
<economics> | ||
<lifetime>30</lifetime> | ||
<CashFlow name="e_sales" type="repeating" taxable='True' inflation='none' > | ||
<driver> | ||
<activity>electricity</activity> | ||
</driver> | ||
<reference_price> | ||
<Function method="flex_price">transfers</Function> | ||
</reference_price> | ||
</CashFlow> | ||
</economics> | ||
</Component> | ||
|
||
</Components> | ||
|
||
<DataGenerators> | ||
<ARMA name='Price' variable="Signal">%HERON_DATA%/TSA/Sine/arma.pk</ARMA> | ||
<Function name="transfers">../transfers.py</Function> | ||
</DataGenerators> | ||
|
||
</HERON> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters