9#ifndef __IPBACKTRACKINGLSACCEPTOR_HPP__
10#define __IPBACKTRACKINGLSACCEPTOR_HPP__
34 const std::string& prefix
173 THROW_EXCEPTION(OPTION_INVALID,
"Value \"acceptor\" for option \"alpha_for_y\" not valid for this line search.");
#define THROW_EXCEPTION(__except_type, __msg)
This is the base class for all algorithm strategy objects.
Base class for backtracking line search acceptors.
virtual void InitThisLineSearch(bool in_watchdog)=0
Initialization for the next line search.
virtual bool TrySecondOrderCorrection(Number alpha_primal_test, Number &alpha_primal, SmartPtr< IteratesVector > &actual_delta)=0
Try a second order correction for the constraints.
BacktrackingLSAcceptor()
Constructor.
virtual Number ComputeAlphaForY(Number, Number, SmartPtr< IteratesVector > &)
Method for computing the step for the constraint multipliers in the line search acceptor method.
virtual bool RestoredIterate()
Method for telling the BacktrackingLineSearch object that a previous iterate has been restored.
virtual char UpdateForNextIteration(Number alpha_primal_test)=0
Method for ending the current line search.
virtual void PrepareRestoPhaseStart()=0
Method that is called before the restoration phase is called.
virtual bool TryCorrector(Number alpha_primal_test, Number &alpha_primal, SmartPtr< IteratesVector > &actual_delta)=0
Try higher order corrector (for fast local convergence).
virtual bool HasComputeAlphaForY() const
Method returning true of ComputeAlphaForY is implemented for this acceptor.
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)=0
Implementation of the initialization method that has to be overloaded by for each derived class.
BacktrackingLSAcceptor(const BacktrackingLSAcceptor &)
Copy Constructor.
virtual void Reset()=0
Reset the acceptor.
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
Methods for OptionsList.
virtual void StartWatchDog()=0
Method for setting internal data if the watchdog procedure is started.
virtual ~BacktrackingLSAcceptor()
Destructor.
virtual Number CalculateAlphaMin()=0
Method returning the lower bound on the trial step sizes.
void operator=(const BacktrackingLSAcceptor &)
Default Assignment Operator.
virtual void StopWatchDog()=0
Method for setting internal data if the watchdog procedure is stopped.
virtual bool DoFallback()
Method for doing a fallback approach in case no search direction could be computed.
virtual bool CheckAcceptabilityOfTrialPoint(Number alpha_primal)=0
Method for checking if current trial point is acceptable.
virtual bool NeverRestorationPhase()
Method called by BacktrackingLineSearch object to determine whether the restoration phase should neve...
This class stores a list of user set options.
Template class for Smart Pointers.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
ipnumber Number
Type of all numbers.