public static enum KnapsackSolver.SolverType extends java.lang.Enum<KnapsackSolver.SolverType>
| Enum Constant and Description |
|---|
KNAPSACK_64ITEMS_SOLVER
Optimized method for single dimension small problems
Limited to 64 items and one dimension, this solver uses a branch & bound algorithm. |
KNAPSACK_BRUTE_FORCE_SOLVER
Brute force method.
Limited to 30 items and one dimension, this solver uses a brute force algorithm, ie. |
KNAPSACK_DIVIDE_AND_CONQUER_SOLVER
Divide and Conquer approach for single dimension problems
Limited to one dimension, this solver is based on a divide and conquer technique and is suitable for larger problems than Dynamic Programming Solver. |
KNAPSACK_DYNAMIC_PROGRAMMING_SOLVER
Dynamic Programming approach for single dimension problems
Limited to one dimension, this solver is based on a dynamic programming algorithm. |
KNAPSACK_MULTIDIMENSION_BRANCH_AND_BOUND_SOLVER
Generic Solver.
This solver can deal with both large number of items and several dimensions. |
KNAPSACK_MULTIDIMENSION_CBC_MIP_SOLVER
CBC Based Solver
This solver can deal with both large number of items and several dimensions. |
KNAPSACK_MULTIDIMENSION_CP_SAT_SOLVER
CP-SAT based solver
This solver can deal with both large number of items and several dimensions. |
KNAPSACK_MULTIDIMENSION_SCIP_MIP_SOLVER
SCIP based solver
This solver can deal with both large number of items and several dimensions. |
| Modifier and Type | Method and Description |
|---|---|
static KnapsackSolver.SolverType |
swigToEnum(int swigValue) |
int |
swigValue() |
static KnapsackSolver.SolverType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KnapsackSolver.SolverType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KnapsackSolver.SolverType KNAPSACK_BRUTE_FORCE_SOLVER
public static final KnapsackSolver.SolverType KNAPSACK_64ITEMS_SOLVER
public static final KnapsackSolver.SolverType KNAPSACK_DYNAMIC_PROGRAMMING_SOLVER
public static final KnapsackSolver.SolverType KNAPSACK_MULTIDIMENSION_CBC_MIP_SOLVER
public static final KnapsackSolver.SolverType KNAPSACK_MULTIDIMENSION_BRANCH_AND_BOUND_SOLVER
public static final KnapsackSolver.SolverType KNAPSACK_MULTIDIMENSION_SCIP_MIP_SOLVER
public static final KnapsackSolver.SolverType KNAPSACK_DIVIDE_AND_CONQUER_SOLVER
public static final KnapsackSolver.SolverType KNAPSACK_MULTIDIMENSION_CP_SAT_SOLVER
public static KnapsackSolver.SolverType[] values()
for (KnapsackSolver.SolverType c : KnapsackSolver.SolverType.values()) System.out.println(c);
public static KnapsackSolver.SolverType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int swigValue()
public static KnapsackSolver.SolverType swigToEnum(int swigValue)
Copyright © 2024. All rights reserved.