Skip to content

Commit c2e00f2

Browse files
committed
remove hack from implicity functions solver
1 parent 8215ef8 commit c2e00f2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pyomo/contrib/pynumero/algorithms/solvers/implicit_functions.py

-5
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,6 @@ def __init__(
403403
# Need a dummy objective to create an NLP
404404
for block, inputs in self._solver_subsystem_list:
405405
block._obj = Objective(expr=0.0)
406-
# I need scaling_factor so Pyomo NLPs I create from these blocks
407-
# don't break when ProjectedNLP calls get_primals_scaling
408-
block.scaling_factor = Suffix(direction=Suffix.EXPORT)
409-
# HACK: scaling_factor just needs to be nonempty
410-
block.scaling_factor[block._obj] = 1.0
411406

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

0 commit comments

Comments
 (0)