Costumize Non Linear model LibraryI am trying to insert into the model below into the library according to the pdf. Modeling and Multivariate methods (pag 267).
{//Gompertz 2 stage
Locale:get("Gompertz 2 stage"),
Expr(Parameter({Y1=0.01, k1=0.01, P1=0.01, Y2=0.01, K2=0.01, P2=0.01}, Y1 * Exp(-Exp(((K1 * Exp()) / Y1) * (P1 - :X))) + Y2 * Exp(-Exp(((K2 * Exp()) / Y2) * (P2 - :X)))),
lowx = 0; highx = 31; lowy = 0; highy = 1000},
I open the NonlinLib.jsl file as a script via File\Open (ctrl+O) and then copy/past the lines above into the Listofmodellist#. I then try to run it or save it but It does not work. When saving it shows "I/O Problem File open on write mode". When running it shows: "Unexpected "}". Perhaps there is a missing "," or ")".
Trying to parse arguments of function "Expr".
Line 391 Column 53: ...1; lowy = 0; highy = 1000►},..."
I do I open this script and be able to edit it ?
Thanks
Ivo
Re: Customize Non Linear model LibraryThe script kind of runs but it does not achieve the required results.
I believe I have to set some constrains or may be I am doing something wrong.
I have just provided a reply to a member of staff that had written previously on the issue.
At the moment I am trying to run the fitting manually but it does not work:
* The number of iteration is being exceeded ( I even tried 1000 iterations);
* And/or the resulting parameter estimates are enormous or negative, which does not make sense.
I can run the model on Excel using the solver. When I do this my criteria is to minimize the Loss function and I achieve a convergence of R2 =0.99. I can't achieve the same results with JMP.
Re: Costumize Non Linear model LibraryDoes your script work on run now? Are you able to do the required nonlinear fit?
Maybe you don’t need to save this model to the library. If this is part of a scripted solution maybe you can just use the model definition in your script.
Re: Costumize Non Linear model LibraryI will check this with our IT administrator. I am not able to save anything to this folder via JMP.
Re: Costumize Non Linear model LibraryThat sounds more like you have a problem with permissions for that folder, possibly due to controls from your IT. Are you able to save anything to that folder?
Re: Costumize Non Linear model LibraryOK. I have actually used with the bracket in the end but still don't have the rights to save into the NonlinLib.jsl. It keeps saying "I/O Problem File not open on write mode".Re: Costumize Non Linear model Library{//Gompertz 2 stage
Locale:get("Gompertz 2 stage"),
Expr(Parameter({Y1=0.01, k1=0.01, P1=0.01, Y2=0.01, K2=0.01, P2=0.01}, Y1 * Exp(-Exp(((K1 * Exp()) / Y1) * (P1 - :X))) + Y2 * Exp(-Exp(((K2 * Exp()) / Y2) * (P2 - :X))))),
lowx = 0; highx = 31; lowy = 0; highy = 1000},
You were missing a ")" at the end of the formula definition.
Tip: when you have problems like this check that all your open brackets have a matching close bracket.
Hope that helps,
Phil