# ____________________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright (c) 2008-2026 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and Engineering
# Solutions of Sandia, LLC, the U.S. Government retains certain rights in this
# software. This software is distributed under the 3-clause BSD License.
# ____________________________________________________________________________________
import logging
from pyomo.common.deprecation import deprecated
from pyomo.core.base import (
Transformation,
TransformationFactory,
Var,
Constraint,
Objective,
minimize,
NonNegativeReals,
NonPositiveReals,
Reals,
Block,
Model,
ConcreteModel,
)
from pyomo.duality.collect import collect_linear_terms
logger = logging.getLogger('pyomo.core')
#
# This transformation creates a new block that
# is the dual of the specified block. If no block is
# specified, then the entire model is dualized.
# This returns a new Block object.
#