This project has moved. For the latest updates, please go here.

How to use a solver

May 23, 2011 at 10:01 AM

Hi everyone


In my project I'm currently using Mathematica Mathlink to solve minimizations like this:

Minimize[0.6(1 - D1)^2 + 0.4(4 - D2)^2, 0.4(4 - D1)^2 + 0.6(1 - D2)^2 <= 6 && 0.3(-1 - D1)^2 + 0.7(0 - D2)^2 <= 6, {D1, D2}]

This however requires Mathematica to be installed on the computer, so I would like to change to Math.NET

Anyone knows what would be the equivalent in Math.NET?



Thanks in advance

May 23, 2011 at 9:10 PM

Hi M00se,

As far as I understand Mathematica, this is specific instance of the more general class of quadratic minimization problems with quadratic constraints. Math.Net does not provide out of the box numerical optimization routines. You probably want to have a look at Microsoft Solver Foundation (available for free:

Cheers, Jurgen

May 24, 2011 at 5:50 AM


I'm going to try the Microsoft Solver Foundation, seems also pretty handy.