OptimizationTimeSpanParameter.Max
property · OptimizationTimeSpanParameter · cAlgo.API Since 5.9
DesktopCLICloud
Gets the inclusive maximum of the range.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public TimeSpan Max {get;}
optimizationTimeSpanParameter.Max: TimeSpan
Returns TimeSpan
Examples
var parameter = new OptimizationTimeSpanParameter("MaxHoldTime", TimeSpan.FromHours(1), TimeSpan.FromHours(8), TimeSpan.FromHours(1));
Print("Range maximum: {0}", parameter.Max);
from System import TimeSpan
parameter = OptimizationTimeSpanParameter("MaxHoldTime", TimeSpan.FromHours(1), TimeSpan.FromHours(8), TimeSpan.FromHours(1))
api.Print(f"Range maximum: {parameter.Max}")