Say you have lots of oil (like 2e11 barrels or more) and other people have lots (just not as much) of oil. What do you do to maximize profits over the lifetime of your oil sales at uncertain prices?
You have two concerns: getting a not-too-low price for your oil, and selling your oil before people switch to alternative energy sources. To get a not-too-low price, you join together with as many other oil producers as possible and collude to restrain production to keep prices high, but not high enough to make people en masse seek out alternative energy sources. Sometimes this cartel will work, sometimes it won't; but it's better than just liquidating your holdings.
To sell your oil before people make The Switch, you want to:
Just prior to the end, you should alert the rest of the world that oil supplies seem dangerously low. This lead time should not be long enough so as to allow people to transition easily. That way, you can use all the money you got from oil sales to purchase global assets on the cheap when people freak out about making The Switch. The lead time should also not be too short as to cause a complete global economic meltdown, as upset people might take your assets.