From 319e9ff53b95eff9637ce3d1c8f8d68d71567bff Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 6 Mar 2024 16:19:52 +1300 Subject: [PATCH] Update --- docs/make.jl | 5 ++--- .../tutorials/transitioning/transitioning_from_matlab.jl | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index cd3d1ca2012..17c482e6b98 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -291,9 +291,8 @@ const _PAGES = [ "tutorials/getting_started/design_patterns_for_larger_models.md", "tutorials/getting_started/performance_tips.md", ], - "Transitioning" => [ - "tutorials/transitioning/transitioning_from_matlab.md", - ], + "Transitioning" => + ["tutorials/transitioning/transitioning_from_matlab.md"], "Linear programs" => [ "tutorials/linear/introduction.md", "tutorials/linear/knapsack.md", diff --git a/docs/src/tutorials/transitioning/transitioning_from_matlab.jl b/docs/src/tutorials/transitioning/transitioning_from_matlab.jl index 76d3c375273..f91b49e4838 100755 --- a/docs/src/tutorials/transitioning/transitioning_from_matlab.jl +++ b/docs/src/tutorials/transitioning/transitioning_from_matlab.jl @@ -28,8 +28,8 @@ # used YALMIP or CVX by comparing and contrasting their different features. # !!! tip -# If you have not used Julia before, read the [Getting started with Julia](@ref) -# tutorial. +# If you have not used Julia before, read the [Getting started with Julia](@ref) +# tutorial. # ## Namespaces @@ -144,7 +144,7 @@ m[2] # Like CVX, but unlike YALMIP, JuMP has a specific command for setting an # objective function: -@objective(model, Min, sum(m[1][i, i] for i in 1:3)) +@objective(model, Min, sum(i * x[i] for i in 1:3)) # Here the third argument is any expression you want to optimize, and `Min` is # an objective sense (the other possibility is `Max`).