In the way to find the maximum intersection between a triangle region and a disk region I made a short script which reads
Clear[intArea]
intArea[x0_?NumberQ, y0_?NumberQ] :=
Module[{rcir, R, l1, l2, l3, rtri, r = 2, x, y},
l1 = -4 y;
l2 = 2 Sqrt[3] (-4 + x) + 2 y;
l3 = -2 Sqrt[3] (-2 + x) + 2 (-2 Sqrt[3] + y);
rtri = ImplicitRegion[l1 <= 0 && l2 <= 0 && l3 <= 0, {x, y}];
rcir = Disk[{x0, y0}, r];
R = RegionIntersection[rtri, rcir];
Return[Area[DiscretizeRegion[R]]]
]
NMaximize[{intArea[x0, y0], 0. < x0 < 5., 0. < y0 < 5.}, {x0, y0}, Method -> "DifferentialEvolution"]
but something is not according to the rules. I would appreciate to receive some help. Thanks.





