rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
thermalblock_optimization.m
Go to the documentation of this file.
1 function res = thermalblock_optimization(step)
2 % Script performing different steps of optimization project
3 
4 res = [];
5 
6 if nargin < 1
7  step = 1
8 end;
9 
10 switch step
11  case 1 % standard thermalblock and basic simulation steps
12 
13  params.B1 = 3;
14  params.B2 = 3;
15  model = thermalblock_model(params);
16  model_data = gen_model_data(model);
17  sim_data = detailed_simulation(model,model_data);
18  plot_params.title = 'test-titel';
19  plot_sim_data(model,model_data,sim_data,plot_params);
20 
21  model = model.set_mu(model,[0.1,1,1,1,0.1,1,1,1,0.1])
22  sim_data = detailed_simulation(model,model_data);
23  plot_params.title = 'test-titel';
24  plot_sim_data(model,model_data,sim_data,plot_params);
25 
26  keyboard;
27 
28  case 2
29 
30 
31 
32  otherwise
33  error('step unknown');
34 end;
35 
36