rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
get_mu_to_optimize.m
1 function [x]=get_mu_to_optimize(model)
2 %function [x]=get_mu_to_optimize(model)
3 %
4 %Function that gives a vector x with all the parameters to optimize
5 %i.e. all the parameters with a "1" in model.optimization.params_to_optimize
6 %
7 %Required fields of model:
8 % model.mu_names: field with all the names of the parameters
9 % model.optimization.params_to_optimize: vector with 0 if the parameter
10 % should not be optimize and 1 if the parameter should optimized
11 %
12 %Output
13 % x: vector including all the paramteres from the model, that should be
14 % optimized
15 %
16 % Oliver Zeeb 08.06.2010
17 
18 
19 x=[];
20 for k=1:length(model.mu_names)
21  if model.optimization.params_to_optimize(k) == 1
22  x = [x, model.(model.mu_names{k})];
23  end
24 end
function [ opt_data , model ] = optimize(model, model_data, detailed_data, reduced_data)
opt_data = optimize(model, model_data, detailed_data, reduced_data)
Definition: optimize.m:17