add to your objective function a option input (ex. 'ab' string) that specifies active parameters in the optimizacion and a CASE statement within your program such that considere the posibilities. This option input can be invoked from the optimization function. I hope to understand your problem.
Does your optimisation problem have anything to to with data? If yes, check the statistical routine which has been written for Matlab (statistics and econometrics)
Lupin said:
I've been writing a function in Matlab ... the input parameters are:
a , b, c , d , e....
I can define an error (or objective) function to be minimized....
I've problems to implement a program that optimizes the error function considering only a certain numer of inputs (e.g. such as b parameter only) .