This repo hosts a script in which optimization with R has been used to build a typical Forward Curve.
These curves have extensive application in finance and more specifically in the context of Futures Contracts for various commodities such as crude oil, LPG, etc.