Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- methods (Access = private)
- function results = start(app, XD)
- regu = PopulacjaStart(app.ileOs);
- tic;
- if app.wybor == "iteracje"
- x = 1;
- elseif app.wybor == "czas"
- x = toc;
- end
- z = 1;
- data = zeros([1, app.itera]) * nan;
- j = zeros([1, app.itera]) * nan;
- axis(app.UIAxes, [0, inf, 0, inf]);
- while x <= app.itera && app.Sterowanie.Value == "Start"
- nastepne = feval(XD, regu, app.obiekt, app.szanse);
- if app.metoda.Value == "Ruletka"
- pary = ParRUL(nastepne);
- potom = KrzyzRUL(pary);
- elseif app.metoda.Value == "Rangowa"
- pary = ParRANG(nastepne);
- potom = KrzyzRANG(pary,app.ileOs);
- end
- mut = Mutacja(potom);
- regu = mut;
- pause(0)
- [FC, PR, CR, UCH, KC] = PIDOptimFun(regu(1, :), app.obiekt);
- .
- .
- .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement