KASKADE 7 development version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Kaskade::InteriorPointSimple Class Reference

Very simple implementation of homotopy method: fixed stepsize. More...

#include <homotopy_base.hh>

Detailed Description

Very simple implementation of homotopy method: fixed stepsize.

Definition at line 172 of file homotopy_base.hh.

Inheritance diagram for Kaskade::InteriorPointSimple:
Kaskade::HomotopyBase Kaskade::Algorithm

Public Member Functions

 InteriorPointSimple (NewtonsMethod &n_, InteriorPointParameters &p_)
 
virtual double muOnSuccess (int step)
 New mu if corrector was successful. More...
 
virtual double muOnFailure ()
 New mu if corrector failed. More...
 
virtual double muFinal ()
 mu for successful termination More...
 
virtual void updateModelOfHomotopy (int step)
 update of path parameters, e.g. eta and omega More...
 
virtual void initializeCorrector ()
 what should be done before corrector More...
 
virtual void finalizeCorrector ()
 what should be done after corrector More...
 
virtual void updateIterate ()
 make trial iterate to current iterate (on successful corrector) More...
 
virtual void recoverIterate ()
 make old iterate to current iterate (on failed corrector) More...
 
virtual double lengthOfPath ()
 estimate of length of homopoty path More...
 
void solve (AbstractParameterFunctional *f, AbstractFunctionSpaceElement &x)
 
void performTiming (bool doit)
 
void reportOnIteration (int level)
 

Protected Member Functions

virtual void initialize ()
 Optional overload by derived class. More...
 
virtual void finalize ()
 Optional overload by derived class. More...
 
virtual void finalize (int)
 
virtual void logQuantities ()
 
virtual void computePredictor (int step)
 Default: classical predictor. More...
 
virtual int convergenceTest ()
 convergence test. returns true if method converged and solution is found. More...
 
virtual void finalizeHomotopy ()
 to be performed, if convergence of path has occured More...
 
virtual void terminationMessage (int errorFlag)
 output of a termination message More...
 
int algorithmWrapper ()
 Run algorithm, completely with initialization and finalization. More...
 
int oneStepWrapper ()
 Run one step of algorithm. More...
 

Protected Attributes

NewtonsMethodcorrector
 
InteriorPointParametersp
 
AbstractParameterFunctionalfunctional
 
std::unique_ptr< AbstractFunctionSpaceElementtrialIterate
 
int step
 
int report
 

Constructor & Destructor Documentation

◆ InteriorPointSimple()

Kaskade::InteriorPointSimple::InteriorPointSimple ( NewtonsMethod n_,
InteriorPointParameters p_ 
)
inline

Definition at line 175 of file homotopy_base.hh.

Member Function Documentation

◆ algorithmWrapper()

int Kaskade::Algorithm::algorithmWrapper ( )
protectedinherited

Run algorithm, completely with initialization and finalization.

◆ computePredictor()

virtual void Kaskade::HomotopyBase::computePredictor ( int  step)
protectedvirtualinherited

Default: classical predictor.

Reimplemented in Kaskade::InteriorPointSlopeEstimate.

◆ convergenceTest()

virtual int Kaskade::HomotopyBase::convergenceTest ( )
protectedvirtualinherited

convergence test. returns true if method converged and solution is found.

◆ finalize() [1/2]

virtual void Kaskade::HomotopyBase::finalize ( )
inlineprotectedvirtualinherited

Optional overload by derived class.

Reimplemented in Kaskade::InteriorPointSlopeEstimate.

Definition at line 112 of file homotopy_base.hh.

◆ finalize() [2/2]

virtual void Kaskade::Algorithm::finalize ( int  )
inlineprotectedvirtualinherited

◆ finalizeCorrector()

virtual void Kaskade::InteriorPointSimple::finalizeCorrector ( )
inlinevirtual

what should be done after corrector

Implements Kaskade::HomotopyBase.

Definition at line 185 of file homotopy_base.hh.

◆ finalizeHomotopy()

virtual void Kaskade::HomotopyBase::finalizeHomotopy ( )
inlineprotectedvirtualinherited

to be performed, if convergence of path has occured

Reimplemented in Kaskade::InteriorPointSlopeEstimate.

Definition at line 150 of file homotopy_base.hh.

◆ initialize()

virtual void Kaskade::HomotopyBase::initialize ( )
inlineprotectedvirtualinherited

Optional overload by derived class.

Reimplemented from Kaskade::Algorithm.

Reimplemented in Kaskade::InteriorPointSqrtModel, and Kaskade::InteriorPointSlopeEstimate.

Definition at line 109 of file homotopy_base.hh.

◆ initializeCorrector()

virtual void Kaskade::InteriorPointSimple::initializeCorrector ( )
inlinevirtual

what should be done before corrector

Implements Kaskade::HomotopyBase.

Definition at line 184 of file homotopy_base.hh.

◆ lengthOfPath()

virtual double Kaskade::InteriorPointSimple::lengthOfPath ( )
inlinevirtual

estimate of length of homopoty path

Implements Kaskade::HomotopyBase.

Definition at line 190 of file homotopy_base.hh.

◆ logQuantities()

virtual void Kaskade::HomotopyBase::logQuantities ( )
protectedvirtualinherited

◆ muFinal()

virtual double Kaskade::InteriorPointSimple::muFinal ( )
inlinevirtual

mu for successful termination

Implements Kaskade::HomotopyBase.

Definition at line 180 of file homotopy_base.hh.

◆ muOnFailure()

virtual double Kaskade::InteriorPointSimple::muOnFailure ( )
inlinevirtual

New mu if corrector failed.

Implements Kaskade::HomotopyBase.

Definition at line 179 of file homotopy_base.hh.

◆ muOnSuccess()

virtual double Kaskade::InteriorPointSimple::muOnSuccess ( int  step)
inlinevirtual

New mu if corrector was successful.

Implements Kaskade::HomotopyBase.

Definition at line 178 of file homotopy_base.hh.

◆ oneStepWrapper()

int Kaskade::Algorithm::oneStepWrapper ( )
protectedinherited

Run one step of algorithm.

◆ performTiming()

void Kaskade::Algorithm::performTiming ( bool  doit)
inlineinherited

Definition at line 181 of file algorithm_base.hh.

◆ recoverIterate()

virtual void Kaskade::InteriorPointSimple::recoverIterate ( )
inlinevirtual

make old iterate to current iterate (on failed corrector)

Implements Kaskade::HomotopyBase.

Definition at line 188 of file homotopy_base.hh.

◆ reportOnIteration()

void Kaskade::Algorithm::reportOnIteration ( int  level)
inlineinherited

Definition at line 182 of file algorithm_base.hh.

◆ solve()

void Kaskade::HomotopyBase::solve ( AbstractParameterFunctional f,
AbstractFunctionSpaceElement x 
)
inherited

◆ terminationMessage()

virtual void Kaskade::HomotopyBase::terminationMessage ( int  errorFlag)
protectedvirtualinherited

output of a termination message

Reimplemented from Kaskade::Algorithm.

◆ updateIterate()

virtual void Kaskade::InteriorPointSimple::updateIterate ( )
inlinevirtual

make trial iterate to current iterate (on successful corrector)

Implements Kaskade::HomotopyBase.

Definition at line 187 of file homotopy_base.hh.

◆ updateModelOfHomotopy()

virtual void Kaskade::InteriorPointSimple::updateModelOfHomotopy ( int  step)
inlinevirtual

update of path parameters, e.g. eta and omega

Implements Kaskade::HomotopyBase.

Definition at line 182 of file homotopy_base.hh.

Member Data Documentation

◆ corrector

NewtonsMethod& Kaskade::HomotopyBase::corrector
protectedinherited

◆ functional

AbstractParameterFunctional* Kaskade::HomotopyBase::functional
protectedinherited

Definition at line 157 of file homotopy_base.hh.

◆ p

InteriorPointParameters& Kaskade::HomotopyBase::p
protectedinherited

◆ report

int Kaskade::Algorithm::report
protectedinherited

Definition at line 193 of file algorithm_base.hh.

Referenced by Kaskade::Algorithm::reportOnIteration().

◆ step

int Kaskade::HomotopyBase::step
protectedinherited

Definition at line 160 of file homotopy_base.hh.

◆ trialIterate

std::unique_ptr<AbstractFunctionSpaceElement> Kaskade::HomotopyBase::trialIterate
protectedinherited

The documentation for this class was generated from the following file: