-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Thermal Slacks for UB and LB constraints (including ramps) #1207
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1207 +/- ##
==========================================
- Coverage 77.24% 76.98% -0.27%
==========================================
Files 121 121
Lines 13446 13533 +87
==========================================
+ Hits 10387 10418 +31
- Misses 3059 3115 +56
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Performance Results
|
docs/src/api/PowerSimulations.md
Outdated
@@ -150,6 +150,8 @@ For a list of variables for each device refer to its Formulations page. | |||
ActivePowerVariable | |||
ReactivePowerVariable | |||
PieceWiseLinearCostVariable | |||
ActivePowerVariableSlackUp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ActivePowerVariableSlackUp | |
RateofChangeConstraintSlackUp |
docs/src/api/PowerSimulations.md
Outdated
@@ -150,6 +150,8 @@ For a list of variables for each device refer to its Formulations page. | |||
ActivePowerVariable | |||
ReactivePowerVariable | |||
PieceWiseLinearCostVariable | |||
ActivePowerVariableSlackUp | |||
ActivePowerVariableSlackDown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ActivePowerVariableSlackDown | |
RateofChangeConstraintSlackDown |
src/core/variables.jl
Outdated
|
||
Docs abbreviation: ``p^\\text{x,ubsl}`` | ||
""" | ||
struct ActivePowerVariableSlackUp <: VariableType end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
return | ||
end | ||
|
||
function objective_function!( | ||
container::OptimizationContainer, | ||
devices::IS.FlattenIteratorWrapper{T}, | ||
::DeviceModel{T, U}, | ||
model::DeviceModel{T, U}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
model::DeviceModel{T, U}, | |
device_model::DeviceModel{T, U}, |
Closes #1204
Add slacks for UB and LB constraints for thermal units. It uses the
use_slacks
of the device model, so to enable, using:will enable the slacks.
The slack variables are added to the objective function with a cost of
2e5
, using the constraint violation cost.Here is how it looks for a RampConstraint UB:
and for a RampConstraint LB:
TODO: