Fitting a hyperbolic curve to a set of data using Qi, Di, and b
7 次查看(过去 30 天)
显示 更早的评论
Hi,
First, I do not have the optimizaiton toolbox, the only toolbox I have is that stats box.
I have a vector with 1000 numbers in it which are on a general decline. The actual position of the number in the vector is a date and all the dates are evenly spaced. For example with vector [10 9 7 5 3], 10 is oil production in month 1, 9 is oil production in month 2, 7 is oil production in month 3... The three variables I need to adjust are qi (initial oil production and it will be >= the qi in the data), b (ranging from .001 to 1.5) and Di (nominal decline which can range from 1 to 200%). I know I could do this using a tripple for loop and vary Qi, b, and Di and use whatever combination yields the smallest r-squared total but I'm sure that's not the best way of doing it. Any help is appreciated.
Thanks, -Andrew
0 个评论
回答(1 个)
Alan Weiss
2014-3-4
You might want to try fitnlm to fit a nonlinear model. You could also try the base MATLAB method of curve fittting via optimization. I am not sure if either of these allow you to include bounds on your variables, but at least it is a place to start.
Alan Weiss
MATLAB mathematical toolbox documentation
1 个评论
SUBHRAJYOTI SUBHRAJYOTI
2020-8-8
How to determine Estimate Ultimate Recovery(EUR) for a given set of oil wells data ???
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!