Skip to content

Commit

Permalink
Corrected use of addVar in highspy modelling documentaiton
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed May 23, 2024
1 parent e1e6152 commit ecef70a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/interfaces/python/example-py.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ subject to x1 <= 7
Using the simplified interface, the model can be built as follows:

```python
x0 = h.addVar(lb = 0, ub = 4)
x1 = h.addVar(lb = 1, ub = 7)
x0 = h.addVariable(lb = 0, ub = 4)
x1 = h.addVariable(lb = 1, ub = 7)

h.addConstr(5 <= x0 + 2*x1 <= 15)
h.addConstr(6 <= 3*x0 + 2*x1)
Expand Down

0 comments on commit ecef70a

Please sign in to comment.