function [regulator_parameters, rsss_parameters,system,apriori]=nastav
%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, alpha...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

    horizont=100;
    sigma=1;
    %+1? pozadovane rizeni yr=0

    horizont_tilda=10;
    n_iter=4;
    num_of_candidates=7;
    search_region_init=5;
    gama=0.2;
    n_grid=10;
    n_grid_max=30;
 
    y0=100;
    b0=0;  
    P0=10;
    Hc=2;
    
    n0=20;
    delta=(y0/2)^2;
    alpha=0.05;
    RSSS=1;

regulator_parameters.horizont=horizont_tilda;
regulator_parameters.n_iter=n_iter;
regulator_parameters.num_of_candidates=num_of_candidates;
regulator_parameters.search_region_init= search_region_init;
regulator_parameters.gama= gama;
regulator_parameters.n_grid=n_grid;
regulator_parameters.n_grid_max=n_grid_max;

rsss_parameters.n0=n0;
rsss_parameters.delta=delta;
rsss_parameters.alpha=alpha;
rsss_parameters.RSSS=RSSS;

system.horizont=horizont;
system.sigma=sigma;

apriori.y0=y0;
apriori.b0=b0;
apriori.P0=P0;
apriori.Hc=Hc;
end