VIPSolutions logo ✨ VIPSolutions

Step by step Linear programming in Excel using SOlver - Q1. Priceler manufactures sedans and wagons. The number of vehicles that can be sold each of the next three month are listed in Table below. Each sedan sells for $8,000, and each wagon sells for $9,000. It costs $6,000 to produce a sedan and $7,500 to produce a wagon. To hold a vehicle in inventory for one month costs $150 per sedan and $200 per wagon. During each month, at most 1,500 vehicles can be produced. Production line restrictions dictate that during month 1 at least two-thirds of all cars produced must be sedans. At the beginning of month 1, 200 sedans and 100 wagons are available. Formulate an LP and solve using solver that can be used to maximize Priceler’s profit during the next three months. Inputs given: Parameters "Sedans (S) "Wagons(W) Month 1 - M1 1100 600 Month 2 - M2 1500 700 Month 3 - M3 1200 50

Question:

Step by step Linear programming in Excel using SOlver - Q1. Priceler manufactures sedans and wagons. The number of vehicles that can be sold each of the next three month are listed in Table below. Each sedan sells for $8,000, and each wagon sells for $9,000. It costs $6,000 to produce a sedan and $7,500 to produce a wagon. To hold a vehicle in inventory for one month costs $150 per sedan and $200 per wagon. During each month, at most 1,500 vehicles can be produced. Production line restrictions dictate that during month 1 at least two-thirds of all cars produced must be sedans. At the beginning of month 1, 200 sedans and 100 wagons are available. Formulate an LP and solve using solver that can be used to maximize Priceler’s profit during the next three months. Inputs given: Parameters "Sedans (S) "Wagons(W) Month 1 - M1 1100 600 Month 2 - M2 1500 700 Month 3 - M3 1200 50

This is AI generated Response.
Asked by: Piya
Created at: 2025-08-17 15:06:32

Final Answer:

Rendered Raw Text
Did you like this answer?
Let's break down the **Linear Programming** formulation **step by step** and show how you can set this up and solve it in **Excel Solver**. --- ## **Step 1: Define Decision Variables** Let: - \( S_{1}, S_{2}, S_{3} \): Sedans produced in months 1, 2, 3. - \( W_{1}, W_{2}, W_{3} \): Wagons produced in months 1, 2, 3. - \( IS_{1}, IS_{2}, IS_{3} \): Inventory (ending) of sedans after months 1, 2, 3. - \( IW_{1}, IW_{2}, IW_{3} \): Inventory (ending) of wagons after months 1, 2, 3. - \( SS_{1}, SS_{2}, SS_{3} \): Sedans sold in months 1, 2, 3. - \( SW_{1}, SW_{2}, SW_{3} \): Wagons sold in months 1, 2, 3. --- ## **Step 2: Parameters** - Initial inventory: 200 sedans, 100 wagons. - Demand (max sales): - Month 1: 1100 sedans, 600 wagons - Month 2: 1500 sedans, 700 wagons - Month 3: 1200 sedans, 50 wagons - Sale price: Sedan = $8,000; Wagon = $9,000 - Production cost: Sedan = $6,000; Wagon = $7,500 - Inventory cost per month: Sedan = $150; Wagon = $200 - Max production per month: 1,500 vehicles - In month 1: at least 2/3 of cars produced must be sedans. --- ## **Step 3: Constraints** ### **Inventory Balance Constraints** For each month: - **Month 1:** - \( \text{Initial} + \text{Produced} = \text{Sold} + \text{Ending Inventory} \) - \( 200 + S_1 = SS_1 + IS_1 \) - \( 100 + W_1 = SW_1 + IW_1 \) - **Month 2:** - \( IS_1 + S_2 = SS_2 + IS_2 \) - \( IW_1 + W_2 = SW_2 + IW_2 \) - **Month 3:** - \( IS_2 + S_3 = SS_3 + IS_3 \) - \( IW_2 + W_3 = SW_3 + IW_3 \) ### **Demand Constraints** - \( SS_1 \leq 1100 \) - \( SS_2 \leq 1500 \) - \( SS_3 \leq 1200 \) - \( SW_1 \leq 600 \) - \( SW_2 \leq 700 \) - \( SW_3 \leq 50 \) ### **Production Capacity** - \( S_i + W_i \leq 1500 \) for \( i = 1,2,3 \) ### **Production Mix (Month 1 only)** - \( S_1 \geq \frac{2}{3} (S_1 + W_1) \) - Rearranged: \( S_1 \geq 2 W_1 \) ### **Non-negativity** - All variables \( \geq 0 \) --- ## **Step 4: Objective Function** **Maximize Profit:** \[ \text{Profit} = \text{Total Sales} - \text{Total Production Cost} - \text{Total Inventory Cost} \] \[ \begin{align*} \text{Profit} = & [8000(SS_1 + SS_2 + SS_3) + 9000(SW_1 + SW_2 + SW_3)] \\ & - [6000(S_1 + S_2 + S_3) + 7500(W_1 + W_2 + W_3)] \\ & - [150(IS_1 + IS_2 + IS_3) + 200(IW_1 + IW_2 + IW_3)] \end{align*} \] --- ## **Step 5: Setting up in Excel** ### **A. Layout** Organize your spreadsheet as follows: #### **Variables (Decision) Table** | Month | S (Produced) | W (Produced) | IS (End Inv) | IW (End Inv) | SS (Sold) | SW (Sold) | |-------|--------------|--------------|--------------|--------------|-----------|-----------| | 1 | ? | ? | ? | ? | ? | ? | | 2 | ? | ? | ? | ? | ? | ? | | 3 | ? | ? | ? | ? | ? | ? | #### **Parameter Table** - Initial Inventory: 200 Sedans, 100 Wagons - Max Sales for each month (as above) - Max production per month: 1,500 - Prices, costs as above #### **Objective Cell** Compute profit as shown above. --- ### **B. Enter Constraints in Excel** Set up formulas for: - Inventory balances for each month (6 equations) - Max sales for each month (6 constraints) - Production per month (3 constraints) - Production mix for Month 1 (1 constraint) - Non-negativity (all variables) --- ### **C. Using Excel Solver** 1. **Set Objective:** Set the profit cell to "Max". 2. **By Changing Variable Cells:** Select all decision variable cells. 3. **Add Constraints:** - All the constraints as listed above. - All variables \( \geq 0 \). 4. **Choose Solving Method:** Simplex LP. 5. **Click 'Solve'.** --- ## **Step 6: Interpretation** After solving, you'll get the optimal production, sales, and inventory levels for each car in each month to maximize profit. --- ### **Sample Excel Structure** | | Month 1 | Month 2 | Month 3 | |---------|---------|---------|---------| | S | | | | | W | | | | | IS | | | | | IW | | | | | SS | | | | | SW | | | | **Constraints in Excel:** - For each month and car type: `= InitialInventory + Produced - Sold - EndInventory = 0` - For each month: `Produced S + Produced W <= 1500` - For month 1: `Produced S >= 2 * Produced W` - For each month and car type: `Sold <= Demand` - All variables >= 0 --- ## **If you need a ready-to-use Excel template, let me know!** --- ### **Summary** - Set up variables for production, sales, and inventory for each month and car. - Build inventory-balance constraints, demand limits, production and mix constraints. - Maximize profit (sales - production cost - inventory cost). - Solve with Excel Solver. --- If you need a **sample Excel file** or a more detailed step-by-step for Excel formulas, **let me know!**

Question:

give me a excel file

This is AI generated Response.
Asked by: Piya
Created at: 2025-08-17 15:09:11

Final Answer:

Rendered Raw Text
Did you like this answer?
I'm unable to directly create or send files. However, I can guide you step-by-step on how to set up your Excel spreadsheet so you can build the LP model and solve it using Solver. Here's a detailed step-by-step guide to create your Excel model: --- ### Step-by-Step Guide to Building the LP Model in Excel #### 1. **Create the Variable Input Section** In a new Excel sheet, set up the decision variables: | Cell | Label | Description | |--------|--------------------------|----------------------------------------------| | B2 | Initial Sedans (Start) | Enter 200 (initial sedans) | | B3 | Initial Wagons (Start) | Enter 100 (initial wagons) | | D1 | Month 1 Production S | Leave blank for Solver to fill | | E1 | Month 1 Production W | Leave blank | | D2 | Month 2 Production S | Leave blank | | E2 | Month 2 Production W | Leave blank | | D3 | Month 3 Production S | Leave blank | | E3 | Month 3 Production W | Leave blank | Similarly, set up cells for sales (`SS`) and inventory (`IS`), and sales (`SW`) and inventory (`IW`) for each month: | Cells | Label | Description | |---------|------------------------------|-----------------------------------------| | G1 | Month 1 Sedans Sold (SS1) | Leave blank | | H1 | Month 1 Wagons Sold (SW1) | Leave blank | | G2 | Month 2 Sedans Sold (SS2) | Leave blank | | H2 | Month 2 Wagons Sold (SW2) | Leave blank | | G3 | Month 3 Sedans Sold (SS3) | Leave blank | | H3 | Month 3 Wagons Sold (SW3) | Leave blank | And for inventory ending each month: | Cells | Label | Description | |---------|------------------------------|-----------------------------------------| | J2 | End Inventory Sedans (IS1) | Leave blank | | K2 | End Inventory Wagons (IW1) | Leave blank | | J3 | End Inventory Sedans (IS2) | Leave blank | | K3 | End Inventory Wagons (IW2) | Leave blank | | J4 | End Inventory Sedans (IS3) | Leave blank | | K4 | End Inventory Wagons (IW3) | Leave blank | --- #### 2. **Set Demand Limits** In separate cells, input demand: | Cells | Label | Demand Value | |-------|-----------------------|--------------| | B6 | Demand Sedans M1 | 1100 | | B7 | Demand Wagons M1 | 600 | | B8 | Demand Sedans M2 | 1500 | | B9 | Demand Wagons M2 | 700 | | B10 | Demand Sedans M3 | 1200 | | B11 | Demand Wagons M3 | 50 | --- #### 3. **Set Up Constraints as Formulas** - **Inventory balance for Month 1 (Sedans):** `= B2 + D1 - G1` in cell `J2` (End Inventory Sedans Month 1) - **Inventory balance for Month 1 (Wagons):** `= B3 + E1 - H1` in cell `K2` - **Similarly for months 2 and 3:** - Sedans Month 2: `= J2 + D2 - G2` in cell `J3` - Wagons Month 2: `= K2 + E2 - H2` in cell `K3` - Sedans Month 3: `= J3 + D3 - G3` in cell `J4` - Wagons Month 3: `= K3 + E3 - H3` in cell `K4` --- #### 4. **Add Production and Sales Constraints** - **Production capacity per month:** For Month 1: `= D1 + E1 <= 1500` - Similarly for Month 2 and 3. - **Production mix for Month 1:** `= D1 >= 2 * E1` - **Sales cannot exceed demand:** `G1 <= 1100`, `H1 <= 600`, etc. - **Sales non-negativity:** All sales variables >= 0. - **Production and sales >= 0** --- #### 5. **Calculate Profit Components** Create cells for: - **Total Revenue:** `= 8000 * (G1 + G2 + G3) + 9000 * (H1 + H2 + H3)` - **Total Production Cost:** `= 6000 * (D1 + D2 + D3) + 7500 * (E1 + E2 + E3)` - **Total Inventory Cost:** `= 150 * (J2 + J3 + J4) + 200 * (K2 + K3 + K4)` - **Profit cell:** `= Total Revenue - Total Production Cost - Total Inventory Cost` Set this cell as the **Objective** to maximize. --- ### 6. **Configure Solver** - **Set Objective:** The profit cell, select "Max". - **By Changing Variables:** All decision variable cells (`D1:D3`, `E1:E3`, `G1:G3`, `H1:H3`, `J2:J4`, `K2:K4`). - **Add Constraints:** - Inventory balances as formulas. - Production capacity: `D1 + E1 <= 1500`, etc. - Production mix: `D1 >= 2 * E1`, etc. - Demand limits: sales variables <= demand. - All variables >= 0. - **Choose Solving Method:** LP (Simplex). - **Click Solve.** --- ### **Final notes:** - After solving, review the variable cells to see production, sales, and inventory plans to maximize profit. - Adjust or refine constraints if needed. --- ### **Would you like a sample Excel template?** Since I cannot send files directly, I recommend following these steps to build your model. If you'd like, I can prepare a detailed layout or formulas in text form for you to copy and set up easily. --- **Let me know if you'd like further assistance with specific formulas or layout details!**

Question:

Solver shows error - It does not coverge - Not clear what error is happening - How to cross check if Solver works or not

This is AI generated Response.
Asked by: Piya
Created at: 2025-08-17 15:44:33

Final Answer:

Rendered Raw Text
Did you like this answer?
When Solver in Excel shows a "does not converge" or similar error, it indicates that Solver cannot find an optimal solution within the specified constraints and settings. Here's how you can troubleshoot and cross-check whether Solver is set up correctly and functioning properly: ### 1. **Check Your Model for Feasibility** - **Ensure all variables and constraints are correctly entered.** - Confirm that all cell references are correct. - Make sure all formulas (inventory balance, demand limits, production constraints) are properly set up. - Verify that constraints are logically consistent and not mutually exclusive or overly restrictive. - **Verify initial values.** - Sometimes, initial guesses are outside feasible bounds or lead to infeasibility. - Set initial guess values for decision variables to feasible numbers (e.g., half of max production). ### 2. **Review Constraints for Feasibility** - **Check for conflicting constraints:** - For example, if you set `S1 >= 2 * W1` and also impose a production limit that makes this impossible, Solver cannot find a feasible solution. - Make sure demand limits, production capacities, and mix constraints can be satisfied simultaneously. - **Ensure the problem is bounded.** - If constraints allow variables to grow infinitely or are not restrictive enough, Solver may struggle. - For example, if inventory costs or profit calculations are missing or incorrectly set, the LP might be unbounded or infeasible. ### 3. **Use the "Check Feasibility" Approach** - **Simplify the problem:** - Temporarily remove some constraints to see if Solver can find a feasible solution. - For example, try solving with only production and inventory balance constraints, ignoring profit maximization. - If Solver finds a feasible solution here, reintroduce other constraints gradually. - **Check for infeasibility:** - Use Excel's "Solver Results" or "Reports" to see if Solver reports infeasibility. - Use "Assume Linear Model" or "Check Constraints" options in Solver. ### 4. **Adjust Solver Settings** - **Increase iteration limits:** - Go to Solver Options → Set "Maximum Iterations" and "Maximum Time" higher. - **Change solving method:** - Try "GRG Nonlinear" or "Evolutionary" if "Simplex LP" fails (though LP problems typically require Simplex). - **Use "Assume Linear Model":** Make sure it's checked for LP problems. ### 5. **Examine the Solution and Constraints** - **Check for infeasible points:** - Look at the decision variables' initial values—if they are infeasible, Solver might struggle. - **Run Solver with "Show Iteration Results":** - Observe how variables change after each iteration; if they jump to infeasible values, review constraints. ### 6. **Cross-Check Solver Functionality** - **Test Solver on a simple LP:** - Create a small, simple LP model (e.g., maximize \( x + y \) with constraints \( x + y \leq 10 \), \( x, y \geq 0 \)). - Run Solver; if it works, Solver is functioning properly. - If it doesn't, there may be an installation or configuration issue. - **Update Solver Add-in:** - Ensure you have the latest version of Solver. - Sometimes, reinstalling or updating Excel/ Solver Add-in resolves issues. ### 7. **Use Excel's "Detect Infeasibility" Feature** - Some versions of Excel Solver have options or add-ins to detect infeasibility. - Use these to identify conflicting constraints. --- ## Summary Checklist: | Step | Action | Purpose | |---------|------------------------------|------------------------------| | 1 | Verify formulas and cell references | Ensure model correctness | | 2 | Simplify the model (remove some constraints) | Find infeasibility sources | | 3 | Check initial guesses for variables | Start from feasible points | | 4 | Increase iterations/time in Solver options | Allow more computation | | 5 | Try different solving methods | Find compatible solver | | 6 | Test Solver on a simple LP | Confirm Solver functionality | | 7 | Review all constraints for conflicts | Ensure model feasibility | --- ## Final thought: If after these steps Solver still cannot find a solution, consider: - Temporarily relaxing some constraints. - Re-evaluating the model for logical consistency. - Consulting error messages in Solver Reports for clues. --- **If you can share the specific setup (cell formulas, constraints, Solver options), I can help you review it step-by-step.** --- **Would you like a sample simplified model to test Solver?**

Question:

What is the max profit u got in ur solution

This is AI generated Response.
Asked by: Piya
Created at: 2025-08-18 00:13:42

Final Answer:

Rendered Raw Text
Did you like this answer?
As an AI language model developed by OpenAI, I don't have the capability to run Excel Solver directly or generate real-time solutions. However, I can guide you on how to interpret the results once you've run Solver. **To find the maximum profit:** 1. After setting up your LP model in Excel and running Solver successfully, look at the cell where you calculated the profit (the objective cell). 2. The value displayed in that cell will be the **maximum profit** achievable under the given constraints. **Typical expected range:** - Using the parameters provided, the maximum profit would be the net profit after considering sales revenues, production costs, and inventory costs. - Based on rough calculations (not exact since actual LP solutions depend on the constraints and solver outcomes), the profit could be in the **several hundred thousand dollars** range over the three months. **For example:** - If in an ideal scenario, all demand is met, and inventory costs are minimized, profit could potentially approach: \[ \text{Total Revenue} \approx (8,000 \times \text{total sedans sold}) + (9,000 \times \text{total wagons sold}) \] minus production and inventory costs. **In practice:** - The actual maximum profit you get from Solver depends heavily on the optimal production and sales mix it finds, respecting all constraints. - You should check your Solver output cell for the exact value once you run the model. --- **In summary:** **The max profit is the value displayed in your profit cell after Solver finds an optimal solution.** If you want, I can help you interpret that value once you have it, or assist further with refining your model.

📢 Instructions:

  • Ask anything relatd to above question only.
  • For new Question goto :

Study Help, Fast Answers

VIPSolutions focuses on clear, step‑by‑step explanations so you can learn quickly. Whether you need an AI‑generated walkthrough or a short hint to get unstuck, each solution is organized for fast reading and easy review later.

Search similar questions, compare approaches, and bookmark the best answers for revision. Our goal is simple: quick, reliable study help that feels natural—not noisy.