From 6f679844a8b4c79e2ef8e0a89237bc5b0ce7f52f Mon Sep 17 00:00:00 2001 From: John Siirola Date: Fri, 17 May 2024 16:32:52 -0600 Subject: [PATCH] Deprecate pyomo.core.plugins.transform.model --- pyomo/core/plugins/transform/model.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyomo/core/plugins/transform/model.py b/pyomo/core/plugins/transform/model.py index 7ee268a4292..9f370c96304 100644 --- a/pyomo/core/plugins/transform/model.py +++ b/pyomo/core/plugins/transform/model.py @@ -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