How to set variable in min-max problem?

Here is my problem.

I guess I can use
minimize(max(.......))
this form to optimization. And it’s convex for z and (x,x0,y,y0).

But how to set z for max and (x,x0,y,y0) for min?

min t

t>=g(…,z);

%do something like this