Skip to content

Check if user-provided model component names conflict with pyaugmecon-added component names #23

Open
@npaterakis

Description

@npaterakis

Method convert_prob in class Model modifies the user-provided pyomo model by adding new components.
If the model of interest contains a component with the same name as one of the components that are added by the convert_prob method it will be "overwritten" resulting in errors that are hard to trace.

Thus, there are some reserved component names against which the component names in the user-provided model must be checked and, in case of conflict, guide the user to fix them.

@wouterbles I already have a solution for this. It appears that there are only 4 components ({'Os', 'Slack', 'e', 'con_list'}) added to the model, but it would be good to rename them first.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions