NLopt.jl icon indicating copy to clipboard operation
NLopt.jl copied to clipboard

Add vector constraints

Open Cargopal opened this issue 4 years ago • 0 comments

Trying to add a vector constraint to my optimization problem, I came to one error when using the syntax: inequality_constraint!(opt, m, (c,u,g) -> constraints(c,u,g,p), tol )

I checked the code and found a little bug; in line 476 is written $cf(o, f, fill!(Cdouble(tol), m))

while it should be

$cf(o, f, fill(Cdouble(tol), m))

without the exclamation mark

Cargopal avatar May 13 '21 09:05 Cargopal