Being new to Mathematica, I tried my best to find some built-in functions or guides on how to solve the classical min-max problem
$$ \min_{x} \max_{k} f(x,k,params) $$
with some additional variables $params$ and some simple constraints on the variables (e.g., $x\in [x_{min},x_{max}]$ and $k\in [k_{min},k_{max}]$) in the Mathematica language. Finding none (giving a link would be much appreciated), my approach was to first define function computing $$ \max_{k} f(x,k) $$ e.g.,
fMax[x_,params_] :=
FindMaximum[{f[x,k,params_], k > kmin, k < kmax}, {k, kinit}];
with a parameter $x$ and then minimize fmax, e.g.,
fMinMax[x_,params_] :=
FindMinimum[{fMax[x_,params_], x > xmin, x < xmax}, {x, xinit}];
However, the following error is consistently raised.
FindMaximum::nrnum: The function value -((9.27923*10^11-2.95367*10^10 p)/(5.15531*10^17+1.64099*10^16 p)) is not a real number at {k} = {10.}.
although upon evaluating the function at that given point, the value is indeed real. I would be glad for any help. To give the full setting $f$ amounts to
$$ f(x,k,a,b,\alpha) = \frac{\frac{k\pi}{b} \cosh \left(\frac{k\pi}{b} (a-\alpha)\right) + x \sinh \left(\frac{k\pi}{b} (a-\alpha)\right)}{\frac{k\pi}{b} \cosh \left(\frac{k\pi}{b} (a+\alpha)\right) + x \sinh \left(\frac{k\pi}{b} (a+\alpha)\right)} $$
where $a,b,\alpha$ are positive parrameters such that $a>\alpha>0,b>0$.

Minimize[MaxValue[f[x, k], x], k]? This can solve some simple problems. – AsukaMinato Sep 24 '20 at 10:08I feel like the error message is telling me that for the inner function the call took place without specifying the inner parameter - and that's why Mathematica thinks it's not a number - but don't know if that si indeed the case and if so then how to fix it.
– michalOut Sep 24 '20 at 11:25ResourceFunction's useful to you?ResourceFunction["GeneralMiniMaxApproximation"]andResourceFunction["MiniMaxApproximation"]– flinty Sep 24 '20 at 13:27