Skip to content

Commit

Permalink
Merge pull request #1646 from datawookie/patch-1
Browse files Browse the repository at this point in the history
fix: Typo in examples
  • Loading branch information
jarsarasty authored Jan 28, 2025
2 parents b5312d7 + 10d1626 commit f856a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/basic/src/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Example(CSVMixin, ModelicaMixin, CollocatedIntegratedOptimizationProblem):

def objective(self, ensemble_member):
# Minimize water pumped. The total water pumped is the integral of the
# water pumped from the starting time until the stoping time. In
# water pumped from the starting time until the stopping time. In
# practice, self.integral() is a summation of all the discrete states.
return self.integral("Q_release", ensemble_member=ensemble_member)

Expand Down
2 changes: 1 addition & 1 deletion examples/mixed_integer/src/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Example(CSVMixin, ModelicaMixin, CollocatedIntegratedOptimizationProblem):
# RTC-Tools always minimizes the objective.
def objective(self, ensemble_member):
# Minimize water pumped. The total water pumped is the integral of the
# water pumped from the starting time until the stoping time. In
# water pumped from the starting time until the stopping time. In
# practice, self.integral() is a summation of all the discrete states.
return self.integral("Q_pump", ensemble_member=ensemble_member)

Expand Down

0 comments on commit f856a4a

Please sign in to comment.