rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
lin_evol_get_output_detailed.m
Go to the documentation of this file.
1 function y = lin_evol_get_output_detailed(model, varargin)
2 %lin_evol_get_output_detailed(model, varargin)
3 %
4 %Function returns the output which should be optimized.
5 %It performs a detailed/reduced simulation (considering varagin = reduced_data or detailed_data) for the mu set in model and returns the
6 %output (the average concentration in the lower right quadrant).
7 %
8 %
9 % Markus Dihlmann 04.02.2010
10 
11 
12 if strcmp(inputname(2),'model_data')
13  model_data = varargin{1};
14  %perform detailed simulation with actual parameter set
15  sim_data = model.detailed_simulation(model,model_data);
16 
17  y = sim_data.y(size(sim_data.y));
18  y=y(2);
19  if(model.verbose>=8)
20  disp('detailed simulation output result:')
21  y
22  end
23 
24 elseif strcmp(inputname(2), 'reduced_data')
25  reduced_data = varargin{1};
26  %perform reduced simulation
27  sim_data =rb_simulation(model, reduced_data);
28  y=sim_data.s(end);
29  if(model.verbose>=8)
30  disp('reduced simulation output result:')
31  y
32  end
33 
34 end
function y = lin_evol_get_output_detailed(model, varargin)
lin_evol_get_output_detailed(model, varargin)