Closed fabrizioleone closed 1 year ago
OK, never mind. I figured it out. I post my solution just for reference in case others are interested:
con_c!(c, x, a) = (c[1] = a*x[1]^2 + x[2]^2; c)
lc = [-Inf]
uc = [1.0]
dfc = TwiceDifferentiableConstraints((cox) -> con_c!(c, x, a), lc, uc)
Hi,
Thanks you for this great package. I am dealing with an optimization problem with generic non-linear constraints. I am reading the relative documentation here.
I understand that non-linear constraints take this form
and must be passed to
optim
this wayHow should I supply multiple inputs to
con_c!
? I would need something likeHow shall I pass
con_c!
toTwiceDifferentiableConstraints(con_c!, lc, uc)
then?Thank you