How can I build a objective function for a three phase induction motor?

Hello, I'm new on matlab and I'm having some trouble to write this objective function to minimize using PSO:
Fobjt = (I1-I1est)/I1)^2+((eff-effest)/N1)^2+((fp-fpest)/fp)^2+((I0-I0est)/I0)^2
where I1, I1est, I0 and I0est are the measured and estimated input current and no load current.
pf, pfest, eff, effest are the measured and stimated power factor and efficiency respectively.

 Accepted Answer

Fobjt = sum((I1-I1est)./I1).^2+((eff-effest)./N1).^2+((fp-fpest)./fp).^2+((I0-I0est)./I0).^2,'All')

4 Comments

The optimizer would be the particle swarm optimization, is that right?
You can use the particle swarm optimization tool with the above objective.
You could also use fmincon.
You might also want to consider lsqcurvefit or ga.
Thank you very much, is there any place there I can find a guide or explanation of how can I use the swarm optimization tool?
I've not yet used it, but the documentation would be the place I'd start with.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!