Class Individual_to_CoupledJacobian<S extends DMatrix>

All Implemented Interfaces:
CoupledJacobian<S>, FunctionInOut

public class Individual_to_CoupledJacobian<S extends DMatrix> extends Object implements CoupledJacobian<S>
  • Constructor Details

  • Method Details

    • getNumOfInputsN

      public int getNumOfInputsN()
      Description copied from interface: FunctionInOut
      Number of input elements. Typically the parameters you are optimizing.
      Specified by:
      getNumOfInputsN in interface FunctionInOut
      number of input elements
    • getNumOfOutputsM

      public int getNumOfOutputsM()
      Description copied from interface: FunctionInOut
      Number of output elements. Typically the functions that are being optimized.
      Specified by:
      getNumOfOutputsM in interface FunctionInOut
      number of output elements
    • setInput

      public void setInput(double[] x)
      Description copied from interface: CoupledJacobian
      Specifies the input parameters. The user can modify these values and they will be modified inside the optimization function too.
      Specified by:
      setInput in interface CoupledJacobian<S extends DMatrix>
      x - Optimization parameters.
    • computeFunctions

      public void computeFunctions(double[] output)
      Specified by:
      computeFunctions in interface CoupledJacobian<S extends DMatrix>
    • computeJacobian

      public void computeJacobian(S jacobian)
      Description copied from interface: CoupledJacobian

      Processes the input parameters into the 2D Jacobian matrix. The matrix has a dimension of M rows and N columns and is formatted as a row major 1D-array. EJML can be used to provide a matrix wrapper around the output array: DenseMatrix J = DenseMatrix.wrap(m,n,output);

      The user can modify the input parameters here and the optimizer must use those changes.

      Specified by:
      computeJacobian in interface CoupledJacobian<S extends DMatrix>
      jacobian - matrix with M rows and N columns.