Class LinearSolver<CONSTANTS extends IConstants,SOLUTION extends ISolution,MODEL extends LinearModel<CONSTANTS>>
java.lang.Object
org.optsol.jmip.core.solver.Solver<CONSTANTS,com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable,MODEL,SOLUTION>
org.optsol.jmip.linearsolver.solver.LinearSolver<CONSTANTS,SOLUTION,MODEL>
- All Implemented Interfaces:
ISolver<CONSTANTS,SOLUTION>
public final class LinearSolver<CONSTANTS extends IConstants,SOLUTION extends ISolution,MODEL extends LinearModel<CONSTANTS>>
extends Solver<CONSTANTS,com.google.ortools.linearsolver.MPSolver,com.google.ortools.linearsolver.MPVariable,MODEL,SOLUTION>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLinearSolver.LinearSolverBuilder<CONSTANTS extends IConstants,SOLUTION extends ISolution, MODEL extends LinearModel<CONSTANTS>> -
Constructor Summary
ConstructorsConstructorDescriptionLinearSolver(Class<MODEL> modelClass, Class<SOLUTION> solutionInterface, com.google.ortools.linearsolver.MPSolver.OptimizationProblemType solverEngineType, Duration timeLimit, boolean enableOutput, boolean suppressOutput, String solverSpecificParameters, com.google.ortools.linearsolver.MPSolverParameters solverParameters, Double dualTolerance, Double primalTolerance, Double relativeMipGap, com.google.ortools.linearsolver.MPSolverParameters.IncrementalityValues incrementality, com.google.ortools.linearsolver.MPSolverParameters.LpAlgorithmValues lpAlgorithm, com.google.ortools.linearsolver.MPSolverParameters.PresolveValues presolve, com.google.ortools.linearsolver.MPSolverParameters.ScalingValues scaling) LinearSolver(Class<MODEL> modelClass, ISolutionExtractor<SOLUTION, MODEL> solutionExtractor, com.google.ortools.linearsolver.MPSolver.OptimizationProblemType solverEngineType, Duration timeLimit, boolean enableOutput, boolean suppressOutput, String solverSpecificParameters, com.google.ortools.linearsolver.MPSolverParameters solverParameters, Double dualTolerance, Double primalTolerance, Double relativeMipGap, com.google.ortools.linearsolver.MPSolverParameters.IncrementalityValues incrementality, com.google.ortools.linearsolver.MPSolverParameters.LpAlgorithmValues lpAlgorithm, com.google.ortools.linearsolver.MPSolverParameters.PresolveValues presolve, com.google.ortools.linearsolver.MPSolverParameters.ScalingValues scaling) -
Method Summary
Modifier and TypeMethodDescriptionstatic <CONSTANTS extends IConstants,SOLUTION extends ISolution, MODEL extends LinearModel<CONSTANTS>>
LinearSolver.LinearSolverBuilder<CONSTANTS, SOLUTION, MODEL> static <CONSTANTS extends IConstants,SOLUTION extends ISolution, MODEL extends LinearModel<CONSTANTS>>
LinearSolver.LinearSolverBuilder<CONSTANTS, SOLUTION, MODEL> builder(Class<MODEL> modelClass, ISolutionExtractor<SOLUTION, MODEL> solutionExtractor) protected com.google.ortools.linearsolver.MPSolverprotected voidMethods inherited from class org.optsol.jmip.core.solver.Solver
generateSolution, modelManipulation
-
Constructor Details
-
LinearSolver
public LinearSolver(Class<MODEL> modelClass, ISolutionExtractor<SOLUTION, MODEL> solutionExtractor, com.google.ortools.linearsolver.MPSolver.OptimizationProblemType solverEngineType, Duration timeLimit, boolean enableOutput, boolean suppressOutput, String solverSpecificParameters, com.google.ortools.linearsolver.MPSolverParameters solverParameters, Double dualTolerance, Double primalTolerance, Double relativeMipGap, com.google.ortools.linearsolver.MPSolverParameters.IncrementalityValues incrementality, com.google.ortools.linearsolver.MPSolverParameters.LpAlgorithmValues lpAlgorithm, com.google.ortools.linearsolver.MPSolverParameters.PresolveValues presolve, com.google.ortools.linearsolver.MPSolverParameters.ScalingValues scaling) -
LinearSolver
public LinearSolver(Class<MODEL> modelClass, Class<SOLUTION> solutionInterface, com.google.ortools.linearsolver.MPSolver.OptimizationProblemType solverEngineType, Duration timeLimit, boolean enableOutput, boolean suppressOutput, String solverSpecificParameters, com.google.ortools.linearsolver.MPSolverParameters solverParameters, Double dualTolerance, Double primalTolerance, Double relativeMipGap, com.google.ortools.linearsolver.MPSolverParameters.IncrementalityValues incrementality, com.google.ortools.linearsolver.MPSolverParameters.LpAlgorithmValues lpAlgorithm, com.google.ortools.linearsolver.MPSolverParameters.PresolveValues presolve, com.google.ortools.linearsolver.MPSolverParameters.ScalingValues scaling)
-
-
Method Details
-
builder
public static <CONSTANTS extends IConstants,SOLUTION extends ISolution, LinearSolver.LinearSolverBuilder<CONSTANTS,MODEL extends LinearModel<CONSTANTS>> SOLUTION, builderMODEL> (Class<MODEL> modelClass, ISolutionExtractor<SOLUTION, MODEL> solutionExtractor) -
builder
public static <CONSTANTS extends IConstants,SOLUTION extends ISolution, LinearSolver.LinearSolverBuilder<CONSTANTS,MODEL extends LinearModel<CONSTANTS>> SOLUTION, builderMODEL> (Class<MODEL> modelClass, Class<SOLUTION> solutionInterface) -
generateSolverEngine
protected com.google.ortools.linearsolver.MPSolver generateSolverEngine()- Specified by:
generateSolverEnginein classSolver<CONSTANTS extends IConstants,com.google.ortools.linearsolver.MPSolver, com.google.ortools.linearsolver.MPVariable, MODEL extends LinearModel<CONSTANTS>, SOLUTION extends ISolution>
-
solve
- Specified by:
solvein classSolver<CONSTANTS extends IConstants,com.google.ortools.linearsolver.MPSolver, com.google.ortools.linearsolver.MPVariable, MODEL extends LinearModel<CONSTANTS>, SOLUTION extends ISolution>
-