Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Given the following function

$y=(x_1-2)^2+(x_2-3)^2+(x_3-5)^2$

and the following conditions

$x_3-x_2\geq2$

$x_2-x_1\geq2$

How do I find $x_1$, $x_2$ and $x_3$ such that the $y$ is minimum.

I need a general idea how to solve such equations not just this specific one. Let me know if I can improve the question (e.g. tags). Thanks!

share|improve this question

1 Answer 1

Since $y \ge 0$ potential minimum would be $y = 0$ which can be achieved that the point $x_1 = 2$, $x_2 = 3$, $x_3 = 5$. Since this solution satisfies the inequalities the minimum is $0$ and it is achieved at point $(2, 3, 5)$. For more general idea you might like to have a look at the method of Lagrange multipliers, especially this.

share|improve this answer
    
sorry I made an error in the question, it should have been more or equal to 2 (fixed now). In this case the answer I believe is (1, 3, 5). I'll try and figure out how to solve such eqs using the link you provided.. thx –  vrepsys Nov 27 '13 at 15:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.