Open
Description
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?