Re: solution to undetermined equation



On Nov 30, 4:52 am, "Shama " <shammashah...@xxxxxxxxx> wrote:

i have a set of undetermined linear equations with
unknowns 13 and set of equation=3
my equation formulates as

Ax=min

with the constraint that the sum of unknowns equals the
number of unknowns in my case x1+.....x13=13

is it possible in matlab

I assume you mean

1. Given A with size(A) = [3 13]
2. Find x such that

||A*x|| = min

subject to

sum(x) = 13.

Is that correct?

If you have the Optimization or Genetic Toolbox,
check the documentation(fmincon in the Opt Tbx comes to
mind).

Otherwise you could loop over the 13 variables:
Use the constraint to eliminate xi and obtain the
minimum right singular vector of the corresponding
Ai with size [3 12].
Finally, choose the solution that minimizes ||Ax||.

Hope this helps.

Greg

.



Relevant Pages

  • Re: solution to undetermined equation
    ... with the constraint that the sum of unknowns equals the ... mathematically valid question. ...
    (comp.soft-sys.matlab)
  • Re: solution to undetermined equation
    ... with the constraint that the sum of unknowns equals the ... vector and b is a 12 element vector with some values (its ... constraint above, given x1* x2*,... ...
    (comp.soft-sys.matlab)