I want to solve a problem with an objective that doesn't have a closed-form analytic expression. To give a concrete example, I have a set of 2D variables representing points on which I enforce a set of analytic constraints, and the function I want to minimize is intersection of these points' convex hull with some given shape.
If I were to try and solve this optimization problem in Matlab, I would formulate the constraints and then write a function that computes objective on each iteration explicitly, by computing the convex hull, intersecting it with the given shape and computing the area. Can I somehow supply such a function that computes the objective to YALMIP and have it call fmincon with that function as the objective callback?