Closed krishpat closed 5 years ago
@krishpat Looks like when you do @objective
, JuMP automatically assigns coefficient "1.0" to the linear variable x[1]
. However when you do @NLobjective
, JuMP doesn't assign "1.0" coefficient and hence you see this error. A quick fix for this assertion is to write your objective as @NLobjective(m, Min, 1*x[1])
.
@krishpat This has been fixed and merged to master.
Thanks @harshangrjn. It works now.
Issue in Alpine v0.1.9
When I run the above problem, Alpine throws this error:
This error does not appear if the objective is specified as
@objective(m, Min, x[1])