I have a function to optimize, say, a function in Matlab. This function depends on the variables (say, x) over which I want to optimize, and one parameter (say, Q) that does not need to be optimized. Function, Function Function (x, Q). In other words, I have an array of values for Q and you want to find the optimal x values for each Q. However, I cannot find a way to pass these Q values when using the handle @Function function in the optimization function.
So my question is how to pass these Q values when using a function descriptor in optimization functions like fmincon (@Function, x0, A, b)?
Tomas source
share