JuMP diet tutorial issue?

You forgot to copy paste this part of the tutorial:

limits.max = coalesce.(limits.max, Inf)

This makes the missing in limits cause an error when you try to build the constraint. In general it’s easier to download the entire file via the link Download the source as a .jl file at the top of the tutorial, this gives you a well-formatted error-free file to work upon.

2 Likes