Hello everybody,
I try to simulate my system with a CSTR and a Lumped Rate Model without pores.
I’m working with Cadet 4.0.1 on a Windows Machine.
When I’m running the code presented below I get the following error message:
Error using MexSimulator/setParameters (line 738)
Expected valid parameters, but parameter 1 is invalid or does not exist.
Error in System_Simulation>Parameter_fitting (line 46)
sim.setParameters(params, true(2, 1));
Is this a common Error within this Cadet version, when using Version 3.1.2, this version does not occur.
My code:
Load CSTR-DPFR model:
sim = createSimulation(t,V_CSTR,Q);
Set model parameters and enable sensitivities:
params = cell(2, 1);
Two parameters are fitted. Column length and dispersion!
params{1} = makeSensitivity([2], {'COL_LENGTH'}, [0], [-1], [-1], [-1], [-1]);
params{2} = makeSensitivity([2], {'COL_DISPERSION'}, [0], [-1], [-1], [-1], [-1]);
The first argument in the ‘makeSensitivity’ function is referring to the Unit operation index, which is the Lumped Rate model without pores.
Set Parameters
sim.setParameters(params, true(2, 1));
Thank you in advance!