Top Description Fields Constructors Methods
org.apache.commons.math3.optim

public Class SimpleBounds

extends Object
implements OptimizationData
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.optim.OptimizationData
Imports
java.util.Arrays

Simple optimization constraints: lower and upper bounds. The valid range of the parameters is an interval that can be infinite (in one or both directions).
Immutable class.
Since
3.1

Field Summary

Modifier and TypeField and Description
private final double[]
lower

Lower bounds.

private final double[]
upper

Upper bounds.

Constructor Summary

AccessConstructor and Description
public
SimpleBounds(double[]
Lower bounds.
lB
,
double[]
Upper bounds.
uB
)

Method Summary

Modifier and TypeMethod and Description
public double[]

Returns:

the lower bounds.
getLower
()

Gets the lower bounds.

public double[]

Returns:

the upper bounds.
getUpper
()

Gets the upper bounds.

public static SimpleBounds

Returns:

a new instance suitable for passing to an optimizer that requires bounds specification.
unbounded
(int
Number of parameters.
dim
)

Factory method that creates instance of this class that represents unbounded ranges.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lowerback to summary
private final double[] lower

Lower bounds.

upperback to summary
private final double[] upper

Upper bounds.

Constructor Detail

SimpleBoundsback to summary
public SimpleBounds(double[] lB, double[] uB)
Parameters
lB:double[]

Lower bounds.

uB:double[]

Upper bounds.

Method Detail

getLowerback to summary
public double[] getLower()

Gets the lower bounds.

Returns:double[]

the lower bounds.

getUpperback to summary
public double[] getUpper()

Gets the upper bounds.

Returns:double[]

the upper bounds.

unboundedback to summary
public static SimpleBounds unbounded(int dim)

Factory method that creates instance of this class that represents unbounded ranges.

Parameters
dim:int

Number of parameters.

Returns:SimpleBounds

a new instance suitable for passing to an optimizer that requires bounds specification.