KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Public Member Functions | Public Attributes | List of all members
algorithm_gradient_projection.AlgorithmGradientProjection Class Reference

A classical steepest descent algorithm to solve unconstrainted optimization problems. More...

Inheritance diagram for algorithm_gradient_projection.AlgorithmGradientProjection:
Collaboration diagram for algorithm_gradient_projection.AlgorithmGradientProjection:

Public Member Functions

def GetDefaultParameters (cls)
 
def __init__ (self, Kratos.Model model, Kratos.Parameters parameters, OptimizationProblem optimization_problem)
 
int GetMinimumBufferSize (self)
 
def Check (self)
 
def Initialize (self)
 
def Finalize (self)
 
KratosOA.CollectiveExpression ComputeSearchDirection (self, KratosOA.CollectiveExpression obj_grad, 'list[KratosOA.CollectiveExpression]' constr_grad)
 
KratosOA.CollectiveExpression ComputeControlUpdate (self, float alpha)
 
KratosOA.CollectiveExpression UpdateControl (self)
 
float GetCurrentObjValue (self)
 
def GetCurrentControlField (self)
 
KratosOA.CollectiveExpression Output (self)
 
def Solve (self)
 
float GetOptimizedObjectiveValue (self)
 

Public Attributes

 model
 
 parameters
 
 master_control
 
 echo_level
 
 linear_solver
 
 correction_size
 
 converged
 
 algorithm_data
 

Detailed Description

A classical steepest descent algorithm to solve unconstrainted optimization problems.

Constructor & Destructor Documentation

◆ __init__()

def algorithm_gradient_projection.AlgorithmGradientProjection.__init__ (   self,
Kratos.Model  model,
Kratos.Parameters  parameters,
OptimizationProblem  optimization_problem 
)

Member Function Documentation

◆ Check()

def algorithm_gradient_projection.AlgorithmGradientProjection.Check (   self)

◆ ComputeControlUpdate()

KratosOA.CollectiveExpression algorithm_gradient_projection.AlgorithmGradientProjection.ComputeControlUpdate (   self,
float  alpha 
)

◆ ComputeSearchDirection()

KratosOA.CollectiveExpression algorithm_gradient_projection.AlgorithmGradientProjection.ComputeSearchDirection (   self,
KratosOA.CollectiveExpression  obj_grad,
'list[KratosOA.CollectiveExpression]'  constr_grad 
)

◆ Finalize()

def algorithm_gradient_projection.AlgorithmGradientProjection.Finalize (   self)

◆ GetCurrentControlField()

def algorithm_gradient_projection.AlgorithmGradientProjection.GetCurrentControlField (   self)

◆ GetCurrentObjValue()

float algorithm_gradient_projection.AlgorithmGradientProjection.GetCurrentObjValue (   self)

◆ GetDefaultParameters()

def algorithm_gradient_projection.AlgorithmGradientProjection.GetDefaultParameters (   cls)

◆ GetMinimumBufferSize()

int algorithm_gradient_projection.AlgorithmGradientProjection.GetMinimumBufferSize (   self)

◆ GetOptimizedObjectiveValue()

float algorithm_gradient_projection.AlgorithmGradientProjection.GetOptimizedObjectiveValue (   self)

◆ Initialize()

def algorithm_gradient_projection.AlgorithmGradientProjection.Initialize (   self)

◆ Output()

KratosOA.CollectiveExpression algorithm_gradient_projection.AlgorithmGradientProjection.Output (   self)

◆ Solve()

def algorithm_gradient_projection.AlgorithmGradientProjection.Solve (   self)

◆ UpdateControl()

KratosOA.CollectiveExpression algorithm_gradient_projection.AlgorithmGradientProjection.UpdateControl (   self)

Member Data Documentation

◆ algorithm_data

algorithm_gradient_projection.AlgorithmGradientProjection.algorithm_data

◆ converged

algorithm_gradient_projection.AlgorithmGradientProjection.converged

◆ correction_size

algorithm_gradient_projection.AlgorithmGradientProjection.correction_size

◆ echo_level

algorithm_gradient_projection.AlgorithmGradientProjection.echo_level

◆ linear_solver

algorithm_gradient_projection.AlgorithmGradientProjection.linear_solver

◆ master_control

algorithm_gradient_projection.AlgorithmGradientProjection.master_control

◆ model

algorithm_gradient_projection.AlgorithmGradientProjection.model

◆ parameters

algorithm_gradient_projection.AlgorithmGradientProjection.parameters

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