Skip to content

Commit

Permalink
addressed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ewu63 committed Dec 1, 2023
1 parent b4cbc25 commit 3355ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyoptsparse/pyOpt_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, optProb, xStar, fStar, lambdaStar, optInform, info):
for var in self.variables[dvGroup]:
var.value = xopt[i]
i += 1
i = 0

# Now set the f-values
if isinstance(fStar, float) or len(fStar) == 1:
self.objectives[list(self.objectives.keys())[0]].value = float(fStar)
Expand Down

0 comments on commit 3355ba0

Please sign in to comment.