Documentation of 'hep.aida.ext.IOptimizer' Java class
IOptimizer
hep.aida.ext

Interface IOptimizer

    • Method Detail

      • setFunction

        void setFunction(IFunction function)
                  throws java.lang.IllegalArgumentException
        Set the IFunction to be optimized. When setting a function the current configuration is reset.
        Parameters:
        function - The IFunction to be optimized.
        Throws:
        java.lang.IllegalArgumentException
      • setConstraints

        void setConstraints(IDomainConstraint domainConstraint)
                     throws java.lang.IllegalArgumentException
        Set the domain of constraints for the IOptimizer. If a domain of constraints already exists it will be overwritten.
        Parameters:
        domainConstraint - The domain of constraints.
        Throws:
        java.lang.IllegalArgumentException
      • optimize

        void optimize()
        Perform the optimization.
      • result

        IOptimizerResult result()
        Get the optimization results.
        Returns:
        The result.
      • reset

        void reset()
        Reset the function, the domain of constraints and the internal configuration.
      • configuration

        IOptimizerConfiguration configuration()
        Get the IOptimizer configuration
        Returns:
        The configuration.
      • setConfiguration

        void setConfiguration(IOptimizerConfiguration config)
                       throws java.lang.IllegalArgumentException
        Set the internal configuration of the Optimizer.
        Parameters:
        config - The configuration.
        Throws:
        java.lang.IllegalArgumentException
      • variableSettings

        IVariableSettings variableSettings(java.lang.String name)
        Get the IVariableSettings corresponding to a give variable. If the IVariableSettings does not exist, a new one is created.
        Parameters:
        name - The variable's name.
        Returns:
        The corresponging IVariableSettings
      • listVariableSettings

        java.lang.String[] listVariableSettings()
        Get the list of the names of the IVariableSettings defined.
        Returns:
        The list of the names.
      • resetVariableSettings

        void resetVariableSettings()
        Reset all variable settings.
      • acceptsConstraints

        boolean acceptsConstraints()
        Check if this IOptimizer accept constraints.
        Returns:
        true if the IOptimizer accepts contraints. false otherwise.
      • canCalculateContours

        boolean canCalculateContours()
        Check if this IOptimizer can calculate contours.
        Returns:
        true if the IOptimizer can calculate contours. false otherwise.
      • calculateContour

        double[][] calculateContour(java.lang.String par1,
                                    java.lang.String par2,
                                    int npts,
                                    double nSigmas)
        Calculate the contour for two given parameters. The number of points and the number of sigmas can also be specified.
        Parameters:
        par1 - The name of the first parameter.
        par2 - The name of the second parameter.
        npts - The number of points on the contour.
        nSigmas - The number of sigmas for this contour.
        Returns:
        A double array of dimension [2][npts]. For each point on the contour the value of (par1,par2) is returned.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.