MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: LatticeReduce problem


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
> 
> 
> 
> 
> 


  • Prev by Date: Re: Freeware Mathematica packages(don't know the exact term)
  • Next by Date: Re: Why won't Horner[] work?
  • Previous by thread: Re: LatticeReduce problem
  • Next by thread: Re: Front End Memory usage while exporting many graphics