Determining the optimal capital structure and financing mix for a company, including debt and equity financing.