Title: A simultaneous solution to the real and financial decisions of the firm under uncertainty