Convex.is_consistent#

Convex.is_consistent(asset)[source]

Check if the asset belongs to the interval [lower_bound, upper_bound].

Parameters:

asset (NumericAsset) – The asset to check.

Returns:

True if the asset is within the interval, False otherwise.

Return type:

bool