Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Error in Compile

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119412] Error in Compile
  • From: juan flores <juanfie at gmail.com>
  • Date: Thu, 2 Jun 2011 07:17:00 -0400 (EDT)

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