IRIS-Solutions-Team / IRIS-Toolbox

[IrisToolbox] for Macroeconomic Modeling
Other
92 stars 42 forks source link

neighbourhood function gives errors in very specific situations #370

Open pfjulio opened 1 year ago

pfjulio commented 1 year ago

Hi,

The neighbourhood function, in rare occasions, yields the following error:

n = neighbourhood(mest,Poster,0.95:0.005:1.05, ... 'progress',true,'plot',false);

[IrisToolbox]k @Model/neighborhood Progress ◼――――――――――――――――――――――――――――――――――――――― 1% Error using startsWith First argument must be text.

Error in model/update (line 108) if startsWith(update.NoSolution, "error", "ignoreCase", true)

Error in model/objfunc (line 51) [this, UpdateOk] = update(this, x, variantRequested);

Error in poster/mylogpost (line 36) this.MinusLogPostFunc(P, this.MinusLogPostFuncArgs{:});

Error in poster/eval (line 101) [obj(i), L(i), PP(i), SP(i)] = mylogpost(this, theta);

Error in iris.mixin.Estimation/neighbourhood (line 144) [x{2}(:, 1), x{2}(:, 2), x{2}(:, 3)] = eval(pos, pp{:}); %#ok

Usually, when this happens, tightening the interval solves the problem, but this solution is just a get around.