Solving simultatious equations with inequalities
3 views (last 30 days)
Show older comments
Hi all,
I have a set of three simultaneous that include inequalities that I need a solution for.
The equations are as follows:
Constant1 >= (a^4-b^4)/12
Constant2 >= a^2-b^2
a-b >= 10
When an equality is used in lieu of the inequalities, equations one and two do not intersect, and thus there are no real soltuions. I am aware that there is likely an infinite number of solutions to the above equations, but what I am looking to computate is the value of a and b that minimises all 3 equations, i.e. as close to constant1, 2 and 10 as possible.
If any could direct me to a possible solution to this question that would be great. I am new to matlab and unfamiliar with how to solve a problem like this.
0 Comments
Accepted Answer
Jon
on 5 Oct 2020
If you have the optimization toolbox you can use fmincon for this. Please type doc fmincon on the command line for further details
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!