       nnum and NumberQ

• To: mathgroup at smc.vnet.net
• Subject: [mg128527] nnum and NumberQ
• From: Meriens <meriens at gmail.com>
• Date: Sun, 28 Oct 2012 23:40:29 -0400 (EDT)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• Delivered-to: l-mathgroup@wolfram.com
• Delivered-to: mathgroup-newout@smc.vnet.net
• Delivered-to: mathgroup-newsend@smc.vnet.net

```Hi ti everyone,
I've got a numerical function that I build for calculation of difference of
pression in Psat curve.
My function is quite long and I don't want to bore you with it, but it's
depending on 6 parameters.
Now I'm trying to minimize my function named effe.
the result is that effe has not a numerical value, but my check with the
numbers that shows is not the same.
Any suggestions?

NMinimize[{effe,
a0 >= 499 && a0 <= 700 && a1 >= -5*10^-3 && a1 <= -2*10^-3 &&
a2 >= -4*10^-6 && a2 <= -10^-6 && b0 >= 2*10^-2 && b0 <= 8*10^-2 &&
b1 >= -5*10^-4 && b1 <= -1*10^-4 && b2 >= 5*10^-8 &&
b2 <= 10*10^-8}, {a0, a1, a2, b0, b1, b2}]
NMinimize::nnum: The function value effe is not a number at
{a0,a1,a2,b0,b1,b2} =
{694.934,-0.00307734,-2.04923*10^-6,0.0758478,-0.00036913,8.10076*10^-8}. >>

NumberQ[effe[
694.934177451691`, -0.0030773406164581736`, \
-2.0492319442681097`*^-6,
0.07584781919034586`, -0.00036913014921087793`,
8.10075813567283`*^-8]]
True.