Skip to content

Review of how fixed variables are managed in problem writers #620

Open
@whart222

Description

@whart222

This is prompted by #619 and the discussion related to the resolution of an error in the LP writer when fixed variables are processed. It is not obvious how to extend the tests in pyomo.repn to handle fixed variables, which, more generally, relates to some implicit assumptions regarding how fixed variables arise and managed.

There are a number of questions regarding the writers:

  • Do they generate StandardRepn for all objectives/constraints by default, even if repn data is cached?
  • Should repn data be cached on the model, or managed by the solver that is leveraging this during resolves?
  • Are fixed variables removed? Why or why not?
  • What writer options are necessary for managing writing with fixed variables?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions