Hi!
I’m following the JuMP documentation’s Diet problem code, and I’m running into a constraint error (“ERROR: At code.jl:66: @constraint(model, row.min <= sum(foods[!, row.nutrient] .* foods.x) <= row.max)
: Unrecognized constraint building format…This is due to specifying an unrecognized function, constraint set, and/or extra positional/keyword arguments.”)
on this bit of code:
@constraint(
model,
[row in eachrow(limits)],
row.min <= sum(foods[!, row.nutrient] .* foods.x) <= row.max,
);
Can someone pretty please help me figure out what’s going wrong?