Li-ion battery calibration – Not able to disable parallel computing
Hi, I am trying to run the calibration process described in the following example provided by matlab:
https://www.mathworks.com/help/autoblks/ref/battery.pulsesequence.estimateparameters.html
It is a script to estimate battery parameters based on "psObj — Instance of Battery.PulseSequence" class.
I have all the toolbox required to run the simulation. However, I do not have the parallel computing toolbox. So in the code I have changed the optimization parameters to take this in consideration:
SDOOptimizeOptions = sdo.OptimizeOptions(…
‘OptimizedModel’,psObj.ModelName,…
‘Method’,’lsqnonlin’,…
‘UseParallel’,false);
SDOOptimizeOptions.MethodOptions.Display = ‘final’;
psObj.estimateParameters(…
‘CarryParamToNextPulse’,true,… %Set this true to use the final parameter values from the prior pulse and SOC as initial values for the next pulse and SOC
‘SDOOptimizeOptions’,SDOOptimizeOptions,… %Specify the SDO options object
‘ShowPlots’,true,… %Set this true if you want to see plots while this runs
‘EstimateEm’,true,… %Set this true to allow the optimizer to change Em further in this step
‘RetainEm’,true,… %Set this true keep any changes made to Em in this step
‘EstimateR0’,true,… %Set this true to allow the optimizer to change R0 further in this step
‘RetainR0’,true); %Set this true keep any changes made to R0 in this step
I set "UseParallel" to false.
But I get an error message when running line:
psObj.estimateParameters(…
The error message is:
gcp requires Parallel Computing Toolbox.
Error in Battery.DistributedParameterManager/distributeParameters
Error in Battery.PulseSequence/estimateParameters
What I am I doing wrong here?
Matlab version 24.2.0.2806996 (R2024b) Update 3, just installed is.
Thank youHi, I am trying to run the calibration process described in the following example provided by matlab:
https://www.mathworks.com/help/autoblks/ref/battery.pulsesequence.estimateparameters.html
It is a script to estimate battery parameters based on "psObj — Instance of Battery.PulseSequence" class.
I have all the toolbox required to run the simulation. However, I do not have the parallel computing toolbox. So in the code I have changed the optimization parameters to take this in consideration:
SDOOptimizeOptions = sdo.OptimizeOptions(…
‘OptimizedModel’,psObj.ModelName,…
‘Method’,’lsqnonlin’,…
‘UseParallel’,false);
SDOOptimizeOptions.MethodOptions.Display = ‘final’;
psObj.estimateParameters(…
‘CarryParamToNextPulse’,true,… %Set this true to use the final parameter values from the prior pulse and SOC as initial values for the next pulse and SOC
‘SDOOptimizeOptions’,SDOOptimizeOptions,… %Specify the SDO options object
‘ShowPlots’,true,… %Set this true if you want to see plots while this runs
‘EstimateEm’,true,… %Set this true to allow the optimizer to change Em further in this step
‘RetainEm’,true,… %Set this true keep any changes made to Em in this step
‘EstimateR0’,true,… %Set this true to allow the optimizer to change R0 further in this step
‘RetainR0’,true); %Set this true keep any changes made to R0 in this step
I set "UseParallel" to false.
But I get an error message when running line:
psObj.estimateParameters(…
The error message is:
gcp requires Parallel Computing Toolbox.
Error in Battery.DistributedParameterManager/distributeParameters
Error in Battery.PulseSequence/estimateParameters
What I am I doing wrong here?
Matlab version 24.2.0.2806996 (R2024b) Update 3, just installed is.
Thank you Hi, I am trying to run the calibration process described in the following example provided by matlab:
https://www.mathworks.com/help/autoblks/ref/battery.pulsesequence.estimateparameters.html
It is a script to estimate battery parameters based on "psObj — Instance of Battery.PulseSequence" class.
I have all the toolbox required to run the simulation. However, I do not have the parallel computing toolbox. So in the code I have changed the optimization parameters to take this in consideration:
SDOOptimizeOptions = sdo.OptimizeOptions(…
‘OptimizedModel’,psObj.ModelName,…
‘Method’,’lsqnonlin’,…
‘UseParallel’,false);
SDOOptimizeOptions.MethodOptions.Display = ‘final’;
psObj.estimateParameters(…
‘CarryParamToNextPulse’,true,… %Set this true to use the final parameter values from the prior pulse and SOC as initial values for the next pulse and SOC
‘SDOOptimizeOptions’,SDOOptimizeOptions,… %Specify the SDO options object
‘ShowPlots’,true,… %Set this true if you want to see plots while this runs
‘EstimateEm’,true,… %Set this true to allow the optimizer to change Em further in this step
‘RetainEm’,true,… %Set this true keep any changes made to Em in this step
‘EstimateR0’,true,… %Set this true to allow the optimizer to change R0 further in this step
‘RetainR0’,true); %Set this true keep any changes made to R0 in this step
I set "UseParallel" to false.
But I get an error message when running line:
psObj.estimateParameters(…
The error message is:
gcp requires Parallel Computing Toolbox.
Error in Battery.DistributedParameterManager/distributeParameters
Error in Battery.PulseSequence/estimateParameters
What I am I doing wrong here?
Matlab version 24.2.0.2806996 (R2024b) Update 3, just installed is.
Thank you sdooptimizeoptions parallel computing management MATLAB Answers — New Questions