Search for a numerical solution of the system of equations for a parameter given on the interval
1 view (last 30 days)
Show older comments
Pavel Aksentsev
on 3 Feb 2022
Commented: Walter Roberson
on 3 Feb 2022
HI, I have 6 non-linear equations and 6 unknowns. Search for solution on restrictions demanded for me did`t give a result. I want specified parameter (q=0.3) in equations like interval 0.25<q<0.45 and get real numerical result for minimum q. What MATLAB tool should I use?
2 Comments
Walter Roberson
on 3 Feb 2022
That is tricky unless the system is such that if q0 is the minimum q with a solution, then every q0 < q < 0.45 also has a solution ? But if the solution ranges are discontinuous, the situation gets considerably harder, unless it is feasible to do some numeric analysis to make the search easier.
Accepted Answer
Walter Roberson
on 3 Feb 2022
If you just need any solution in that range, then fzero the set of 6 equations, but expand from 6 variables to 7 variables with q as the 7th variable, and use lb and ub to restrict its range.
1 Comment
Walter Roberson
on 3 Feb 2022
You can also write a system like this as norm() of the set of left hand sides minus right hand sides.
In the case where the values are known to be real, the norm would be the square root of the sum of squares of (left minus right), and for minimization purposes it is enough to compare the sum of squares without taking the square root.
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!