Skip to content

Commit c56e243

Browse files
make floats
1 parent 5391140 commit c56e243

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/tutorials/linearandinteger.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ The ultimate objective is to maximize the company's wealth in June, denoted by t
3838
```@example linear
3939
using Optimization, OptimizationMOI, ModelingToolkit, HiGHS, LinearAlgebra
4040
41-
@variables u[1:5] [bounds = (0, 100)]
42-
@variables v[1:3] [bounds = (0, Inf)]
43-
@variables w[1:5] [bounds = (0, Inf)]
44-
@variables m [bounds = (0, Inf)]
41+
@variables u[1:5] [bounds = (0.0, 100.0)]
42+
@variables v[1:3] [bounds = (0.0, Inf)]
43+
@variables w[1:5] [bounds = (0.0, Inf)]
44+
@variables m [bounds = (0.0, Inf)]
4545
4646
cons = [u[1] + v[1] - w[1] ~ 150 # January
4747
u[2] + v[2] - w[2] - 1.01u[1] + 1.003w[1] ~ 100 # February

0 commit comments

Comments
 (0)