Skip to content

Managing unknown components in writers and transformations #309

Open
@qtothec

Description

@qtothec

In a discussion with @jsiirola about other issues, we stumbled across the following:

An open discussion exists for how writers and transformations should deal with unknown components. This includes things like components that users or extensions may declare (i.e. outside of pyomo.core).

For components that can be activated/deactivated, e.g. Disjunction, the writer should raise an error when encountering unknown components in a model that are still marked active. For components that cannot be deactivated, the approach is less clear. A Connector is simply a grouping of variables which makes little sense to deactivate (and as such is not an ActiveComponent). But that also means that it cannot be deactivated to indicate to the writer that it is safe to ignore the unrecognized component. In this case, it should always be safe for writers to silently ignore Connectors.

PS @jsiirola wrote part of the above.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions