I have an objective function fun
where the input parameter x
should be optimized by particleswarm()
: https://de.mathworks.com/help/gads/particleswarm.html
I want to find the optimal values for x
for defined scenarios. Because of this, besides x
the function fun
also accepts scenario parameters s1
and s2
:
function f = objective(x, s1, s2)
Now, how do I tell the solver to just optimize x
and ignore the input parameters for s1
and s2
?