AlgorithmManager
AlgorithmManager
Bases: TaggedComponentManager[Algorithm]
Create solution algorithms through model.analysis.algorithm.
Factories register command definitions, not active solver algorithms. Pass the returned object to an analysis factory. Keyword parameters are forwarded unchanged to the matching Components/analysis algorithm constructor; its validation errors propagate. Inherited registry methods manage only this family, and clearing it does not repair analyses referencing its objects.
Example
No algorithm selection or iteration limit guarantees physical equilibrium, nonlinear convergence, or explicit time-step stability for an arbitrary model.
Methods:
| Name | Description |
|---|---|
linear |
Create a Linear solution algorithm. |
newton |
Create a Newton-Raphson solution algorithm. |
modifiednewton |
Create a Modified Newton solution algorithm. |
newtonlinesearch |
Create a Newton Line Search solution algorithm. |
krylovnewton |
Create a Krylov-Newton solution algorithm. |
secantnewton |
Create a Secant-Newton solution algorithm. |
bfgs |
Create a BFGS solution algorithm. |
broyden |
Create a Broyden solution algorithm. |
expressnewton |
Create an Express Newton solution algorithm. |
Methods:
linear
Create a Linear solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initial
|
bool
|
If True, uses the initial structural stiffness matrix. |
False
|
factor_once
|
bool
|
If True, sets up and factors the matrix only once. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
component |
LinearAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
newton
Create a Newton-Raphson solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initial
|
bool
|
If True, uses the initial stiffness matrix throughout the iterations. |
False
|
initial_then_current
|
bool
|
If True, uses initial stiffness for the first iteration, and then reforms the tangent stiffness for subsequent iterations. |
False
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If both initial and initial_then_current are set to True. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
NewtonAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
modifiednewton
Create a Modified Newton solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initial
|
bool
|
If True, uses initial stiffness iterations. |
False
|
factor_once
|
bool
|
If True, factorizes the stiffness matrix only once. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
component |
ModifiedNewtonAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
newtonlinesearch
newtonlinesearch(*, type_search: str = 'InitialInterpolated', tol: float = 0.8, max_iter: int = 10, min_eta: float = 0.1, max_eta: float = 10.0) -> NewtonLineSearchAlgorithm
Create a Newton Line Search solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
type_search
|
str
|
Line search algorithm type. Must be one of
|
'InitialInterpolated'
|
tol
|
float
|
Tolerance for the line search convergence. |
0.8
|
max_iter
|
int
|
Maximum number of line search iterations per step. |
10
|
min_eta
|
float
|
Minimum scaling factor limit. |
0.1
|
max_eta
|
float
|
Maximum scaling factor limit. |
10.0
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If type_search is not a valid line search type. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
NewtonLineSearchAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
krylovnewton
krylovnewton(*, tang_iter: str = 'current', tang_incr: str = 'current', max_dim: int = 3) -> KrylovNewtonAlgorithm
Create a Krylov-Newton solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tang_iter
|
str
|
Tangent to iterate on. Must be |
'current'
|
tang_incr
|
str
|
Tangent to increment on. Must be |
'current'
|
max_dim
|
int
|
Max number of subspace iterations before reforming the tangent. |
3
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If tang_iter or tang_incr is not a valid option. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
KrylovNewtonAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
secantnewton
secantnewton(*, tang_iter: str = 'current', tang_incr: str = 'current', max_dim: int = 3) -> SecantNewtonAlgorithm
Create a Secant-Newton solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tang_iter
|
str
|
Tangent to iterate on. Must be |
'current'
|
tang_incr
|
str
|
Tangent to increment on. Must be |
'current'
|
max_dim
|
int
|
Max number of iterations before reforming the tangent. |
3
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If tang_iter or tang_incr is not a valid option. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
SecantNewtonAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
bfgs
Create a BFGS solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
count
|
int
|
Number of iterations before reforming the tangent stiffness matrix. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If count is not a positive integer. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
BFGSAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
broyden
Create a Broyden solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
count
|
int
|
Number of iterations before reforming the tangent stiffness matrix. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If count is not a positive integer. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
BroydenAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
expressnewton
expressnewton(*, iter_count: int = 2, k_multiplier: float = 1.0, initial_tangent: bool = False, current_tangent: bool = True, factor_once: bool = False) -> ExpressNewtonAlgorithm
Create an Express Newton solution algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
iter_count
|
int
|
Constant number of iterations to perform. |
2
|
k_multiplier
|
float
|
Multiplier factor for system stiffness. |
1.0
|
initial_tangent
|
bool
|
If True, uses initial stiffness matrix. |
False
|
current_tangent
|
bool
|
If True, uses current tangent stiffness matrix. |
True
|
factor_once
|
bool
|
If True, factors system stiffness only once. |
False
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If iter_count is not positive, or if both initial_tangent and current_tangent are set to True. |
Returns:
| Name | Type | Description |
|---|---|---|
component |
ExpressNewtonAlgorithm
|
Registered definition. Creating it does not run OpenSees. |
Registry operations
The following shared methods are available on this manager namespace. They manage definitions, not an active solver. See shared registry operations for add, create, get, get_all, remove, clear, set_tag_start, and get_available_types.