pyomo icon indicating copy to clipboard operation
pyomo copied to clipboard

Review of how fixed variables are managed in problem writers

Open whart222 opened this issue 5 years ago • 3 comments

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?

whart222 avatar Jul 20 '18 23:07 whart222