Compare two MPC objects


yesno = compare(MPC1,MPC2)


The compare function compares the contents of two MPC objects MPC1, MPC2. If the design specifications (models, weights, horizons, etc.) are identical, then yesno is equal to 1.

    Note   compare may return yesno = 1 even if the two objects are not identical. For instance, MPC1 may have been initialized while MPC2 may have not, so that they may have different sizes in memory. In any case, if yesno = 1, the behavior of the two controllers will be identical.

See Also

Introduced before R2006a

Was this topic helpful?