I have this function, ptrans[n_, k_, h1_, h2_, fm_, em1_, f_, t0_], that I'm trying to minimize with respect to h1 & h2. The other parameters/arguments are provided constant values. At first I was using unconstrained optimization placing constants or constant lists for all arguments excpet h1/2. Also, I had h1 and h2 as a list called h but I could not get the minimization functions to feed h into the function. I kept getting errors saying, in essence, that h was not provided with a value. So, I made h two scalars h1 & h2 and then had the same problem. So then I tried constrained optimization placing == constraints on all the arguments except the h1 & h2. I'm still getting the same type of error. It is saying, "Symbol::argx: Symbol called with 0 arguments; 1 argument is expected". so basicially, near as I can tell the function is not getting fed numbers for the h1/h2 optimization variables. I'm using FindMinimum for the optimization.
So, I'm looking at the tutorials on optimization and am seeing all the examples only had arguments that were optimization parameters. Maybe that is the problem? Maybe Mathematica can't optimization a multiple paramater/argumement function unless all the arguments are optimization variables?