0

I am new to MS Solver Foundation and am trying to run the CompactQuasiNewtonSolver from C# but I am getting an error.

The only code I have inside my main method is this:

CompactQuasiNewtonSolver solver = new CompactQuasiNewtonSolver(1);

but I get the following error:

Unhandled Exception: System.MissingMethodException: Method not found: 'Void Microsoft.SolverFoundation.Solvers.CompactQuasiNewtonSolver..ctor(Int32)'. at VAR.Program.Main(String[] args)

Anyone has an idea why?

Charles
  • 50,943
  • 13
  • 104
  • 142

1 Answers1

0

It looks like you are invoking the CompactQuasiNewtonSolver incorrectly. You should probably just use the constructor that takes zero arguments as described in the MSDN docs.