Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Frank
Posts:
115
Registered:
12/27/07


Re: Solving equation
Posted:
May 24, 2012 12:00 PM


"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jplfab$sad$1@newscl01ah.mathworks.com>... > > > I suggest you see if ?fmincon? can do what you want. I don't have much experience with ?fmincon? so I won't attempt an example. > > No, fmincon is suitable not for binary optimizaton. > > > > > As to the solution being unique, that likely depends on the structure of A. You?ll have to experiment with it. > > No again; a reasoning that is true for real variables is no longer true for discrete variables. > > Bruno

I got the impression from the OP that A, x, and b were all _complex_ and not necessarily discrete or binary. The constraint is that the _magnitude_ of the individual elements of the complex xvector, abs(x(k)) = 1 for all k. Thus my reply.
BTW, you?ve posted a number of elegant programming solutions, some of which I've found extremely useful. I suggest you create a function from your post in thread #319426 and upload it to FEX. I've seen the same question posted a few times since, so there seems a need for it.



