Search code examples
c#visual-studio-2010linear-programmingms-solver-foundation

Microsoft Solver Foundation Variable limitation


Hi I am using Microsoft Solver Foundation to solve Linear Programming problem, but the variable has exceeded 1000, and it prompts following error: {"Model size limit has been exceeded for this version of the product. Please contact Microsoft Corporation for licensing options.\r\nLimits: NonzeroLimit = 100000, MipVariableLimit = 2000, MipRowLimit = 2000, MipNonzeroLimit = 10000, CspTermLimit = 25000, Expiration = none."}

Is there a better solver that is efficient and can accept more than 1000 variables that could work in Visual Studio IDE? Thanks.


Solution

  • Not sure what you mean exactly by: the solver "could work in Visual Studio IDE?"

    However, if you want a large-scale (open-source) LP solver with a functional C# interface, I would recommend lp_solve, downloads are here. The solver is written in C/C++, but there is a comprehensive and easy-to-use C# wrapper which uses P/Invoke to call the various lpsolve methods.