OptimizationPass.NetProfit
property · OptimizationPass · cAlgo.API Since 5.9
DesktopCLICloud
Gets the net profit of the pass.
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
double NetProfit {get;}
optimizationPass.NetProfit: float
Returns double
Examples
Optimization.PassCompleted += args => Print("Pass {0} net profit: {1}", args.Pass.Id, args.Pass.NetProfit);
api.Optimization.PassCompleted += lambda args: api.Print(f"Pass {args.Pass.Id} net profit: {args.Pass.NetProfit}")