Interface Calcfc


  • public interface Calcfc
    Interface for calculation of objective function and constraints in COBYLA2 optimization.
    Author:
    Anders Gustafsson, Cureos AB.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double Compute​(int n, int m, double[] x, double[] con, boolean[] terminate)
      The objective and constraints function evaluation method used in COBYLA2 minimization.
    • Method Detail

      • Compute

        double Compute​(int n,
                       int m,
                       double[] x,
                       double[] con,
                       boolean[] terminate)
                throws IllegalActionException
        The objective and constraints function evaluation method used in COBYLA2 minimization.
        Parameters:
        n - Number of variables.
        m - Number of constraints.
        x - Variable values to be employed in function and constraints calculation.
        con - Calculated function values of the constraints.
        terminate - A boolean array that provides the terminate state. Only the first element of the array is read
        Returns:
        Calculated objective function value.
        Throws:
        IllegalActionException - If there is a problem calculating the COBYLA2 minimization.