MathGroup Archive 2007

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

Search the Archive

Re: MathLink: letting Mathematica do the hard work


alexxx.magni at gmail.com wrote:
> Hi everybody,
> 
> In a C program I'm writing, I need to perform a traveling-salesman-
> type calculation.
> Knowing that Mathematica surely optimized it better than I could be
> able to, I wanted to see if it exists a way to call the kernel from my
> C program, pass to it my list of vertices, and get the result.
> 
>>From what I found until now it seems to me that MathLink is mostly
> used in the opposite direction: to call external programs from
> Mathematica.
> Do you know if the opposite is possible?
> 
> Thanks!
> 
> Alessandro Magni

A good place to start are the following sections from the Mathematica 
Book 5th Edition:

"2.13.9 Two-Way Communication with External Programs"
http://documents.wolfram.com/mathematica/book/section-2.13.9

"2.13.12 Manipulating Expressions in External Programs"
ttp://documents.wolfram.com/mathematica/book/section-2.13.12

"2.13.14 Running Mathematica from Within an External Program"
http://documents.wolfram.com/mathematica/book/section-2.13.14

Regards,
Jean-Marc


  • Prev by Date: Re: a beginner's question
  • Next by Date: Re: StringReplace
  • Previous by thread: MathLink: letting Mathematica do the hard work
  • Next by thread: ListConvolve on TIFF images