Skip to content

Implement nonlinear formulas as residuals #73

@mikofski

Description

@mikofski

Related to #61 and #63
If a formula is flashed as nonlinear buy setting islinear = False then the formula should be written as a residual, ie: it should evaluate to zero

deg f_nonlinear(a, b, c):
    Vd = V - I*Rs
    Ish = V/Rsh
    Id = Isat * (exp(qVd/(nkT)) - 1)
    return I - Id - Ish

Then the default nonlinear calculator, either Levenburg-Marquardt out Newton-Raphson is used with all residuals

Also this means that formula needs an additional attribute called retval that indicates which argument to solve for

Or it will assume the first argument.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions