Take the 2-minute tour ×
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

I'm working with C# and I start being bored writing optimization algorithm. Do you know of any free library containing this sort of algorithms. In particular I'm cutrently working with Semidefit program.

share|improve this question
add comment

4 Answers 4

You can use https://projects.coin-or.org/Clp

Other options:
http://sourceforge.net/projects/lpsolve/
and in R
http://cran.r-project.org/web/packages/lpSolve/index.html

They all solve pure linear, integer and mixed problems

share|improve this answer
1  
I heard Coin is very good. –  quant_dev Apr 14 '11 at 21:32
    
Hmmm. the R libraries are not very easy to use from C#... –  SRKX Apr 15 '11 at 13:15
add comment

The GNU Scientific Library or GSL contains a few different varieties of optimizer. They work pretty well and have a relatively good interface. Their derivative-aware routines are a bit lacking in bounded optimization features compared to NAG, though.

share|improve this answer
3  
GSL has no constrained nonlinear optimizers which use derivatives. –  quant_dev Apr 14 '11 at 21:31
add comment

I haven't had the time to try them personally, but if I were you I'd try The Solver Foundation or maybe you can find something useful within these libraries.

What I did was to compile a MATLAB algorithm and used the produced DLL.

UPDATE: I read yesterday in the Wilmott Magazine that the NAG Library is also available for .Net now. Again, I haven't used it and I don't know if you're looking for something open-source, but apparently this one is good.

share|improve this answer
1  
NAG is not free. Very good and lots of value for the price, though. –  quant_dev Apr 14 '11 at 21:33
    
@quant_dev: Do you know how much it costs for .Net? I couldn't find an answer on the site. –  SRKX Sep 30 '11 at 14:58
1  
They don't have a fixed price. Call them. It depends on the number of cores it would be used on. –  quant_dev Oct 2 '11 at 11:22
add comment

You can also have a look at ALGLIB or DotNumerics.

It would help though if you clarified what kind of optimization problem you have or what kind of algorithm you look for. And if by free you mean GPL or something more like MIT?

share|improve this answer
    
As said I'm currently working with semiefit program which can be solved by interior point methods. By free I mean free and usable on windows. –  Zarbouzou Apr 14 '11 at 8:59
    
Then I assume you mean free as in free beer. ;-) –  Karol Piczak Apr 14 '11 at 9:07
    
The OP probably doesn't want to pollute the code license with GPL. –  quant_dev Apr 14 '11 at 21:32
    
In that case I'm afraid I don't know of any free, non-GPL, explicitly C# solutions. –  Karol Piczak Apr 14 '11 at 21:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.