I can't make LPSolvePlugIn for MSF work on a 64 bit OS. (inside a c# dll hosted called from asp mvc 3 application)
Is there a specific version for this? Should I build my application targeting x86? Should I rebuild the solver plugin from source code to target x64?
I'm at a loss, there is not much documentation on the plugin, and the latest code seems to target MSF 2.0.7 (i currently have 3.0.1 or 3.0.2)
Any help would be appreciated. I'll check on monday and add more info if needed.
Thanks
I finally worked it out.
I got my hands on MSF standard 3.0.2 64bits. Compiled the LPSolvePlugin code (from http://www.peno.be/MSF/) in a 64bit machine using lpsolve55.dll for 64 bits (got it from http://sourceforge.net/projects/lpsolve/)
Copied the lpsolveplugin.dll and the lpsolve55.dll to the plugins folder of msf
added the following in the web.config of my webservice (can be added to the app.config of a desktop application if necesary)
<configSections>
<section name="MsfConfig"
type="Microsoft.SolverFoundation.Services.MsfConfigSection, Microsoft.Solver.Foundation, Version=3.0.2.10889, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
allowLocation="true"
allowDefinition="Everywhere"
allowExeDefinition="MachineToApplication"
restartOnExternalChanges="true"
requirePermission="true" />
</configSections>
<MsfConfig>
<MsfPluginSolvers>
<MsfPluginSolver name="LpSolveLP"
capability="LP"
assembly="LpSolvePlugIn.dll"
solverclass="SolverFoundation.Plugin.LpSolve.LpSolveSolver"
directiveclass="SolverFoundation.Plugin.LpSolve.LpSolveDirective"
parameterclass="SolverFoundation.Plugin.LpSolve.LpSolveParams" />
<MsfPluginSolver name="LpSolveMIP"
capability="MILP"
assembly="LpSolvePlugIn.dll"
solverclass="SolverFoundation.Plugin.LpSolve.LpSolveSolver"
directiveclass="SolverFoundation.Plugin.LpSolve.LpSolveDirective"
parameterclass="SolverFoundation.Plugin.LpSolve.LpSolveParams" />
</MsfPluginSolvers>
</MsfConfig>
and it worked.
Hope it helps!