model
Class ApproxModelToVectorFunction
java.lang.Object
function.BasicVectorFunction
model.ApproxModelToVectorFunction
- All Implemented Interfaces:
- Computable, VectorFunction
public class ApproxModelToVectorFunction
- extends BasicVectorFunction
Adapter for converting an ApproxModel to a VectorFunction to
be used for multiobjective search in auxiliary problems. Currently not used.
- Author:
- dgorur
| Methods inherited from class function.BasicVectorFunction |
checkInputDimension, compute, compute, compute, compute, compute, getBounds, getInputDimension, getOutputDimension, init, makeBounds, quickCompute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApproxModelToVectorFunction
public ApproxModelToVectorFunction()
quickCompute
public void quickCompute(double[] x,
double[] y)
- Description copied from class:
BasicVectorFunction
- Abstract method that all subclasses must implement. This is the core
compute method that takes an input
double array and returns an
output double array.
- Specified by:
quickCompute in interface VectorFunction- Specified by:
quickCompute in class BasicVectorFunction
- Parameters:
x - input array.y - output array.
isWithinBounds
public boolean isWithinBounds(double[] x)
- Description copied from interface:
Computable
- Returns
true if the given point is within bounds.
- Specified by:
isWithinBounds in interface Computable- Overrides:
isWithinBounds in class BasicVectorFunction
- Parameters:
x - the given point.
- Returns:
true if within bounds.
getApproxModel
public ApproxModel getApproxModel()
- Returns the approxModel.
- Returns:
- the approxModel.
setApproxModel
public void setApproxModel(ApproxModel approxModel)
- Sets the approxModel.
- Parameters:
approxModel - the given approxModel.