# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.optimization.multivariate.constrained.integer.bruteforce

## Class BruteForceIPProblem.IntegerDomain

• java.lang.Object
• com.numericalmethod.suanshu.optimization.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.
• ### Field Summary

Fields
Modifier and Type Field and Description
int[] domain
the integer values the variable can take
int index
the index of an integral variable
• ### Constructor Summary

Constructors
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.

• ### Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
• ### Field Detail

• #### index

public final int index
the index of an integral variable
• #### domain

public final int[] domain
the integer values the variable can take
• ### Constructor Detail

• #### IntegerDomain

public IntegerDomain(int index,
int[] domain)
Construct the integral domain for an integral variable.
Parameters:
index - the index of an integral variable
domain - 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 variable
lower - the lower bound of the integral domain
upper - 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 variable
lower - the lower bound of the integral domain
upper - the upperbound of the integral domain
inc - the increment