Re: LatticeReduce problem
- To: mathgroup at smc.vnet.net
- Subject: [mg59029] Re: LatticeReduce problem
- From: dh <dh at metrohm.ch>
- Date: Wed, 27 Jul 2005 01:24:52 -0400 (EDT)
- References: <dc4s9m$10a$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Theo, LatticeReduce wants Integers or Rationals as Input. On the other hand, NMinimize works with Reals. sincerely, Daniel dto_mba at skynet.be wrote: > dln[x_, y_] := Module[{lr}, > lr = LatticeReduce[{x, y}]; > Return[Norm[lr]] > ] > NMinimize[{dln[{x1, x2}, {y1, y2}], > MatrixRank[{{x1, x2}, {y1, y2}}] ? 2, {x1, x2, y1, y2} \[Element] > Integers}, {x1, x2, y1, y2}, Method -> NelderMead] > > The message I get is : LatticeReduce::latm: > Matrix contains entry that is not rational. > > Apparently x and y have no value when it comes to LatticeReduce. > > Who can help me ? > > Best, > > Theodor Schlickmann > > > > >