I am completely new to the JuMP.jl package. I am trying to set soft constraints with different weights but only getting errors for any constraints I set. I would like something similar to this link
I have tried
using JuMP
using HiGHS
using NLopt
model = Model(NLopt.Optimizer)
set_optimizer_attribute(model, "algorithm", :LN_COBYLA)
@variable(model, x)
@constraint(model, x > 0 )
but getting this error
`@constraint(model, x > 0)`: Unrecognized sense >