Commit 8c257b53 authored by Jesse VanderWees's avatar Jesse VanderWees 🐘

get rid of old second boolean

parent 80f10f59
......@@ -9,7 +9,6 @@ model Example
input Modelica.SIunits.VolumeFlowRate Q_pump(fixed=false, min=0.0, max=7.0);
input Modelica.SIunits.VolumeFlowRate Q_orifice(fixed=false, min=0.0, max=10.0);
input Boolean is_downhill;
/*input Boolean pump_on;*/
output Modelica.SIunits.Position storage_level;
output Modelica.SIunits.Position sea_level;
equation
......
......@@ -41,10 +41,6 @@ class Example(CSVMixin, ModelicaMixin, CollocatedIntegratedOptimizationProblem):
constraints.append((self.state('H_sea') - self.state('storage.HQ.H') +
self.state('is_downhill') * M, 0.0, inf))
# Restrict Q_pump to two states: 5.0 and 0.0
# constraints.append(
# (self.state('Q_pump') - self.state('pump_on') * 5.0, 0.0, 0.0))
# Orifice flow constraint. Uses the equation:
# Q(HUp, HDown, d) = width * C * d * (2 * g * (HUp - HDown)) ^ 0.5
# Note that this equation is only valid for orifices that are submerged
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment