Class JacobiSolver
java.lang.Object
org.ojalgo.matrix.task.iterative.IterativeSolverTask
org.ojalgo.matrix.task.iterative.JacobiSolver
- All Implemented Interfaces:
MatrixTask<Double>, SolverTask<Double>
Stationary Jacobi iteration for solving [A][x]=[b] with non-zero diagonal entries.
Convergence
- Converges for strictly diagonally dominant systems and for SPD matrices under suitable conditions.
- Updates are fully synchronous (per-iteration), making it straightforward to parallelise across rows.
- Ignores any configured
Preconditioner; use the relaxation factor to control convergence speed.
- As a simple baseline or where synchronous updates and trivial parallelism are desirable.
- When sequential in-place coupling is acceptable and faster convergence is needed, an in-place stationary method may be preferable.
- For large SPD problems needing faster/robuster convergence, Krylov methods often perform better.
-
Nested Class Summary
Nested classes/interfaces inherited from class IterativeSolverTask
IterativeSolverTask.ConfiguratorNested classes/interfaces inherited from interface SolverTask
SolverTask.Factory<N> -
Field Summary
FieldsFields inherited from class IterativeSolverTask
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleresolve(List<Equation> equations, PhysicalStore<Double> solution) Methods inherited from class IterativeSolverTask
configurator, debug, getAccuracyContext, getIterationsLimit, getPreconditioner, getRelaxationFactor, isDebugPrinterSet, preallocate, resolve, setAccuracyContext, setDebugPrinter, setIterationsLimit, setPreconditioner, setRelaxationFactor, solve, solve, toListOfRows, workerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SolverTask
preallocate, solve, toSolutionProvider
-
Field Details
-
myIncrement
-
-
Constructor Details
-
JacobiSolver
public JacobiSolver()
-
-
Method Details
-
resolve
- Specified by:
resolvein classIterativeSolverTask
-