Skip to content

Commit d4f8a69

Browse files
authored
Merge branch 'main' into gams-gurobi_fix
2 parents 4fb1a75 + 918824e commit d4f8a69

File tree

246 files changed

+591
-586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+591
-586
lines changed

.github/workflows/typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,6 @@ lst = "lst"
7373
gam = "gam"
7474
# Regex search term from contrib/solver/solvers/ipopt
7575
ond = "ond"
76+
# GAMS_writer
77+
PATHC = "PATHC"
7678
# AS NEEDED: Add More Words Below

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ ADVANCE CHANGE NOTICE:
14421442
- DAE Updates
14431443
- Extend flattener to allow multiple sets (#1768)
14441444
- GDP Updates
1445-
- Fix subproblem initialiations in gdp.cuttingplane (#1780)
1445+
- Fix subproblem initializations in gdp.cuttingplane (#1780)
14461446
- Testing
14471447
- Fix Jenkins test script (#1771)
14481448
- Fix GHA tests to work with PyMySQL 1.0.0 (#1777)

doc/OnlineDocs/explanation/developer_utils/config.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ derived classes. Consider the following example:
124124

125125
.. doctest::
126126

127-
>>> class Base(object):
127+
>>> class Base:
128128
... CONFIG = ConfigDict()
129129
... CONFIG.declare('filename', ConfigValue(
130130
... default='input.txt',
@@ -168,7 +168,7 @@ and for use by each ``solve()`` call:
168168

169169
.. testcode::
170170

171-
class Solver(object):
171+
class Solver:
172172
CONFIG = ConfigDict()
173173
CONFIG.declare('iterlim', ConfigValue(
174174
default=10,
@@ -206,7 +206,7 @@ attributes:
206206
from pyomo.common.config import document_class_CONFIG
207207

208208
@document_class_CONFIG(methods=['solve'])
209-
class MySolver(object):
209+
class MySolver:
210210
"""Interface to My Solver"""
211211
#
212212
#: Global class configuration; see :ref:`MySolver_CONFIG`

doc/OnlineDocs/explanation/modeling_utils/flattener/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Citation
4848
--------
4949
If you use the ``pyomo.dae.flatten`` module in your research, we would appreciate
5050
you citing the following paper, which gives more detail about the motivation for
51-
and examples of using this functinoality.
51+
and examples of using this functionality.
5252

5353
.. code-block:: bibtex
5454

examples/dae/ReactionKinetics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
solver = pyo.SolverFactory('ipopt')
2929

3030

31-
class Reaction(object):
31+
class Reaction:
3232
"""A simple class to hold the stoichiometry of a single reaction
3333
3434
Reaction data is stored in two dictionaries:
@@ -84,7 +84,7 @@ def _parseTerm(self, x):
8484
return coef, species.strip()
8585

8686

87-
class ReactionNetwork(object):
87+
class ReactionNetwork:
8888
"""A simple object to hold sets of reactions."""
8989

9090
def __init__(self):

examples/mpec/munson1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ model:
1111
file determinism: 1 # When interfacing with a solver using file
1212
# based I/O, set the effort level for
1313
# ensuring the file creation process is
14-
# determistic. The default (1) sorts the
14+
# deterministic. The default (1) sorts the
1515
# index of components when transforming the
1616
# model. Anything less than 1 disables
1717
# index sorting. Anything greater than 1

examples/pyomo/p-median/solver1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
@plugin_factory(pyo.SolverFactory)
20-
class MySolver(object):
20+
class MySolver:
2121
alias('greedy')
2222

2323
# Declare that this is an IOptSolver plugin

examples/pyomo/p-median/solver2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
@plugin_factory
21-
class MySolver(object):
21+
class MySolver:
2222
alias('random')
2323

2424
# Declare that this is an IOptSolver plugin

examples/pyomo/radertext/Ex2_3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
model.CrudeType, model.GasType, within=pyo.NonNegativeReals, default=0
4141
)
4242

43-
# Variabls
43+
# Variables
4444
model.x = pyo.Var(model.CrudeType, model.GasType, within=pyo.NonNegativeReals)
4545
model.q = pyo.Var(model.CrudeType, within=pyo.NonNegativeReals)
4646
model.z = pyo.Var(model.GasType, within=pyo.NonNegativeReals)

pyomo/common/autoslots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def encode_as_none(encode, val):
276276
else:
277277
return val
278278

279-
class Mixin(object):
279+
class Mixin:
280280
"""Mixin class to configure a class hierarchy to use AutoSlots
281281
282282
Inheriting from this class will set up the automatic generation

0 commit comments

Comments
 (0)