How to write an objective function(with complex term) to get optimization through PSO with five parameters ?
Show older comments
I would like to find optimize value of parameters in below equation,
Here
are parameters needs to be optimize by PSO.
I have an experimental values of W and ε as follow,
and
I am able to get the solution of
through lsqurvefit but It doesn't give the optimal values.
Here I wants to use all experimental values to find optimimum. How it can be incorporated in objective function?
3 Comments
Alan Weiss
on 21 Jun 2020
When you say "complex," do you mean that the values of your parameters can have imaginary parts? And what makes you think that PSO is a good way to optimize this system? Probably, since you use lsqcurvefit, you are looking for a least-squares solution rather than an exact solution. It is possible that lsqcurvefit got stuck in a local miniimum. For ways around this problem, see MultiStart Using lsqcurvefit or lsqnonlin.
I would also suggest that you set bounds on the parameters if possible, such as nonnegativity if you believe that is applicable. Bounds can help the solver find a good solution. I encourage you to continue using lsqcurvefit, possibly with MultiStart, rather than PSO.
Alan Weiss
MATLAB mathematical toolbox documentation
Walter Roberson
on 21 Jun 2020
I suspect "complex" means "complicated" in this context.
Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!