root/applications/dual/SIDP/Kopie (2) - finalni implementace/nastav.m @ 1126

Revision 1113, 2.0 kB (checked in by zimamiro, 14 years ago)
Line 
1function [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)
2%OK
3%nastaveni
4%sidp
5%horizont...ridici horizont
6%num_of_candidates...pocet kandidatu na zmenu u
7%search_region_init...pocatecni rozsah pro zmenu prozatimniho optimalniho u
8%gama, lambda...parametri pro redukci search_region_init
9%n_grid...pocet bodu v diskretizaci kazdeho rozmeru hyperstavu
10%n_pass...pocet nezavislych pruchodu
11%n_iter...pocet opakovani v kazdem pruchodu
12%n0, delta, alfa...parametry RSSS (implementovana ve funkci
13%compare_candidaes)
14%system
15%dim...dimenze hyperstavu ulohy
16%b,sigma...parametr systemu
17%apriori
18%b0, b_range...apriorni informace o b
19%P0, P_range...apriorni informace o P
20%y0, y_range...pocatecni stav systemu
21if nargin == 0
22    horizont=10;
23    num_of_candidates=7;
24    generate_candidates_mode=1;
25    search_region_init=1;
26    gama=0.9;
27    lambda=0.5;
28    n_grid=10;
29    n_pass=4;
30    n_iter=8;
31   
32    n0=20;
33    delta=0.01;
34    alfa=0.05;
35
36    b=0.5;
37    sigma=0.1;
38    yr(1:horizont+1)=0;   %pozadovane rizeni yr(1) nema smysl, je tam proto, aby yr(i) odpovidalo pozadovanemu vystupu na H(i)
39
40    y0=1;
41    y0_range=sigma;
42    P0=10;
43    b0=1; 
44end
45   
46regulator_parameters.horizont=horizont;
47regulator_parameters.num_of_candidates=num_of_candidates;
48regulator_parameters.generate_candidates_mode=generate_candidates_mode;
49regulator_parameters.search_region_init= search_region_init;
50regulator_parameters.gama= gama;
51regulator_parameters.lambda=lambda;
52regulator_parameters.n_grid=n_grid;
53regulator_parameters.n_pass=n_pass;
54regulator_parameters.n_iter=n_iter;
55
56rsss_parameters.n0=n0;
57rsss_parameters.delta=delta;
58rsss_parameters.alfa=alfa;
59
60system.dim=3;
61system.b=b;
62system.sigma=sigma;
63system.yr=yr;
64
65apriori.y0=y0;
66apriori.y0_range=y0_range;
67apriori.b0=b0;
68apriori.P0=P0;
69end
Note: See TracBrowser for help on using the browser.