I am trying to perform numerical optimization of the black box function in Mathematica. Schematically, it looks like this:
NMinimize[{comb[x,y,z], x > 0}, {x,y,z}]
where the crest [x, y, z] is defined similarly to this:
comb[x_,y_,z_] := Module[{}, Print[x,y,z]; M = FindMaximum[SkewNormal[a,x,y,z], {a,x}]
However, all the minimization functions that I tried, apparently, do not immediately give a comb [x, y, z] with numerical values, and it tries to evaluate FindMaximum with symbolic values ββfor x, y, z (which is easily verified, since Print [x, y, z] is also symbolically evaluated). Thus, Findmaximum fails (FindMaximum :: nrnum: the value of the blah blah function is not a real number), and therefore minimization is not performed.
How to fix the evaluation procedure so that comb sub-functions are evaluated with numerical values?