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

The 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