[2x1^2+2x1x2+x2^2-10x1-10x2]
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
1. Use MATLAB Optimization Tool to solve the following problem: minimize [2x1^2+2x1x2+x2^2-10x1-10x2]
subject to [x1^2+x2^2≤500] and [5x1-x2 ≤ -4] .
2. Please hand-check all the Kuhn-Tucker conditions for your answer.
I tried to do it but it keeps giving me error message: Error: The expression to the left of the equals sign is not a valid target for an assignment. Error in bineq: Error: Unexpected MATLAB expression. Error in lb: Undefined function or variable 'L'.
2 commentaires
Guillaume
le 13 Déc 2015
Well, there is an error in your code. We can't guess what you wrote, so show us your code.
Réponses (1)
Guillaume
le 13 Déc 2015
Assuming that 2x1^2+2x1x2+x2^2-10x1-10x2 actually means 2*x1^2 + 2*x1*x2 + x2^2 - 10*x1 - 10*x2, multiplication signs are not optional. Otherwise, I've no idea what your equation mean.
5 commentaires
Walter Roberson
le 13 Déc 2015
That image is completely unreadable, not even close to being readable.
Guillaume
le 13 Déc 2015
@jiya, we're covering basic maths here. When you write
2a
It means,
2*a
The multiplication, *, is simply elided. The elision is not optional on a computer.
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
