Optimization function with restrictions on its variables

23 Views Asked by At

Can you please help me to find a continuous function $f(x_1,...,x_n,y)$ which has a global maximum (say, $1$) when at least one of the variables $x_1,...,x_n$ is positive and $y=0$?