public static class BruteForceIPProblem.IntegerDomain extends Object
Modifier and Type | Field and Description |
---|---|
int[] |
domain
the integer values the variable can take
|
int |
index
the index of an integral variable
|
Constructor and 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.
|
public final int index
public final int[] domain
public IntegerDomain(int index, int[] domain)
index
- the index of an integral variabledomain
- the integer values the variable can takepublic IntegerDomain(int index, int lower, int upper)
index
- the index of an integral variablelower
- the lower bound of the integral domainupper
- the upperbound of the integral domainpublic IntegerDomain(int index, int lower, int upper, int inc)
index
- the index of an integral variablelower
- the lower bound of the integral domainupper
- the upperbound of the integral domaininc
- the incrementCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.