Class CostOptimization
java.lang.Object
software.amazon.smithy.rulesengine.logic.bdd.CostOptimization
- All Implemented Interfaces:
Function<EndpointBddTrait,EndpointBddTrait>
public final class CostOptimization
extends Object
implements Function<EndpointBddTrait,EndpointBddTrait>
A kind of sifting optimization that refines BDD ordering to minimize expected evaluation cost.
Uses greedy hill-climbing: for each hot variable (by reach probability × cost), probes strategic target positions and accepts the best improving move per round.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionapply(EndpointBddTrait trait) static CostOptimization.Builderbuilder()Creates a new builder.
-
Method Details
-
builder
Creates a new builder.- Returns:
- the builder
-
apply
- Specified by:
applyin interfaceFunction<EndpointBddTrait,EndpointBddTrait>
-