Skip to content

Commit

Permalink
Merge branch 'main' into benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt authored Nov 28, 2023
2 parents a755067 + 91729ba commit 51be801
Show file tree
Hide file tree
Showing 6 changed files with 815 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ jobs:
python -m pip install --cache-dir cache/pip cplex docplex \
|| echo "WARNING: CPLEX Community Edition is not available"
python -m pip install --cache-dir cache/pip \
-i https://pypi.gurobi.com gurobipy \
-i https://pypi.gurobi.com gurobipy==10.0.3 \
|| echo "WARNING: Gurobi is not available"
python -m pip install --cache-dir cache/pip xpress \
|| echo "WARNING: Xpress Community Edition is not available"
Expand Down Expand Up @@ -331,7 +331,7 @@ jobs:
if test -z "${{matrix.slim}}"; then
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
echo "Installing for $PYVER"
for PKG in 'cplex>=12.10' docplex gurobi xpress cyipopt pymumps scip; do
for PKG in 'cplex>=12.10' docplex 'gurobi=10.0.3' xpress cyipopt pymumps scip; do
echo ""
echo "*** Install $PKG ***"
# conda can literally take an hour to determine that a
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_pr_and_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ jobs:
python -m pip install --cache-dir cache/pip cplex docplex \
|| echo "WARNING: CPLEX Community Edition is not available"
python -m pip install --cache-dir cache/pip \
-i https://pypi.gurobi.com gurobipy \
-i https://pypi.gurobi.com gurobipy==10.0.3 \
|| echo "WARNING: Gurobi is not available"
python -m pip install --cache-dir cache/pip xpress \
|| echo "WARNING: Xpress Community Edition is not available"
Expand Down Expand Up @@ -361,7 +361,7 @@ jobs:
if test -z "${{matrix.slim}}"; then
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
echo "Installing for $PYVER"
for PKG in 'cplex>=12.10' docplex gurobi xpress cyipopt pymumps scip; do
for PKG in 'cplex>=12.10' docplex 'gurobi=10.0.3' xpress cyipopt pymumps scip; do
echo ""
echo "*** Install $PKG ***"
# conda can literally take an hour to determine that a
Expand Down
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 51be801

Please sign in to comment.