I am using Matlab to solve three non-square equations in three unknowns: X, Y, and Z.

The algorithm normally starts solving for them, but when it gets an accurate value of one of these three variables, it stops yielding error in the other two variables which are needed to be accurately solved too!

Here you are the algorithm parameters:

options =

fsolve options:

Options used by current Algorithm ('trust-region-dogleg'):

(Other available algorithms: 'levenberg-marquardt', 'trust-region')

Set properties:

No options set.

Default properties:

Algorithm: 'trust-region-dogleg'

CheckGradients: 0

Display: 'final'

FiniteDifferenceStepSize: 'sqrt(eps)'

FiniteDifferenceType: 'forward'

FunctionTolerance: 1.0000e-06

MaxFunctionEvaluations: '100*numberOfVariables'

MaxIterations: 400

OptimalityTolerance: 1.0000e-06

OutputFcn: []

PlotFcn: []

SpecifyObjectiveGradient: 0

StepTolerance: 1.0000e-06

TypicalX: 'ones(numberOfVariables,1)'

UseParallel: 0

I would greatly appreciate your help.

Thanks.

More Gamal Zayed's questions See All
Similar questions and discussions