How do I specify convergence criteria while using PDE Toolbox from a script? (R2017a)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sarojeet Deb
am 5 Feb. 2018
Beantwortet: Ravi Kumar
am 14 Feb. 2018
The legacy workflow had properties that could be used in pdenonlin function. How can I set the convergence and Jacobian solution parameters in R2017a?
0 Kommentare
Akzeptierte Antwort
Ravi Kumar
am 14 Feb. 2018
Hi Sarojeet,
You can access same controls in the new workflow as a property of the model. You can directly set them by assigning new values, which would replace the default values.
For example, if you have created a model named, myNonlinerProblem, then you can see the defaults as:
>> myNonlinerProblem.SolverOptions
ans =
PDESolverOptions with properties:
AbsoluteTolerance: 1.000000000000000e-06
RelativeTolerance: 1.000000000000000e-03
ResidualTolerance: 1.000000000000000e-04
MaxIterations: 25
MinStep: 1.525878906250000e-05
ResidualNorm: Inf
ReportStatistics: 'off'
One thing that you could do in legacy and not do in new workflow is setting the Jacobian option, by default the new solver used full-Jacobian.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu PDE Solvers finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!