Nonlinear constraints with fmincon in matlab -


i using fmincon minimize overlap between circles on map region. working rectangle/square region have constraint centers of circles on land (the continental us). there way specify constraint in fmincon using inpolygon?

no, because introduce non-smoothness in optimization problem. deciding if point in polygon yes/no decision.

however, can rewrite polygon constraint, x vector of optimization variables ax<=b. 2d example, x=[x1;x2] , assuming square region, values be

a = [1 0; -1 0; 0 1; 0 -1]; b = [1; 0; 1; 0]; 

Comments