[2x1^2+2x1​x2+x2^2-10​x1-10x2]

11 vues (au cours des 30 derniers jours)
jiya quin
jiya quin le 13 Déc 2015
Commenté : Guillaume le 13 Déc 2015
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
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.
jiya quin
jiya quin le 13 Déc 2015
----> this is what i am getting <----

Connectez-vous pour commenter.

Réponses (1)

Guillaume
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
Walter Roberson le 13 Déc 2015
That image is completely unreadable, not even close to being readable.
Guillaume
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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by