Hi,
the matrix A is 5x5. I would like to find a solution to:
x'Ax==1, where x'=(x1,x2,x3,x4,x5) and x=(x1,x2,x3,x4,x5)'.
I have the following constraints:
x1+x2+x3+x4+x5=1
0<x(i)<0.25
I would like to find x1, x2, x3, x4 and x5.
Thank you very much.

4 commentaires

Jan
Jan le 1 Avr 2014
What have you tried so far?
Jhon Dukester
Jhon Dukester le 1 Avr 2014
I am kind of stock there. I have: lb= repmat(0,size(x)) ub=repmat(0.25,size(x))
Than, I don't know what to do.
Roger Stafford
Roger Stafford le 2 Avr 2014
You have five variables to solve for but only two equations. In spite of your inequality constraints there will in general be a three-dimensional infinite continuum of solutions. You need three more equations to reduce this system to one possessing a only a finite set of solutions.
As it stands it is not a well-formulated problem unless you merely wish to describe the boundaries of such a three-dimensional infinitude. It is analogous to a problem where one linear equation is given in three variables which restricts you to a certain two-dimensional plane and then giving three inequalities which confine you to the interior of a triangle in that plane. You would be asking for the "solution" when the infinitely many points within the triangle all satisfy your conditions.
Jhon Dukester
Jhon Dukester le 4 Avr 2014
Ok, thank you!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Computational Geometry dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by