ai.timefold.solver.benchmark.impl.SolverBenchmarkFactory.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timefold-solver-benchmark Show documentation
Show all versions of timefold-solver-benchmark Show documentation
Timefold solves planning problems.
This lightweight, embeddable planning engine implements powerful and scalable algorithms
to optimize business resource scheduling and planning.
This module contains the benchmarker toolkit.
???? ={
java/lang/Object ()V
8ai/timefold/solver/benchmark/impl/SolverBenchmarkFactory config ;Lai/timefold/solver/benchmark/config/SolverBenchmarkConfig;
validate >ai/timefold/solver/benchmark/impl/result/SolverBenchmarkResult
D(Lai/timefold/solver/benchmark/impl/result/PlannerBenchmarkResult;)V
9ai/timefold/solver/benchmark/config/SolverBenchmarkConfig getName ()Ljava/lang/String;
setName (Ljava/lang/String;)V
! " getSubSingleCount ()Ljava/lang/Integer;
$ % & ' ( java/lang/Integer valueOf (I)Ljava/lang/Integer;
* + , - . /ai/timefold/solver/core/config/util/ConfigUtils inheritOverwritableProperty 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
0 1 2 setSubSingleCount (Ljava/lang/Integer;)V
4 5 6 getSolverConfig 6()Lai/timefold/solver/core/config/solver/SolverConfig;
8 9 : ; < 2ai/timefold/solver/core/config/solver/SolverConfig getClassLoader ()Ljava/lang/ClassLoader;
8 > ? @ setClassLoader (Ljava/lang/ClassLoader;)V
8 B C D getMonitoringConfig E()Lai/timefold/solver/core/config/solver/monitoring/MonitoringConfig;
F G H I J Aai/timefold/solver/core/config/solver/monitoring/MonitoringConfig getSolverMetricList ()Ljava/util/List; L M N O P java/util/List isEmpty ()Z R "java/lang/IllegalArgumentException
T U V W java/lang/Class
getSimpleName Y Z [ makeConcatWithConstants ?(Lai/timefold/solver/benchmark/config/SolverBenchmarkConfig;Ljava/lang/String;Lai/timefold/solver/core/config/solver/SolverConfig;Ljava/lang/String;Lai/timefold/solver/core/config/solver/monitoring/MonitoringConfig;)Ljava/lang/String;
Q ]
_ ` a getProblemBenchmarksConfig ?()Lai/timefold/solver/benchmark/config/ProblemBenchmarksConfig;
c d e getSolverMetrics O(Lai/timefold/solver/benchmark/config/ProblemBenchmarksConfig;)Ljava/util/List;
8 g h 6
copyConfig
F
F k l m withSolverMetricList U(Ljava/util/List;)Lai/timefold/solver/core/config/solver/monitoring/MonitoringConfig;
8 o p q withMonitoringConfig y(Lai/timefold/solver/core/config/solver/monitoring/MonitoringConfig;)Lai/timefold/solver/core/config/solver/SolverConfig;
s t u setSolverConfig 7(Lai/timefold/solver/core/config/solver/SolverConfig;)V w 8ai/timefold/solver/core/impl/solver/DefaultSolverFactory
v y u
v { | } getSolutionDescriptor N()Lai/timefold/solver/core/impl/domain/solution/descriptor/SolutionDescriptor;
? ? ? ? Jai/timefold/solver/core/impl/domain/solution/descriptor/SolutionDescriptor getSolutionClass ()Ljava/lang/Class;
T ? ? ?
isInstance (Ljava/lang/Object;)Z
? ? ? getClass ? Z ? Z(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/String;
? ? ? getScoreDefinition A()Lai/timefold/solver/core/impl/score/definition/ScoreDefinition;
? ? ? setScoreDefinition B(Lai/timefold/solver/core/impl/score/definition/ScoreDefinition;)V ? java/util/ArrayList
?
? ? ? setSingleBenchmarkResultList (Ljava/util/List;)V ? ;ai/timefold/solver/benchmark/config/ProblemBenchmarksConfig
?
? ? ? ? J ?ai/timefold/solver/benchmark/impl/result/PlannerBenchmarkResult getSolverBenchmarkResultList L ? ? ? add ? :ai/timefold/solver/benchmark/impl/ProblemBenchmarksFactory
? ? ? @(Lai/timefold/solver/benchmark/config/ProblemBenchmarksConfig;)V
? ? ? ? buildProblemBenchmarkList V(Lai/timefold/solver/benchmark/impl/result/SolverBenchmarkResult;[Ljava/lang/Object;)V ? ? ? ? ? @ai/timefold/solver/benchmark/impl/DefaultPlannerBenchmarkFactory VALID_NAME_PATTERN Ljava/util/regex/Pattern;
? ? ? ? ? java/util/regex/Pattern matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
? ? ? ? P java/util/regex/Matcher matches ? java/lang/IllegalStateException
? ? ? pattern ? Z ? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
? ]
? ? ? ? java/lang/String trim
? ? ? ? equals ? Z ? &(Ljava/lang/String;)Ljava/lang/String;
$ ? ? ? intValue ()I ? Z ? 9(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/String;
? ? ? ? ? java/util/Optional
ofNullable ((Ljava/lang/Object;)Ljava/util/Optional; ? ? ? apply ()Ljava/util/function/Function;
? ? ? ? map 3(Ljava/util/function/Function;)Ljava/util/Optional; ? ? ? get ()Ljava/util/function/Supplier;
? ? ? ? orElseGet 1(Ljava/util/function/Supplier;)Ljava/lang/Object; L ? ? ? iterator ()Ljava/util/Iterator; ? ? ? ? P java/util/Iterator hasNext ? ? ? ? next ()Ljava/lang/Object; Bai/timefold/solver/benchmark/config/statistic/ProblemStatisticType SCORE_CALCULATION_SPEED DLai/timefold/solver/benchmark/config/statistic/ProblemStatisticType;
=ai/timefold/solver/core/config/solver/monitoring/SolverMetric SCORE_CALCULATION_COUNT ?Lai/timefold/solver/core/config/solver/monitoring/SolverMetric;
name
' S(Ljava/lang/String;)Lai/timefold/solver/core/config/solver/monitoring/SolverMetric; ? ? Aai/timefold/solver/benchmark/config/statistic/SingleStatisticType
>(Lai/timefold/solver/benchmark/config/SolverBenchmarkConfig;)V Code LineNumberTable LocalVariableTable this :Lai/timefold/solver/benchmark/impl/SolverBenchmarkFactory; buildSolverBenchmark n(Ljava/lang/ClassLoader;Lai/timefold/solver/benchmark/impl/result/PlannerBenchmarkResult;[Ljava/lang/Object;)V extraProblem Ljava/lang/Object; classLoader Ljava/lang/ClassLoader; plannerBenchmark ALai/timefold/solver/benchmark/impl/result/PlannerBenchmarkResult;
extraProblems [Ljava/lang/Object; solverBenchmarkResult @Lai/timefold/solver/benchmark/impl/result/SolverBenchmarkResult; solverMetricList Ljava/util/List; defaultSolverFactory :Lai/timefold/solver/core/impl/solver/DefaultSolverFactory; solutionDescriptor LLai/timefold/solver/core/impl/domain/solution/descriptor/SolutionDescriptor; problemBenchmarksConfig_ =Lai/timefold/solver/benchmark/config/ProblemBenchmarksConfig; problemBenchmarksFactory