This project has moved. For the latest updates, please go here.

Bounds on MPFit

Oct 10, 2012 at 12:26 AM

I'd like to add a non-negative constraint to my fit which I believe would be set in pars[].limit[] within the MPFit.Solve method.  I don't believe this is implemented within the vts and I would need to modify the optimizer Solve method to set this.  (Either hard code non-negative contraints there or add as parameter passed to method.)  Is this correct?

Coordinator
Oct 12, 2012 at 5:45 AM

That is correct - we have not implemented that in our examples of MPFit.Solve usage. I believe it is fully enabled in the C# MPFit implementation, however. There is an example of usage in the "TestGaussFix()" method of the csmpfit test project here:

http://csmpfit.codeplex.com/SourceControl/changeset/view/d0976d59c551#src%2fMPFitLib.Test%2fTestMPFit.cs