Revision 1249, 0.5 kB
(checked in by zimamiro, 14 years ago)
|
|
Line | |
---|
1 | function [H_tilde,C]=init_hyperstate(regulator_parameters, apriori) |
---|
2 | n_grid=regulator_parameters.n_grid; |
---|
3 | H_tilde=zeros(regulator_parameters.dim,n_grid); |
---|
4 | rozsah=apriori.Hmax-apriori.Hmin; |
---|
5 | a=0; |
---|
6 | for i=1:size(regulator_parameters.H_tilde_on,1) |
---|
7 | for j=1:size(regulator_parameters.H_tilde_on,2) |
---|
8 | if (regulator_parameters.H_tilde_on(i,j)) |
---|
9 | a=a+1; |
---|
10 | H_tilde(a,:)=ones(1,n_grid)*apriori.Hmin(i,j)+(0:n_grid-1)*rozsah(i,j)/(n_grid-1); |
---|
11 | end |
---|
12 | end |
---|
13 | end |
---|
14 | C=zeros(1,n_grid^size(H_tilde,1)); |
---|
15 | end |
---|
16 | |
---|