[Date Index] [Thread Index] [Author Index]
Re: Error in Compile
It compiles without a problem on my Mathematica 8/Win7-64. from the Compile doc page: "Compile handles numerical functions, matrix operations, procedural programming constructs, list manipulation functions, and functional programming constructs, etc. " Does NMinimize belong to this list? "Ordinary Mathematica code can be called from within compiled code. Results obtained from the Mathematica code are assumed to be approximate real numbers, unless specified otherwise by the third argument of Compile. " NMinimize doesn't return reals, but a list containing a number and a list with a rule.