1 function [x]=get_mu_to_optimize(model)
2 %
function [x]=get_mu_to_optimize(model)
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
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
13 % x: vector including all the paramteres from the model, that should be
16 % Oliver Zeeb 08.06.2010
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})];
function [ opt_data , model ] = optimize(model, model_data, detailed_data, reduced_data)
opt_data = optimize(model, model_data, detailed_data, reduced_data)