Class BruteForceIPProblem
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.integer.IPProblemImpl1
-
- dev.nm.solver.multivariate.constrained.integer.bruteforce.BruteForceIPProblem
-
- All Implemented Interfaces:
IPProblem,ConstrainedOptimProblem,OptimProblem
public class BruteForceIPProblem extends IPProblemImpl1
This implementation is an integral constrained minimization problem that has enumerable integral domains. That is, the integral variables have known and bounded integral domains.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBruteForceIPProblem.IntegerDomainThis specifies the integral domain for an integral variable, i.e., the integer values the variable can take.
-
Constructor Summary
Constructors Constructor Description BruteForceIPProblem(RealScalarFunction f, EqualityConstraints equal, LessThanConstraints less, BruteForceIPProblem.IntegerDomain[] integers, double epsilon)Construct an integral constrained minimization problem with explicit integral domains.BruteForceIPProblem(RealScalarFunction f, BruteForceIPProblem.IntegerDomain[] integers, double epsilon)Construct an integral constrained minimization problem with explicit integral domains.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BruteForceIPProblem.IntegerDomaingetIntegralConstraint(int index)Get the integral domain of a particular integral variable.-
Methods inherited from class dev.nm.solver.multivariate.constrained.integer.IPProblemImpl1
dimension, epsilon, f, getEqualityConstraints, getFirstNonIntegralIndices, getIntegerIndices, getLessThanConstraints, getNonIntegralIndices
-
-
-
-
Constructor Detail
-
BruteForceIPProblem
public BruteForceIPProblem(RealScalarFunction f, EqualityConstraints equal, LessThanConstraints less, BruteForceIPProblem.IntegerDomain[] integers, double epsilon)
Construct an integral constrained minimization problem with explicit integral domains.- Parameters:
f- the objective function to be minimizedequal- the set of equality constraints. Usenullif the set is empty.less- the set of less-than-or-equal-to inequality constraints. Usenullif the set is empty.integers- the integral constraintsepsilon- a precision parameter: when a number |x| ≤ ε, it is considered 0
-
BruteForceIPProblem
public BruteForceIPProblem(RealScalarFunction f, BruteForceIPProblem.IntegerDomain[] integers, double epsilon)
Construct an integral constrained minimization problem with explicit integral domains.- Parameters:
f- the objective function to be minimizedintegers- the integral constraintsepsilon- a precision parameter: when a number |x| ≤ ε, it is considered 0
-
-
Method Detail
-
getIntegralConstraint
public BruteForceIPProblem.IntegerDomain getIntegralConstraint(int index)
Get the integral domain of a particular integral variable.- Parameters:
index- the index of the integral variable, counting from 1- Returns:
- the integral domain
-
-