

This gives out a certain value for the function f under the restriction that we have a maximum for g. This means that the excel solver should first use a value for a and find the value x that maximizes the function g given the value of a. But at the same time I want to maximize another function g for the parameter x that depends on a again using the excel solver (This is in principle the envelope theorem). I want the solver to find the value of a that minimizes f. To be more precise imagine I want to minimize a function f for the parameter a, i. In other words I want to minimize a target function for a parameter a under the condition that another function is always maximized for the parameter a. When you run Solver with these parameters, it produces the solution shown in the following figure which has a total yield of 9.25%.I want to use the excel solver to solve a minimization problem and at the same time maximize another function again using the solver from excel.


We’ve entered 1,000,000 in the changing cells as the starting values. Select GRG Nonlinear from the Select a Solving Method drop-down list. Select the Make Unconstrained Variables Non-Negative check box. Click this article to know more about adding constraints. These constraints will be showed in the Subject to the Constraints field. Select cell $C$5 to $C$9 to fill the field By Changing Variable Cells. Select the radio button for the Max option in To control. Read More: Excel Solver – Introducing you with a simple example Step 1:įill Set Objective field with this value: $D$12. This dialog box appears when you choose Data ➪ Analysis ➪ Solver. Use the following steps to set up the Solver Parameters dialog box. Excel displays the Add Constraint dialog box. Use the Set Objective box, the To group, and the By Changing Variable Cells box to set up Solver as described above. Excel opens the Solver Parameters dialog box.
EXCEL SOLVER EXAMPLES OPTIMIZATION HOW TO
All investments should be positive or zero. Here’s how to run Solver with constraints added to the optimization: Choose Data Solver.The total amount invested is $5,000,000.Unsecured loans should make up no more than 25% of the portfolio.This constraint is represented as D14>=.15 Car loans should make up at least 15% of the portfolio.This constraint is represented as C5>=C6*3 The reason is: used car loans are riskier investments. The amount that the credit union will invest in new-car loans must be at least three times the amount that the credit union will invest in used-car loans.How this amount will be allocated is subject to the following constraints: The credit union is going to invest $5 million in various sectors. Read More: Excel Solver with a Case Study ĭownload Working File Optimizing the investment portfolio using Solver The following figure shows a workbook set up for this problem. These regulations and restrictions are this problem’s constraints. This hypothetical credit union must follow some regulations regarding its investments, and the board of directors has imposed some other restrictions. From the Add-ins dialog, check the box for Solver Add-in. Look down to the bottom right side for a field called Manage: Select Excel Add-ins from the drop-down list. The credit union also distributes part of the return on these investments to the members in the form of dividends, or interest on their deposits. In the Excel Options dialog, click Add-ins from the left menu.

The credit union is a financial institution that takes deposits from members and invests them in loans to other members, bank CDs, and other types of investments. In our example, we have involved a hypothetical credit union. Without some constraints, a portfolio becomes a no-brainer. A portfolio manager can involve some constraints to reduce risk and to achieve diversification goals. Each investment category has its own yield. A portfolio consists of several investments. In this example, we’re going to demonstrate how to use Solver to get maximum return from an investment portfolio. This article is part of my series: Excel Solver Guide (Easy and Step by Step).
