Class BruteForceIPProblem.IntegerDomain
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.integer.bruteforce.BruteForceIPProblem.IntegerDomain
-
- Enclosing class:
- BruteForceIPProblem
public static class BruteForceIPProblem.IntegerDomain extends Object
This specifies the integral domain for an integral variable, i.e., the integer values the variable can take.
-
-
Constructor Summary
Constructors Constructor Description IntegerDomain(int index, int[] domain)
Construct the integral domain for an integral variable.IntegerDomain(int index, int lower, int upper)
Construct the integral domain for an integral variable.IntegerDomain(int index, int lower, int upper, int inc)
Construct the integral domain for an integral variable.
-
-
-
Constructor Detail
-
IntegerDomain
public IntegerDomain(int index, int[] domain)
Construct the integral domain for an integral variable.- Parameters:
index
- the index of an integral variabledomain
- the integer values the variable can take
-
IntegerDomain
public IntegerDomain(int index, int lower, int upper)
Construct the integral domain for an integral variable.- Parameters:
index
- the index of an integral variablelower
- the lower bound of the integral domainupper
- the upperbound of the integral domain
-
IntegerDomain
public IntegerDomain(int index, int lower, int upper, int inc)
Construct the integral domain for an integral variable.- Parameters:
index
- the index of an integral variablelower
- the lower bound of the integral domainupper
- the upperbound of the integral domaininc
- the increment
-
-