Skip to content

Commit

Permalink
remove hack from implicity functions solver
Browse files Browse the repository at this point in the history
  • Loading branch information
bknueven committed Jun 21, 2024
1 parent 8215ef8 commit c2e00f2
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,6 @@ def __init__(
# Need a dummy objective to create an NLP
for block, inputs in self._solver_subsystem_list:
block._obj = Objective(expr=0.0)
# I need scaling_factor so Pyomo NLPs I create from these blocks
# don't break when ProjectedNLP calls get_primals_scaling
block.scaling_factor = Suffix(direction=Suffix.EXPORT)
# HACK: scaling_factor just needs to be nonempty
block.scaling_factor[block._obj] = 1.0

# Original PyomoNLP for each subset in the partition
# Since we are creating these NLPs with "constants" fixed, these
Expand Down

0 comments on commit c2e00f2

Please sign in to comment.