function [regulator_parameters, rsss_parameters,system,apriori]=nastav(horizont, num_of_candidates, generate_candidates_mode, search_region_init, gama, lambda, n_grid, n_pass, n_iter, n0, delta, alfa,b, sigma,yr, y0, y0_range, b0,P0) %OK %nastaveni %sidp %horizont...ridici horizont %num_of_candidates...pocet kandidatu na zmenu u %search_region_init...pocatecni rozsah pro zmenu prozatimniho optimalniho u %gama, lambda...parametri pro redukci search_region_init %n_grid...pocet bodu v diskretizaci kazdeho rozmeru hyperstavu %n_pass...pocet nezavislych pruchodu %n_iter...pocet opakovani v kazdem pruchodu %n0, delta, alfa...parametry RSSS (implementovana ve funkci %compare_candidaes) %system %dim...dimenze hyperstavu ulohy %b,sigma...parametr systemu %apriori %b0, b_range...apriorni informace o b %P0, P_range...apriorni informace o P %y0, y_range...pocatecni stav systemu if nargin == 0 horizont=10; num_of_candidates=7; generate_candidates_mode=1; search_region_init=1; gama=0.9; lambda=0.5; n_grid=10; n_pass=4; n_iter=8; n0=20; delta=0.01; alfa=0.05; b=0.5; sigma=0.1; yr(1:horizont+1)=0; %pozadovane rizeni yr(1) nema smysl, je tam proto, aby yr(i) odpovidalo pozadovanemu vystupu na H(i) y0=1; y0_range=sigma; P0=10; b0=1; end regulator_parameters.horizont=horizont; regulator_parameters.num_of_candidates=num_of_candidates; regulator_parameters.generate_candidates_mode=generate_candidates_mode; regulator_parameters.search_region_init= search_region_init; regulator_parameters.gama= gama; regulator_parameters.lambda=lambda; regulator_parameters.n_grid=n_grid; regulator_parameters.n_pass=n_pass; regulator_parameters.n_iter=n_iter; rsss_parameters.n0=n0; rsss_parameters.delta=delta; rsss_parameters.alfa=alfa; system.dim=3; system.b=b; system.sigma=sigma; system.yr=yr; apriori.y0=y0; apriori.y0_range=y0_range; apriori.b0=b0; apriori.P0=P0; end