Go to the documentation of this file.
11 #ifndef __IPBACKTRACKINGLSACCEPTOR_HPP__
12 #define __IPBACKTRACKINGLSACCEPTOR_HPP__
37 const std::string& prefix)=0;
45 virtual void Reset()=0;
144 "Value \"acceptor\" for option \"alpha_for_y\" not valid for this line search.");
#define THROW_EXCEPTION(__except_type, __msg)
virtual bool CheckAcceptabilityOfTrialPoint(Number alpha_primal)=0
Method for checking if current trial point is acceptable.
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.
virtual void StartWatchDog()=0
Method for setting internal data if the watchdog procedure is started.
double Number
Type of all numbers.
virtual void StopWatchDog()=0
Method for setting internal data if the watchdog procedure is stopped.
virtual ~BacktrackingLSAcceptor()
Default destructor.
virtual bool TryCorrector(Number alpha_primal_test, Number &alpha_primal, SmartPtr< IteratesVector > &actual_delta)=0
Try higher order corrector (for fast local convergence).
BacktrackingLSAcceptor()
Constructor.
virtual Number CalculateAlphaMin()=0
Method returning the lower bound on the trial step sizes.
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 RestoredIterate()
Method for telling the BacktrackingLineSearch object that a previous iterate has been restored.
Template class for Smart Pointers.
virtual void Reset()=0
Reset the acceptor.
virtual Number ComputeAlphaForY(Number alpha_primal, Number alpha_dual, SmartPtr< IteratesVector > &delta)
Method for computing the step for the constraint multipliers in the line search acceptor method.
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
Methods for OptionsList.
This is the base class for all algorithm strategy objects.
virtual bool HasComputeAlphaForY() const
Method returning true of ComputeAlphaForY is implemented for this acceptor.
virtual bool DoFallback()
Method for doing a fallback approach in case no search direction could be computed.
Base class for backtracking line search acceptors.
This class stores a list of user set options.
void operator=(const BacktrackingLSAcceptor &)
Overloaded Equals Operator.
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)=0
InitializeImpl - overloaded from AlgorithmStrategyObject.
virtual bool NeverRestorationPhase()
Method called by BacktrackingLineSearch object to determine whether the restoration phase should neve...