Main Content

updateBreakpoints

Class: mbcrunner

Update lookup table breakpoints in CAGE project

Since R2024b

Description

updateBreakpoints(obj,tableName,newBreakpoints,updateOptimGrids) updates the lookup table breakpoints specified by newBreakpoints for shared normalizers specified by tableName. Breakpoints are not updated if newBreakpoints is empty.

example

Input Arguments

expand all

Handle to the CAGE project, specified as an mbcrunner object.

Table name, specified as a string scalar.

Data Types: string

Breakpoints, specified as a cell array with one element per dimension {Ybreakpoints, Xbreakpoitns}. The size of the breakpoints cannot be changed.

Data Types: cell

Option to update initial optimization data, specified as true or false. Initial optimization data defined over the existing table grid is updated when updateOptimGrids is set to true.

Data Types: logical

Examples

expand all

Update the Id_table lookup table breakpoints with {500:500:8000,[1 4:4:100]}.

r = mbcrunner(fullfile(matlabroot, 'toolbox', 'mbc', 'mbctraining', 'pmsmSpeedTorque.cag'));
breakpoints = {500:500:8000,[1 4:4:100]};
updateBreakpoints(r, 'Id_Table', breakpoints, true);

Version History

Introduced in R2024b