Serving the Quantitative Finance Community

 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Improve performance of Excel Solver and alternatives in C++

April 9th, 2013, 1:20 pm

QuoteOriginally posted by: daveangelin which case OLS isn't going to work. You might need something like Levenberg Marquardt (levmar).LevMar is in alglib. C# version is easy to integrate in Excel via UDF.
 
User avatar
daveangel
Posts: 5
Joined: October 20th, 2003, 4:05 pm

Improve performance of Excel Solver and alternatives in C++

April 9th, 2013, 3:14 pm

QuoteOriginally posted by: CuchulainnQuoteOriginally posted by: daveangelin which case OLS isn't going to work. You might need something like Levenberg Marquardt (levmar).LevMar is in alglib. C# version is easy to integrate in Excel via UDF.I couldn't get that sucker to work for some reason. I managed to find a Fortran implementation online which I translated into VBA. seems to work fine.
knowledge comes, wisdom lingers
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Improve performance of Excel Solver and alternatives in C++

April 9th, 2013, 4:33 pm

QuoteOriginally posted by: daveangelQuoteOriginally posted by: CuchulainnQuoteOriginally posted by: daveangelin which case OLS isn't going to work. You might need something like Levenberg Marquardt (levmar).LevMar is in alglib. C# version is easy to integrate in Excel via UDF.I couldn't get that sucker to work for some reason. I managed to find a Fortran implementation online which I translated into VBA. seems to work fine.Was it 1) installation stuff (e.g. Alglibnet2.dll)2) example/app code?
Last edited by Cuchulainn on April 8th, 2013, 10:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Improve performance of Excel Solver and alternatives in C++

April 9th, 2013, 4:49 pm

Here is a project. I put in alglib .cs files (rough and ready) but .dll is better methinks. hth (2 Levmar tes files, 1 of which not in build process).I just ran it using bespoke 101.cs file.My, last time I used Fortran was Medusa CAD (nice).I managed to find a Fortran implementation online Can you provide link pls?
Last edited by Cuchulainn on April 8th, 2013, 10:00 pm, edited 1 time in total.
 
User avatar
skullx
Posts: 0
Joined: January 27th, 2012, 5:43 pm

Improve performance of Excel Solver and alternatives in C++

April 10th, 2013, 5:54 am

Thank you, Dave! Sorry for my lack of knowledge.As a starting point I decided to take this one from quantcodeAfter I succeed with it, I'll try to move calculations to C++ dll.
 
User avatar
daveangel
Posts: 5
Joined: October 20th, 2003, 4:05 pm

Improve performance of Excel Solver and alternatives in C++

April 10th, 2013, 6:15 am

lm fit in C sorry I must have been confused thinking it was FORTRAN.
Last edited by daveangel on April 9th, 2013, 10:00 pm, edited 1 time in total.
knowledge comes, wisdom lingers
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Improve performance of Excel Solver and alternatives in C++

April 10th, 2013, 8:48 am

QuoteOriginally posted by: daveangellm fit in C Seemingly, this does not support constraints.Have not tried it , but alglib has LM C++ with constraints.
Last edited by Cuchulainn on April 9th, 2013, 10:00 pm, edited 1 time in total.
 
User avatar
daveangel
Posts: 5
Joined: October 20th, 2003, 4:05 pm

Improve performance of Excel Solver and alternatives in C++

April 10th, 2013, 9:04 am

QuoteOriginally posted by: CuchulainnQuoteOriginally posted by: daveangellm fit in C Seemingly, this does not support constraints.Have not tried it , but alglib has LM C++ with constraints.yes - you are right no constraints.
knowledge comes, wisdom lingers