public class Homotopy extends SolverRnRn
Constructor and Description |
---|
Homotopy() |
Modifier and Type | Method and Description |
---|---|
void |
init(FuncRnRn extFunc,
double epsAbsX,
double epsRelX,
double epsAbsF,
int maxIter,
double[] X0)
Initialization of the solver
|
void |
initHomotopy(int numSteps,
HomotopyFunc hFunc,
SolverRnRn solver)
Initialization of the homotopy solver
|
void |
run(java.lang.String mode)
Runs the solution algorithm up to solution
|
getEpsAbsF, getEpsAbsX, getEpsRelX, getF, getMaxIter, getRoot, printSolution, run, setEpsAbsF, setEpsAbsX, setEpsRelX, setMaxIter, toStringExtended
public void init(FuncRnRn extFunc, double epsAbsX, double epsRelX, double epsAbsF, int maxIter, double[] X0)
SolverRnRn
init
in class SolverRnRn
extFunc
- the vector of equations to be solvedepsAbsX
- absolute error for convergency on XepsRelX
- relative error for convergency on XepsAbsF
- absolute error for convergency on FmaxIter
- max number of iterationsX0
- initial guess for the solution vectorpublic void initHomotopy(int numSteps, HomotopyFunc hFunc, SolverRnRn solver)
numSteps
- hFunc
- solver
- public void run(java.lang.String mode) throws java.lang.ArithmeticException
SolverRnRn
run
in class SolverRnRn
mode
- SILENT or VERBOSE depending on the amount of output requiredjava.lang.ArithmeticException