Class BarrierMethod


  • public class BarrierMethod
    extends java.lang.Object
    BarrierMethod. Convex Optimization P.583, 11.3.The Barrier method This class solves min(BarrierFunction B = f0(x)-(1/t)sum(log(-fi(x)))) using Newton decrement.
    Since:
    Ptolemy II 11.0
    Version:
    $Id$
    Author:
    Shuhei Emoto
    Pt.AcceptedRating:
    Pt.ProposedRating:
    Red (shuhei)
    • Constructor Summary

      Constructors 
      Constructor Description
      BarrierMethod()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int optimize​(org.ptolemy.optimization.ObjectiveFunction objective)
      Optimize the problem specified by inputed Objective function.
      void setAlpha​(double alpha)
      set alpha proportion during line search.
      void setBeta​(double beta)
      set beta proportion during line search
      void setMaxIterationNum​(int maxIterationNum)
      set the maximum iteration number in the optimization
      void setMu​(double mu)
      set the proportion which increase t (inverse of gap in the Barrier function).
      void setTolerance​(double tolerance)
      set tolerance value which defines the optimization accuracy.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BarrierMethod

        public BarrierMethod()
    • Method Detail

      • optimize

        public int optimize​(org.ptolemy.optimization.ObjectiveFunction objective)
                     throws IllegalActionException
        Optimize the problem specified by inputed Objective function.
        Parameters:
        objective - : the class which defines the objective (cost and constraints) functions.
        Returns:
        : if this method finish successfully, return 0("CONVERGED")
        Throws:
        IllegalActionException
      • setAlpha

        public void setAlpha​(double alpha)
        set alpha proportion during line search.
        Parameters:
        alpha - : setting value
      • setBeta

        public void setBeta​(double beta)
        set beta proportion during line search
        Parameters:
        beta - : setting value
      • setMaxIterationNum

        public void setMaxIterationNum​(int maxIterationNum)
        set the maximum iteration number in the optimization
        Parameters:
        maxIterationNum - : maximum iteration number
      • setMu

        public void setMu​(double mu)
        set the proportion which increase t (inverse of gap in the Barrier function).
        Parameters:
        mu - : setting value
      • setTolerance

        public void setTolerance​(double tolerance)
        set tolerance value which defines the optimization accuracy.
        Parameters:
        tolerance - : tolerance