All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.optaplanner.OptaPlannerRecorder Maven / Gradle / Ivy

Go to download

Constraint solving AI for employee rostering, vehicle routing, maintenance scheduling, school timetabling, etc

There is a newer version: 1.5.2.Final
Show newest version
package io.quarkus.optaplanner;

import java.util.function.Supplier;

import org.optaplanner.core.config.solver.SolverConfig;
import org.optaplanner.core.config.solver.SolverManagerConfig;

import io.quarkus.runtime.annotations.Recorder;

@Recorder
public class OptaPlannerRecorder {

    public Supplier solverConfigSupplier(final SolverConfig solverConfig) {
        return new Supplier() {
            @Override
            public SolverConfig get() {
                return solverConfig;
            }
        };
    }

    public Supplier solverManagerConfig(final SolverManagerConfig solverManagerConfig) {
        return new Supplier() {
            @Override
            public SolverManagerConfig get() {
                return solverManagerConfig;
            }
        };
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy