Documentation of 'hep.aida.ref.optimizer.AbstractOptimizer' Java class
AbstractOptimizer
hep.aida.ref.optimizer

Class AbstractOptimizer

    • Constructor Detail

      • AbstractOptimizer

        public AbstractOptimizer()
        Creates a new instance of AbstractOptimizer
    • Method Detail

      • optimize

        public abstract void optimize()
        Perform the optimization.
        Specified by:
        optimize in interface IOptimizer
      • reset

        public void reset()
        Reset the function, the domain of constraints and the internal configuration.
        Specified by:
        reset in interface IOptimizer
      • setConstraints

        public void setConstraints(IDomainConstraint iDomainConstraint)
        Set the domain of constraints for the IOptimizer. If a domain of constraints already exists it will be overwritten.
        Specified by:
        setConstraints in interface IOptimizer
        Parameters:
        iDomainConstraint - The domain of constraints.
      • setFunction

        public void setFunction(IFunction iFunction)
        Set the IFunction to be optimized. When setting a function the current configuration is reset.
        Specified by:
        setFunction in interface IOptimizer
        Parameters:
        iFunction - The IFunction to be optimized.
      • listVariableSettings

        public java.lang.String[] listVariableSettings()
        Description copied from interface: IOptimizer
        Get the list of the names of the IVariableSettings defined.
        Specified by:
        listVariableSettings in interface IOptimizer
        Returns:
        The list of the names.
      • variableSettings

        public IVariableSettings variableSettings(java.lang.String name)
        Description copied from interface: IOptimizer
        Get the IVariableSettings corresponding to a give variable. If the IVariableSettings does not exist, a new one is created.
        Specified by:
        variableSettings in interface IOptimizer
        Parameters:
        name - The variable's name.
        Returns:
        The corresponging IVariableSettings
      • acceptsConstraints

        public boolean acceptsConstraints()
        Description copied from interface: IOptimizer
        Check if this IOptimizer accept constraints.
        Specified by:
        acceptsConstraints in interface IOptimizer
        Returns:
        true if the IOptimizer accepts contraints. false otherwise.
      • canCalculateContours

        public boolean canCalculateContours()
        Description copied from interface: IOptimizer
        Check if this IOptimizer can calculate contours.
        Specified by:
        canCalculateContours in interface IOptimizer
        Returns:
        true if the IOptimizer can calculate contours. false otherwise.
      • calculateContour

        public double[][] calculateContour(java.lang.String par1,
                                           java.lang.String par2,
                                           int npts,
                                           double nSigmas)
        Description copied from interface: IOptimizer
        Calculate the contour for two given parameters. The number of points and the number of sigmas can also be specified.
        Specified by:
        calculateContour in interface IOptimizer
        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.