'Pyomo integral over range?
I am looking to operate a pyomo constraint that the integral of a variable (wrt time) cannot be more than a value for any 80 day period.
# Integral
@m.Integral(m.t)
def power(m, t):
return m.E[t]
# Constraint
@m.Constraint()
def total_power(m):
return m.power <= 80
This only works for the integral on domain [t0 , tf]. How can I specifically constrain the integral over every 80-day period?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
