public abstract class SolverRnRn
extends java.lang.Object
| Constructor and Description |
|---|
SolverRnRn() |
| Modifier and Type | Method and Description |
|---|---|
double |
getEpsAbsF() |
double |
getEpsAbsX() |
double |
getEpsRelX() |
double[] |
getF() |
int |
getMaxIter() |
double[] |
getRoot()
Returns current estimated solution
|
abstract void |
init(FuncRnRn extFunc,
double epsAbsX,
double epsRelX,
double epsAbsF,
int maxIterU,
double[] X0)
Initialization of the solver
|
void |
printSolution()
Deprecated.
Use asStringX
|
void |
run()
Simplified call equivalent to run(NCEMath.VERBOSE)
|
abstract void |
run(java.lang.String mode)
Runs the solution algorithm up to solution
|
void |
setEpsAbsF(double epsAbsF) |
void |
setEpsAbsX(double epsAbsX) |
void |
setEpsRelX(double epsRelX) |
void |
setMaxIter(int maxIter) |
void |
toStringExtended()
Prints X and F
|
public abstract void run(java.lang.String mode)
throws java.lang.ArithmeticException
mode - SILENT or VERBOSE depending on the amount of output requiredjava.lang.ArithmeticExceptionpublic void run()
throws java.lang.ArithmeticException
java.lang.ArithmeticExceptionpublic abstract void init(FuncRnRn extFunc, double epsAbsX, double epsRelX, double epsAbsF, int maxIterU, double[] X0)
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 FmaxIterU - max number of iterationsX0 - initial guess for the solution vectorpublic void printSolution()
public void toStringExtended()
public double[] getRoot()
public double[] getF()
public int getMaxIter()
public void setMaxIter(int maxIter)
public double getEpsAbsX()
public void setEpsAbsX(double epsAbsX)
public double getEpsAbsF()
public void setEpsAbsF(double epsAbsF)
public double getEpsRelX()
public void setEpsRelX(double epsRelX)