Skip to content

Move modeling language decisions from formulations into object classes #171

@jezsadler

Description

@jezsadler

A few places in the code have something like if lang == DEFAULT_MODELING_LANGUAGE: branches which behave differently based on whether they're using Pyomo or another modeling language. This should be handled by the objects themselves - the caller should have a single path, and the variable or constraint should know how to apply that path to its own data store.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions