Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

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


  • 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