Hi
Does anyone experience this error when using matlab parest example?
[Error: idasErrorHandler::196] In function ‘IDASolve’ of module ‘IDAS’, error code ‘IDA_CONV_FAIL’:
At t = 6 and h = 9.53674e-13, the corrector convergence failed repeatedly or with |h| = hmin.
Adjust relTol and absTol didn’t help. Any suggestions? Thanks!
params = cell(6, 1);
params{1}=makeSensitivity(0, {'MCL_KA'}, 0, -1, -1, 0, -1);
params{2}=makeSensitivity(0, {'MCL_KD'}, 0, -1, -1, 0, -1);
params{3}=makeSensitivity(0, {'MCL_QMAX'}, 0, -1, -1, 0, -1);
params{4}=makeSensitivity(0, {'MCL_KA'}, 1, -1, -1, 0, -1);
params{5}=makeSensitivity(0, {'MCL_KD'}, 1, -1, -1, 0, -1);
params{6}=makeSensitivity(0, {'MCL_QMAX'}, 1, -1, -1, 0, -1);
sim.setParameters(params, true(6, 1));
idxComp = cell(1, 1);
idxComp{1} = [1, 1];
pf.addExperiment(data, sim, [0], idxComp, [], [], [], [], 'Composition Profiles', {'Total Protein'});
initParams = [70, 1,3.6, 5.0.01,5];
loBound = initParams.*0.1;
upBound = initParams.*10;
plotHd = [];
opts = optimset('TolFun', 1e-6, 'TolX', 1e-6, 'MaxIter', 100, 'Jacobian', 'on', 'Diagnostics', 'off', 'Display', 'iter', 'OutputFcn', @progressMonitor);
[optimalParams, optimalRes, ~, exitflag] = lsqnonlin(@residual, initParams, loBound, upBound, opts);
success = (exitflag > 0);
save('Set1-1.mat', 'optimalParams', 'optimalRes')