Skip to content

Commit

Permalink
Use fix() instead of setlb and setub to Var
Browse files Browse the repository at this point in the history
  • Loading branch information
jialuw96 committed May 9, 2024
1 parent a11527a commit 5e761e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyomo/contrib/doe/doe.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,7 @@ def _direct_kaug(self):

# only set up bounds if they are variables
if var.ctype is Var:
var.setlb(self.param[par])
var.setub(self.param[par])
var.fix(self.param[par])

# generate parameter name list and value dictionary with index
var_name = list(self.param.keys())
Expand Down

0 comments on commit 5e761e0

Please sign in to comment.