I obtained the fitted model from the image using the following code:
kguess = 3;
nguess = 1;
data = {{0.010000000000000004`, 0.`}, {0.029999999999999995`,
0.1835304721030043`}, {0.10000000000000002`,
0.49498712446351933`}, {0.3`,
0.8998025751072961`}, {10.000000000000002`,
0.9641931330472102`}, {100.00000000000004`,
1.0063948497854078`}, {10.000000000000002`,
1.0244935622317597`}, {30.000000000000004`,
1.0407467811158797`}, {10.000000000000002`,
1.0478068669527896`}, {999.9999999999998`,
1.0515150214592275`}, {30.000000000000004`,
1.0598712446351932`}, {30.000000000000004`,
1.0602017167381972`}, {299.99999999999994`,
1.067`}, {999.9999999999998`, 1.069420600858369`}, {1.`,
1.0807639484978542`}, {100.00000000000004`,
1.0938369098712446`}, {3.0000000000000004`,
1.1059270386266093`}, {299.99999999999994`,
1.107145922746781`}, {2999.9999999999977`,
1.1216223175965667`}, {10000.00000000001`,
1.1313605150214594`}, {100.00000000000004`,
1.1466051502145922`}, {299.99999999999994`,
1.1504721030042917`}, {999.9999999999998`, 1.171429184549356`}};
nlm = NonlinearModelFit[data, (1 - Exp[-k*((t)^n)])*dhnematicmax, {{k, kguess}, {n, nguess}}, t]
If I know that the variable k
(which is equal to 3.90743 in this example) from the fitted model is equal to k = kref*Exp[(-E/8.314)*((1/360.15) - (1/353.15))];
. How can I find the unknown variables kref
and E
in Mathematica using NonlinearModelFit
or any other function?
k
but notkref
andE
. (Note thatE
is a reserved word and you should avoid uppercase letters for variables in Mathematica. Alsodhnematicmax
is not defined but I suspect has a value of 1.2.) Supposek = a + b
. Just knowingk
there is an infinite set of values ofa
andb
that satisfyk = a + b
. $\endgroup$k
bykref*Exp[(-E/8.314)*((1/360.15) - (1/353.15))]
.(I now change "E" as "e") $\endgroup$NonlinearModelFit
?. I triednlm = NonlinearModelFit[data,(1 - Exp[-kref*Exp[(-e/8.314)*((1/360.15) - (1/353.15))]*((t)^n)])*1.2, {{kref, krefguess}, {e, eguess,0<e<1000}}, t]
but it did not work $\endgroup$