Skip to content

Commit

Permalink
Merge pull request Pyomo#3265 from jsiirola/deprecate-to_standard_form
Browse files Browse the repository at this point in the history
Deprecate `pyomo.core.plugins.transform.model.to_standard_form()`
  • Loading branch information
mrmundt authored May 21, 2024
2 parents 9e102d8 + 6f67984 commit f9c5a2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyomo/core/plugins/transform/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@
# because we may support an explicit matrix representation for models.
#

from pyomo.common.deprecation import deprecated
from pyomo.core.base import Objective, Constraint
import array


@deprecated(
"to_standard_form() is deprecated. "
"Please use WriterFactory('compile_standard_form')",
version='6.7.3.dev0',
remove_in='6.8.0',
)
def to_standard_form(self):
"""
Produces a standard-form representation of the model. Returns
Expand Down

0 comments on commit f9c5a2f

Please sign in to comment.