Companion

Functions

Link copied to clipboard
fun create(problemDefinition: ProblemDefinition, modelBuilder: ModelBuilderIfc, members: List<SolverMemberTask>, concurrentOptions: ConcurrentRunOptions = ConcurrentRunOptions(), solutionCache: SolutionCacheIfc = MemorySolutionCache(), simulationRunCache: SimulationRunCacheIfc? = null, experimentRunParameters: ExperimentRunParametersIfc? = null, replicationsPerEvaluation: Int = Solver.defaultReplicationsPerEvaluation, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = RNStreamProvider(), name: String? = null): SolverPortfolio

Creates a portfolio with the standard resource wiring: the portfolio's own evaluator is a sequential problem evaluator built from the model builder, and member resources come from a pooled member-evaluator factory over the same builder (models pooled at the worker count, per-member stream blocks, private per-member caches).