Re: Minimize
- To: mathgroup at smc.vnet.net
- Subject: [mg93569] Re: [mg93562] Minimize
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Sat, 15 Nov 2008 06:02:35 -0500 (EST)
- References: <gfgqib$dm1$1@smc.vnet.net> <gfh3ca$g1d$1@smc.vnet.net> <200811140209.VAA16497@smc.vnet.net> <200811141136.GAA13071@smc.vnet.net>
On 14 Nov 2008, at 20:36, Artur wrote: > Dear Mathematica Gurus, > What Mathematica procedure to use to minimize expotential finction > e.g. > Minimize[Abs[3^d + 5^f - 2^7], {d, f}] > where we can push: d and f are both Integers > > NMinimize[Abs[3^d + 5^f - 2^7], {d, f}] > Mathematica answer is: > {2.66454*10^-14, {d -> 2.03248, f -> 2.96773}} > > good answer is: > {d,f}={1,3} > > Best wishes > Artur > One possible approach is to read the documentation. NMinimize[{Abs[3^d + 5^f - 2^7], Element[d | f, Integers]}, {d, f}] {0., {d -> 1, f -> 3}} Andrzej Kozlowski
- References:
- Re: Model the surface of an ellipsoid
- From: Mayneord <xrayspectrum@googlemail.com>
- Minimize
- From: Artur <grafix@csl.pl>
- Re: Model the surface of an ellipsoid