From c56e243f03d81b5ee9f49ea2635a1ffbebfb5c8d Mon Sep 17 00:00:00 2001 From: Vaibhav Dixit Date: Mon, 23 Oct 2023 11:58:49 -0400 Subject: [PATCH] make floats --- docs/src/tutorials/linearandinteger.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/tutorials/linearandinteger.md b/docs/src/tutorials/linearandinteger.md index 44623c5cc..a004de0dd 100644 --- a/docs/src/tutorials/linearandinteger.md +++ b/docs/src/tutorials/linearandinteger.md @@ -38,10 +38,10 @@ The ultimate objective is to maximize the company's wealth in June, denoted by t ```@example linear using Optimization, OptimizationMOI, ModelingToolkit, HiGHS, LinearAlgebra -@variables u[1:5] [bounds = (0, 100)] -@variables v[1:3] [bounds = (0, Inf)] -@variables w[1:5] [bounds = (0, Inf)] -@variables m [bounds = (0, Inf)] +@variables u[1:5] [bounds = (0.0, 100.0)] +@variables v[1:3] [bounds = (0.0, Inf)] +@variables w[1:5] [bounds = (0.0, Inf)] +@variables m [bounds = (0.0, Inf)] cons = [u[1] + v[1] - w[1] ~ 150 # January u[2] + v[2] - w[2] - 1.01u[1] + 1.003w[1] ~ 100 # February