To build a constraint from a NxM matrix variable (denoted by h), I need to build another NxM matrix so I wrote an external function
convexity(h). I tried this syntax (partial code):
function convexity(h) #... return output end #... @variables( model, begin h[1:N,1:M]<=b/2.0 end ) @NLobjective( # max perimeter model, Max, aireSurface(h) ) @constraint( # convexity model, convexity(h) .> 0 )
Unfortunately, I get the error:
@constraint(model, convexity(h) .> 0): Unrecognized sense >`. What did I do wrong?