Solved Problem 10-1 Consider the 0–1 integer programming problem that follows:
Now reformulate this problem with additional constraints so that no more than two of the three variables can take on a value equal to 1 in the solution. Further, make sure that if , then also. Then solve the new problem using Excel.
Excel can handle all-integer, mixed-integer, and 0–1 integer problems. Program 10.12 shows two new constraints to handle the reformulated problem. These constraints are
and
The optimal solution is , with an objective function value of 95.
Solver Parameter Inputs and Selections | Key Formulas |
---|---|
Set Objective: E5 |
Copy E5 to E8:E11 |
By Changing cells: B4:D4 | |
To: Max | |
Subject to the Constraints: | |
E8:E11 <= G8:G11 | |
B4:D4 = binary | |
Solving Method: Simplex LP | |
☑ Make Variables Non-Negative |
Solved Problem 10-2 Recall the Harrison Electric Company goal programming problem seen in Section 10.4. Its LP formulation was
where
number of chandeliers produced
number of ceiling fans produced
Reformulate Harrison Electrical as a goal programming model with the following goals:
Priority 1: Produce at least 4 chandeliers and 3 ceiling fans.
Priority 2: Limit overtime in the assembly department to 10 hours and in the wiring department to 6 hours.
Priority 3: Maximize profit.
In the priority 3 goal constraint, the 99,999 represents an unrealistically high profit. It is just a mathematical trick to use as a target so that we can get as close as possible to the maximum profit.
Solved Problem 10-3 In Chapter 5, the exponential smoothing method for forecasting time series was presented. Program 10.13A provides an example of this, with the smoothing constant selected to be 0.1. The forecast in time period 1 is assumed to be perfect, so the error and the absolute value of the error are both 0. The mean absolute deviation (MAD) is the measure of accuracy, and the first time period error is not used in computing this, since it was simply assumed to be perfect. The MAD is very dependent on the value of Use Excel to find the value of that will minimize the MAD. Hint: Instead of writing the entire objective function, simply use the cell already developed in Excel for the MAD. Remember, must be between 0 and 1.
Key Formulas |
---|
Copy C6:E6 to C7:E11 |
The MAD is a nonlinear function, so Solver in Excel can be used to solve this. There is only one constraint: the smoothing constant, must be less than or equal to 1. This can be entered directly into the Change Constraint window in Solver, with a 1 entered on the right-hand side of the inequality. Program 10.13B provides the information and the final solution for this. The value for that minimizes the MAD is 0.3478, and this yields a MAD of 16.70.
Solver Parameter Inputs and Selections | Key Formulas |
---|---|
Set Objective: E12 |
Copy C6:E6 to C7:E11 |
By Changing cells: B3 | |
To: Min | |
Subject to the Constraints: | |
B3 <= 1 | |
Solving Method: GRG Nonlinear | |
☑ Make Variables Non-Negative |
Note: Solver can be used in a similar manner to find the best weights to use in a weighted moving average forecast.