Define a function of two variables and one additional constant parameter.
1) Set the VariableParameters, ConstantParameters size and (optionally) initial value:
Note that all values are real.
2) Define the actual function:
Here Pars = VariableParameters.Values and Consts = ConstantParameters.Values.
3) "Connect" the function with TMtxOptimization component:
Please note that the internal algorithm does not check if Parameters, Constants, PConstants array size is the same as VariableParameters.Values, ConstantParameters.Values and SetPointers array size.