Applying the Nonlinear Least Squares Method to Minimize the Objective Function to Find the Parameters of the Equation
3 views (last 30 days)
Show older comments
The liquid-liquid equilibrium data were fitted using the NRTL equation. The equation parameters of NRTL are derived from the experimental data.
below is my code:
clc,clear
options=optimset('MaxIter',4000,'MaxFunEvals',2000000,'algorithm','levenberg-marquardt');
b0=[0,0,0,0,0,0];
[b,gamma1,gamma2,gamma3,gamma4,gamma5,gamma6]=lsqnonlin('NRTL',b0,[],[],options);
Although the code gives the result, the result is not what I want. And the format of the output gamma is also wrong. It should be a matrix of the same order as x1, but it has become something I don't understand. Can someone please give a reason? It would be best to give some solutions. Thanks!
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!