Skip to content

Commit

Permalink
Add solve to help with initialization of DoE model
Browse files Browse the repository at this point in the history
  • Loading branch information
djlaky committed Aug 16, 2024
1 parent ecc24bf commit 6505f5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyomo/contrib/doe/doe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@ def build_block_scenarios(b, s):
pyo.ComponentUID(param, context=m.base_model).find_component_on(
b
).set_value(m.base_model.unknown_parameters[param] * (1 + diff))
res = self.solver.solve(b, tee=self.tee)

model.scenario_blocks = pyo.Block(model.scenarios, rule=build_block_scenarios)

Expand Down

0 comments on commit 6505f5b

Please sign in to comment.