Skip to content

Commit

Permalink
Merge pull request #3046 from jsiirola/standard-linear-form
Browse files Browse the repository at this point in the history
Add "writer" for converting linear models to standard matrix form
  • Loading branch information
mrmundt authored Nov 28, 2023
2 parents 7c18cdd + 4f3fe45 commit 500fbc7
Show file tree
Hide file tree
Showing 4 changed files with 811 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyomo/repn/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def load():
import pyomo.repn.plugins.gams_writer
import pyomo.repn.plugins.lp_writer
import pyomo.repn.plugins.nl_writer
import pyomo.repn.plugins.standard_form

from pyomo.opt import WriterFactory

Expand Down
6 changes: 3 additions & 3 deletions pyomo/repn/plugins/nl_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ class NLWriterInfo(object):
eliminated_vars: List[Tuple[_VarData, NumericExpression]]
The list of variables in the model that were eliminated by the
presolve. each entry is a 2-tuple of (:py:class:`_VarData`,
:py:class`NumericExpression`|`float`). the list is ordered in
the necessary order for correct evaluation (i.e., all variables
presolve. Each entry is a 2-tuple of (:py:class:`_VarData`,
:py:class`NumericExpression`|`float`). The list is in the
necessary order for correct evaluation (i.e., all variables
appearing in the expression must either have been sent to the
solver, or appear *earlier* in this list.
Expand Down
Loading

0 comments on commit 500fbc7

Please sign in to comment.