Package-level declarations

Types

Link copied to clipboard
fun interface EvictionRuleIfc
Link copied to clipboard

A memory-based cache to hold simulation runs. A simplified cache to avoid including more advanced caches in the dependency tree. This cache holds simulation runs in a map based on (RequestData, SimulationRun) pairs. The cache capacity is constrained to the specified capacity. The user can supply an eviction rule that will identify a simulation run to evict when the capacity is reached. If no eviction rule is supplied, then by default, the algorithm removes the oldest simulation run.

Link copied to clipboard
class MemorySolutionCache(val capacity: Int = defaultCacheSize, var allowInfeasibleSolutions: Boolean = false) : SolutionCacheIfc

A memory-based cache to hold solutions. A simplified cache to avoid including more advanced caches in the dependency tree. This cache holds solutions in a map based on (RequestData, Solution) pairs. The cache is capacity constrained to the specified capacity. The user can supply an eviction rule that will identify a solution to evict when the capacity is reached. If no eviction rule is supplied, then by default the algorithm removes the first solution that is deterministically infeasible, infinite, or undefined in some manner. Then, it will identify the oldest solution with the largest penalized objective function for removal.

Link copied to clipboard

A simulation run cache should be designed to efficiently look up a simulation run based on a given set of input settings.

Link copied to clipboard
Link copied to clipboard

A solution cache should be designed to efficiently look up a solution based on a given set of input settings.