Skip to content

Commit

Permalink
Update pyomo/contrib/doe/doe.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bethany Nicholson <[email protected]>
  • Loading branch information
jialuw96 and blnicho authored May 9, 2024
1 parent e434fb5 commit 98d759f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyomo/contrib/doe/doe.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,7 @@ def block_build(b, s):
var = cuid.find_component_on(b)

# if it is a variable, fix it to a new value
if isinstance(
var, (pcb.var.Var, pcb.var.IndexedVar, pcb.var.ScalarVar)
):
if var.ctype is Var:
var.fix(self.scenario_data.scenario[s][par])
# if it is a param, give it a new value
elif var.ctype is Param:
Expand Down

0 comments on commit 98d759f

Please sign in to comment.