How to find range for each variable for constrained nonlinear multivariable function in Matlab?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have 4 inequality equations(constraints) with 3 variables(b, c, p). I want to compute these equations and get the range of each variable that satisfies all equations with Matlab.
Here are my equations. (lt: less equal than, gt: greater equal than) ============================================================
1. 2*p*c lt b < 3*p*c
2. 1 lt c gt b
3. 0 lt p gt 1
4. (1-(1-(c/b))^2000000)^c lt 0.05
============================================================
I tried to find the answer and found some functions like fmincon, fminbnd, fminmax, and so on, but I think that there are not fit for my case.
I tried to solve using solve and fzero, but it returns what I do not expect.
Could you please help me? Could you tell or suggest me a function that I need to use and how I can use?
Thanks,
Jung
0 commentaires
Réponses (1)
Walter Roberson
le 29 Août 2011
Are you sure that you want "0 lt p gt 1" ? Isn't that the same as "p gt 1" meaning (according to your key) (p >= 1) ?
Does "1 lt c gt b" mean that (1 <= c and 1 >= b), or does it mean that (1 <= c and c => b) ?
2 commentaires
Walter Roberson
le 29 Août 2011
For "2*p*c <= b < 3*p*c" do you mean "2*p*c <= b and b < 3*p*c" ? (And if so, to cross-check, do you mean the strict inequality at the upper end, or do you mean <= ?)
Voir également
Catégories
En savoir plus sur Optimization dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!