model
Class ApproxModelToVectorFunction

java.lang.Object
  extended by function.BasicVectorFunction
      extended by 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

Field Summary
 
Fields inherited from class function.BasicVectorFunction
DEFAULT_BOUNDS, DEFAULT_INPUT_DIMENSION, DEFAULT_OUTPUT_DIMENSION, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
ApproxModelToVectorFunction()
           
 
Method Summary
 ApproxModel getApproxModel()
          Returns the approxModel.
 boolean isWithinBounds(double[] x)
          Returns true if the given point is within bounds.
 void quickCompute(double[] x, double[] y)
          Abstract method that all subclasses must implement.
 void setApproxModel(ApproxModel approxModel)
          Sets the approxModel.
 
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
 

Constructor Detail

ApproxModelToVectorFunction

public ApproxModelToVectorFunction()
Method Detail

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.