Quantcast
Channel: MATLAB Central Newsreader - tag:"optimization"
Viewing all articles
Browse latest Browse all 130

Re: Simulink and GA

$
0
0
On 3/11/2016 7:58 PM, Schoolar Interest wrote:
> Hi!
>
> I've build a Simulink model of a DC motor that have an inductance L and
> a resistance R as parameters.
> When i run it, I get a speed response.
>
> I want to use genetic algorithm (GA) from Matlab to optimize L and R and
> get desired speed.
>
> I don't know how to write the code so please help me!!!
>
> Thank you so much!

Perhaps this answer from MATLAB Answers will help:
http://www.mathworks.com/matlabcentral/answers/92888-how-do-i-run-a-model-in-simulink-from-my-matlab-function-where-my-simulink-parameters-are-defined-in

Alan Weiss
MATLAB mathematical toolbox documentation

Viewing all articles
Browse latest Browse all 130

Trending Articles