setTrackingError
Set up maximum portfolio tracking error constraint
Description
sets up a maximum portfolio tracking error constraint for a
obj
= setTrackingError(obj
,TrackingError
)Portfolio
object. For details on the workflow when using a
Portfolio object, see Portfolio Object Workflow.
sets up a maximum portfolio tracking error constraint using optional arguments for
obj
= setTrackingError(___,TrackingPort
,NumAssets
)TrackingPort
and NumAssets
.
Examples
Input Arguments
Output Arguments
Tips
You can also use dot notation to set up a maximum portfolio tracking error constraint.
obj = obj.setTrackingError(TrackingError, NumAssets);
To remove a tracking portfolio, call this function with an empty argument
([]
) for
TrackingError
.
obj = setTrackingError(obj, [ ]);
Version History
Introduced in R2015b