Data2Dynamics / d2d

a modeling environment tailored to parameter estimation in dynamical systems
https://github.com/Data2Dynamics/d2d
57 stars 28 forks source link

Problem when executing arMergeFits in an "empty" model #137

Closed elbaraim closed 4 years ago

elbaraim commented 5 years ago

If I load a model in which I never did a multi-start optimization, the ar.ps struct does not exist (same for ar.chi2s). Then if I call arMergeFits it checks for existence of ar.ps in the "empty" model, which does not exist. And I am not able to load the results from already existing multi-starts.

clear all
close all
clc

load('model_name.mat','ar'); % this is the "empty" model
arMergeFits;

% some plotting

Is there a way I can circumvent this problem?

adrianhauber commented 4 years ago

Hi Elba,

sorry for the late respose… This should be fixed with the commit 222ce99e8aee1200306e6ec0682b5b2e9146b107.

Best Adrian