Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
ggarrett
Posted - 03/17/2015 : 11:28:05 AM Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 9.0.0 (64-bit) SR2 b87 Operating System: Windows 7 64 bit
I've attached the code below. It compiles fine, but doesn't evaluate. A previous version I had of it did evaluate successfully but I get a similar result. When I run the code I get no fit to the data, y remains fixed at y0. If anyone can give me a hand I would be grateful.
//Free functions for Runge–Kutta suite d02ppc(&opt);
return true; }
//---------------------------------------------------------- // void _nlsfBlackmondFit( // Fit Parameter(s): double k1, double k2, double D, double CatT, double y0, // Independent Variable(s): double t, // Dependent Variable(s): double& y) { // Beginning of editable part NLFitContext *pCtxt = Project.GetNLFitContext(); if ( pCtxt ) { static vector vX, vY; static int nSize;
BOOL bIsNewParamValues = pCtxt->IsNewParamValues(); // If parameters were updated, we will recalculate the ODE result. if ( bIsNewParamValues ) { //Initial and final values of the independent variable double tstart = 0, tend = 69.3, tinc; int nout = 300; //Number of points