MathGroup Archive 2011

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

Search the Archive

Error in Compile


Hi all,

I was trying to compile this function, to see how much faster it is
able to run.

Clear[mcf]; mcf =
 Compile[{},
  NMinimize[{(1 - x)^2 + 100 (y - x^2)^2, -97.` x - 41.` y + 358 >= 0,
     x - y + 140.` >= 0,
    97.` x + 41.` y - 220 >= 0, -x + y - 2.` >= 0}, {x, y}]]

The compiler gives the following error

Compile::cptype: List is not supported for type True|False; evaluation
will use the uncompiled function. >>

I am using Mathematica 7 in a Mac with snow leopard.

Any ideas?

Best regards,

Juan Flores


  • Prev by Date: Aw: Re: what is the command to output superfunction?
  • Next by Date: Re: Mapping to Create Nested Loops
  • Previous by thread: Aw: Re: what is the command to output superfunction?
  • Next by thread: Re: Error in Compile