IS602 S4

📚 IS602-S4.pdf

Brief overview

This document explores optimization problems and their solutions using linear programming fundamentals and spreadsheet tools. It provides practical applications through case studies, emphasizing decision-making based on data analysis.

Key points

  • Introduction to optimization problems and linear programming fundamentals.
  • Practical application of the Excel Solver add-in for optimization tasks.
  • Utilizing spreadsheet data tables for scenario analysis and input variable impact.
  • Application of spreadsheet functions for data retrieval and manipulation.
  • Case studies demonstrating optimization in business scenarios.

1. Optimization problems and linear programming fundamentals

1.1 Introduction to optimization

Optimization problems seek to identify the most efficient utilization of limited resources to achieve a specific objective. These problems are prevalent across various fields, including mathematics, science, business, and economics.

  • Objective: To maximize profit, minimize cost, minimize travel distance, or minimize project completion time 9.

1.2 Linear programming (LP)

Linear Programming (LP) is a mathematical technique for optimizing a linear objective function, subject to linear equality and inequality constraints. It is a core method for solving optimization problems where the relationships are linear.

The LP model comprises three fundamental components:

  • Decision Variables (Input): These are the variables whose values the LP model determines to achieve the optimal outcome. They can be real, binary, or integer values.
  • Objective Function (Output): This is a linear expression that the LP model aims to maximize or minimize. The optimal values of the decision variables are sought to optimize this function.
  • Constraints: These are linear equalities or inequalities that define the boundaries of the feasible region. They restrict the possible values the decision variables can take 10.

1.3 Setting up LP components

1.3.1 Objective function setup

  • Purpose: To define the quantitative measure that needs to be minimized or maximized.
  • Implementation: A dedicated cell in a spreadsheet model typically stores the computation of the objective function value.
  • Solver Configuration: When using optimization software (like Excel Solver), this cell is identified, and the desired operation (maximize, minimize, or set to a target value) is specified 12.

1.3.2 Constraint setup

Constraints are defined by a Left-Hand Side (LHS) and a Right-Hand Side (RHS), connected by an equality or inequality operator (e.g., <=, >=, =).

ComponentDescriptionExample
LHSA computation or a decision variable value to be compared against the RHS.Planned purchase quantity, total labor hours used.
RHSA known value representing a limit or target.Maximum budget, total available labor hours.
OperatorDefines the relationship between LHS and RHS (<=, >=, =).e.g., LHS <= RHS (do not exceed budget), LHS >= RHS (meet minimum requirement).
SpreadsheetLHS and RHS values are typically stored in separate cells. Solver then uses these cells and the chosen operator to define the constraint.Total Spend Cell <= Budget Cell 13.

Integer Constraints: Constraints can also dictate the nature of decision variables, requiring them to be integers or binary values. This is crucial when fractional solutions are not practical, such as in scheduling or resource allocation 14.

1.4 Outcomes of LP optimization

Linear programming optimization can yield four distinct outcomes:

OutcomeDescriptionGraphical Representation
Unique Optimal SolutionA single best solution exists, typically found at a corner point of the feasible region.Unique Optimal Solution.
Multiple Optimal SolutionsAn infinite number of optimal solutions exist. This occurs when the objective function line is parallel to a binding constraint.
Optimal is +∞The objective function value can increase (or decrease for minimization) indefinitely. This happens with unbounded feasible regions.
No SolutionNo feasible region exists, meaning there are no values for decision variables that satisfy all constraints simultaneously.

🔑 Important: Understanding these four potential outcomes is critical for interpreting the results of an LP model and diagnosing issues with problem formulation 11.

🔑 Important: The Economic Order Quantity (EOQ) model demonstrates a trade-off between ordering costs and carrying costs, aiming to find the optimal order size that minimizes total inventory costs 3 4.

2. Excel Solver add-in and its applications

2.1 Understanding and enabling the Solver add-in

The Solver add-in in Excel is a powerful tool for optimization problems, allowing users to find optimal solutions by changing input cells to satisfy constraints and achieve a desired objective. Occasionally, the connection to the Solver Reference File may be lost, especially when moving Excel files between different computers.

This necessitates re-linking the add-in to restore its functionality.

The process of enabling the Solver add-in involves navigating through Excel's options. Users must first access Excel Options, then select the Add-ins category.

From there, they can choose to manage Excel Add-ins and click 'Go'. In the subsequent dialog box, the 'Solver Add-in' checkbox should be selected to enable it.

This diagram shows the process of enabling the Solver add-in in Microsoft Excel.

If re-linking via the Add-ins menu is insufficient, a more direct approach is required. This involves locating the Solver add-in file manually.

For Excel 2003, the path is typically C:\Program Files\Microsoft Office\Office11\Library\Solver\SOLVER.XLA. For Excel 2007, it is C:\Program Files\Microsoft Office\Office12\Library\Solver\SOLVER.XLAM.

After locating and linking the .XLA or .XLAM file, users should then proceed to the Visual Basic Editor (VBE) and go to Tools > References to ensure Solver is selected 15.

2.2 Setting up optimization problems with Solver

Solver enables the formulation and solution of linear programming problems, such as determining an optimal guest mix for casino games to maximize revenue within given constraints 17.

A typical optimization problem setup involves defining key components:

  • Performance Measure: This is the metric to be optimized, often calculated as Total Revenue minus Total Expense, aiming to maximize net income.
  • Inputs: These are the fixed parameters of the problem, including revenues, costs, space requirements per guest, and minimum/maximum guest numbers for each type.
  • Intermediate Variables: These are calculated values derived from inputs and decisions, such as total revenue, total expenses, and revenue/cost per type.
  • Decision Variables: These are the variables that Solver will adjust to achieve the objective. In a casino context, this would be the number of guests for each game type, often requiring integer solutions
  • Constraints: These are the limitations or conditions that must be satisfied. They can include floor space availability, minimum/maximum guest numbers per type, and total guest limits

The Objective Function is the mathematical expression representing the performance measure to be maximized or minimized. It is defined using input parameters and decision variables For instance, to maximize net income, the objective function would sum the net income contributions from all guest types, where net income per guest is revenue per guest minus cost per guest.

Solver requires the setup of these elements within an Excel worksheet. Decision variables are represented by cells whose values Solver can change.

Constraints are defined as relationships between cells (e.g., a cell representing total floor space needed must be less than or equal to a cell representing available floor space)

📝 Example: In a casino optimization problem, decision variables might be the number of guests for Poker, Blackjack, and Roulette. Constraints could include:

  • Number of guests for each game type must be between 10 and 50.
  • Total guests across all games cannot exceed 200.
  • Total floor space occupied cannot exceed 500 square meters. The objective function would be to maximize the total net income generated by these guests.
ComponentDefinitionExample in Casino Problem
Decision VariablesCells Solver can change to optimize the objective.Number of guests per game type (e.g., Poker guests).
ConstraintsConditions that must be met.Max/min guests per type, total floor space, total guests.
Objective FunctionMathematical expression to be maximized or minimized.Maximize (Sum of Net Income per guest type * Guests per type).
Performance MeasureThe output metric being optimized (e.g., profit, cost).Net Income.
Inputs/ParametersFixed values used in calculations.Revenue/cost per guest, floor space per guest.
Intermediate VarsCalculated values based on inputs and decisions.Total Revenue, Total Cost, Floor area needed.

18 19> 🔑 Important: Successfully setting up an optimization problem in Solver hinges on accurately defining the decision variables, constraints, and the objective function, ensuring they precisely reflect the real-world problem being modeled.

2.3 Related Excel functions (Lookup)

While not directly part of Solver, understanding lookup functions is crucial for preparing data that Solver can utilize or for interpreting Solver's results. Functions like LOOKUP, VLOOKUP, HLOOKUP, MATCH, and INDEX are fundamental for retrieving specific data points from tables or ranges based on certain criteria 21.

  • LOOKUP(lookup_value, lookup_vector, [result_vector]): This function searches for a value in a one-row or one-column range (lookup_vector) and returns a corresponding value from another one-row or one-column range (result_vector). The lookup_vector must be sorted in ascending order. It finds the largest value in lookup_vector that is less than or equal to lookup_value and returns the value from the same position in result_vector 22.

  • VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]): This function searches for a lookup_value in the leftmost column of table_array and returns a value from the same row in a specified column (col_index_num) 23.

  • If range_lookup is TRUE (or omitted), VLOOKUP performs an approximate match. The leftmost column of table_array must be sorted in ascending order. It returns the largest value less than or equal to lookup_value.

  • If range_lookup is FALSE, VLOOKUP performs an exact match. The values in the leftmost column need not be sorted. It returns an exact match if found, otherwise it returns #NA.

🔑 Important: The range_lookup argument in VLOOKUP is critical. Using TRUE for approximate matches is common for interpolating values or finding ranges, while FALSE is essential for exact lookups, such as finding a specific product ID or employee name 24.

🔑 Important: For the entire topic, mastering the setup of decision variables, constraints, and the objective function for Solver is paramount for effective application in optimization problems 20.

3. Spreadsheet data tables for scenario analysis

3.1 Spreadsheet data tables for scenario analysis

  • Data table: a range of cells displaying how changes in input variables affect formula results.
  • Facilitates the calculation of multiple outcomes from formula variations in a single operation, mitigating the need for manual referencing adjustments.
  • Enables simultaneous viewing and comparison of diverse scenario outcomes within a worksheet.
  • Supports the creation of both one-variable and two-variable data tables 25.

3.2 Creating a one-variable data table

  • Input variable values must be listed either down a column or across a row.
  • Column-oriented tables:
  • Prepare a dummy cell for the variable.
  • List the variable's different values in a column.
  • Place the formula referencing the variable in the cell directly above the first value and one cell to the right. Additional formulas using the same variable can be placed to the right of the first formula.
  • Select the range encompassing the formulas and the column of values.
  • Navigate to Data > What-if Analysis > DataTable.
  • Designate the dummy cell as the Column input cell 26.

📝 Example: A one-variable data table can illustrate how varying interest rates affect loan repayment amounts. The interest rates would form the column of values, and the loan payment formula would be in the header row.

3.3 Creating a two-variable data table

  • Prepare dummy cells for both input variables.
  • List values for the first variable in a column.
  • List values for the second variable in a row, positioned one row above the column and one cell to the right.
  • At the intersection of the row and column of values (the top-left cell), enter the formula that uses both variables.
  • Select the entire range containing the formula and both sets of variable values.
  • Access Data > What-If Analysis > DataTable.
  • Identify the dummy cell for the first variable as the Column input cell and the dummy cell for the second variable as the Row input cell 27.

📝 Example: A two-variable data table could analyze the impact of different production volumes (column variable) and material costs (row variable) on total profit.

3.4 Data retrieval functions: MATCH

  • The MATCH function returns the relative position of an item within an array that matches a specified value, according to a defined order.
  • It is useful when the position of an item is needed, rather than the item itself.

3.4.1 MATCH function arguments and match types

  • Syntax: MATCH(lookup_value, lookup_array, match_type).
  • match_type:
  • 1: Returns the relative position of the largest value less than or equal to lookup_value. lookup_array must be sorted in ascending order. This is the default setting.
  • 0: Returns the relative position of the first value exactly equal to lookup_value. lookup_array can be in any order.
  • -1: Returns the relative position of the smallest value greater than or equal to lookup_value. lookup_array must be sorted in descending order 28.
match_typelookup_array orderConditionReturns
1 (Default)AscendingLargest value ≤\le lookup_valueRelative position of that value 29
0AnyExactly equal to lookup_valueRelative position of first match 30
-1DescendingSmallest value ≥\ge lookup_valueRelative position of that value 31

3.5 Data retrieval functions: INDEX

  • The INDEX function returns the value of an element from a table or array, identified by its row and column number indices.

3.5.1 INDEX function syntax and basic usage

  • Syntax: INDEX(array, row_num, [column_num]).
  • array: The range of cells or array from which to retrieve a value.
  • row_num: The row number within the array from which to return a value.
  • column_num: The column number within the array from which to return a value. This argument is optional for single-row or single-column arrays 32.

Diagram illustrating the INDEX function for a single row or column in an array.

3.5.2 INDEX function with single-row or single-column arrays

  • If the array contains only one row or one column, the corresponding row_num or column_num argument becomes optional.
  • For a single-column array, INDEX(array, row_num) will return the value at the specified row_num.
  • For a single-row array, INDEX(array, 1, column_num) or INDEX(array,, column_num) will return the value at the specified column_num 33.

3.5.3 INDEX function with array formulas for full rows or columns

  • When an array has multiple rows and columns, and only row_num or column_num is provided, INDEX can return an entire row or column.
  • Setting column_num = 0 returns an array of the entire row specified by row_num. This is an array formula, typically entered with Ctrl+Shift+Enter 34.

This diagram illustrates how the INDEX function works by selecting a value from an array using row and column numbers.

  • Setting row_num = 0 returns an array of the entire column specified by column_num. This also requires array formula entry (Ctrl+Shift+Enter) 35.

This diagram illustrates how the INDEX function in an array formula returns an entire column when the row number is set to 0.

3.6 Combining INDEX and MATCH

  • The synergistic use of MATCH within INDEX enables dynamic selection of row_num and column_num based on lookup values.
  • This combination creates powerful, flexible lookup capabilities.
Formula StructureDescription
INDEX(result_array, MATCH(lookup_value, lookup_array, match_type))Returns a value from result_array where the row_num is determined by the MATCH function.
INDEX(result_array, 1, MATCH(lookup_value, lookup_array, match_type))Returns a value from result_array where the column_num is determined by the MATCH function.
INDEX(result_array, MATCH(lookup_value, lookup_array, match_type), MATCH(lookup_value, lookup_array, match_type))Returns a value from result_array where both row_num and column_num are derived from two MATCH functions 36.

🔑 Important: The power of spreadsheet scenario analysis lies in dynamically linking input variables to formula outputs, enabling rapid assessment of potential outcomes across various conditions.

4. Case studies: Casino hotel optimization and Echo Office Supplies pricing

4.1 Casino hotel optimization

The Casino Hotel case study focuses on optimizing the guest mix to maximize revenue. This involves understanding the trade-offs between different customer segments, each potentially contributing varying amounts of revenue and having different demands on hotel resources.

The core challenge is to allocate available capacity (e.g., rooms, gaming tables) among these segments in a way that yields the highest overall financial return. This type of problem is a classic application of linear programming or other optimization techniques, where decision variables represent the number of guests from each segment, and constraints reflect resource limitations and market demands.

The objective function quantifies the total revenue to be maximized.

4.2 Echo Office Supplies pricing strategy

The Echo Office Supplies case study addresses the complex task of determining a new price list designed to minimize revenue loss while simultaneously achieving specific price reduction targets for different customer groups. This scenario presents a multi-faceted optimization problem with the following key elements:

  • Objective: Minimize the total drop in revenue.
  • Decisions: Setting new prices for multiple products (Widgets, Sprockets, Gizmos).
  • Constraints:
  • Achieve a specified revenue drop for distinct customer segments (e.g., Big Customers, Other Customers).
  • Ensure a minimum price reduction for all customers, with a higher minimum for Big Customers.
  • Complexity: The need to concurrently determine multiple new prices (18 in this case, for 3 products and 6 price ranges) requires an iterative or optimization-based approach rather than simple manual adjustments.

The influence diagram for this problem illustrates the interdependencies: decisions on the new price list, influenced by the old price list and forecasted demand, directly impact the revenue after discount and ultimately the drop in revenue. Constraints are placed on the drop in revenue and drop in price for different customer groups.

🔑 Important: The primary challenge lies in balancing the dual objectives of revenue minimization and targeted price reductions across diverse customer segments, requiring sophisticated analytical tools 38.

4.2.1 Calculating projected sales and implementing price changes

To address the Echo Office Supplies pricing problem, a systematic approach is employed, typically within a spreadsheet environment. The process involves:

  • Step 1: Baseline Revenue Calculation: Compute the projected sales revenue using the existing price list and forecasted demand to establish a benchmark.
  • Step 2: New Price List Integration: Determine the projected sales revenue under a proposed new price list. Since the new prices are the decision variables, this step often involves an iterative process or an optimization solver.
  • Step 3: Iterative Price Adjustment: Employ an iterative method to test various new pricing scenarios. This continues until the price reduction requirements for different customer groups are met, while observing the impact on overall revenue.

4.2.1.1 Utilizing INDEX and MATCH for data retrieval

Spreadsheet functions like INDEX and MATCH are crucial for dynamically retrieving sales data based on selected customer types and product categories. The INDEX function retrieves a value from a specified range, while MATCH locates the position of a lookup value within a range.

  • INDEX(array, row_num, column_num):
  • array: The range containing the data to be retrieved.
  • row_num: The row number within the array from which to return a value.
  • column_num: The column number within the array from which to return a value.
  • MATCH(lookup_value, lookup_array, match_type):
  • lookup_value: The value to search for.
  • lookup_array: The range in which to search.
  • match_type:
  • 0: Exact match.
  • 1: Largest value less than or equal to lookup_value (requires ascending lookup_array).
  • -1: Smallest value greater than or equal to lookup_value (requires descending lookup_array).

The formula =INDEX(G24:J73, MATCH(B14, B24:B73, 0), MATCH(G13, G23:J23, 0)) exemplifies this. Here, MATCH(B14, B24:B73, 0) finds the row position of a selected customer, and MATCH(G13, G23:J23, 0) finds the column position for a specific data type (e.g., "All") 39.

4.2.1.1.1 Employing INDEX with MATCH for entire row/column retrieval

A powerful application of INDEX and MATCH involves returning an entire row or column by setting the corresponding row_num or column_num to 0.

  • Returning an entire row: When row_num is set to 0 in the INDEX function, it returns the entire row specified by column_num. This is particularly useful when a single MATCH function determines the column, and we want all values from that column for a particular row. For instance, {INDEX(G24:J73, MATCH(B14, B24:B73, 0), 0)} would return the entire row corresponding to the customer in cell B14, across columns G to J.

  • Returning an entire column: Conversely, setting column_num to 0 allows INDEX to return the entire column specified by row_num. This is often achieved by using MATCH to determine the row number and then setting column_num to 0. This capability is essential for retrieving all data points associated with a specific product or category across all customer types.

🔑 Important: Setting row_num or column_num to 0 in INDEX is a specific technique to extract an entire column or row, respectively, when combined with MATCH for positioning 40.

4.2.2 Defining optimization parameters and constraints

The Echo Office Supplies problem is formally defined for an optimization solver, typically by specifying decision variables, constraints, and the objective function.

  • Decision Variables: These are the quantities the solver can adjust to find the optimal solution. In this case, the primary decision variables are the new discounted prices for each product across different customer segments.

  • Constraints: These are the rules or limitations that the solution must adhere to.

  • Revenue Drop Constraints:

  • Big Customers: Projected revenue after discount must be at least 9% less than revenue before discount. Mathematically: Revbefore−RevafterRevbefore≥0.09\frac{\text{Rev}_{\text{before}} - \text{Rev}_{\text{after}}}{\text{Rev}_{\text{before}}} \ge 0.09.

  • Other Customers: Projected revenue after discount must be at least 5% less than revenue before discount. Mathematically: Revbefore−RevafterRevbefore≥0.05\frac{\text{Rev}_{\text{before}} - \text{Rev}_{\text{after}}}{\text{Rev}_{\text{before}}} \ge 0.05.

  • Price Drop Constraints:

  • Big Customers: New prices must be at least 8% lower than old prices. Mathematically: Pricebefore−PriceafterPricebefore≥0.08\frac{\text{Price}_{\text{before}} - \text{Price}_{\text{after}}}{\text{Price}_{\text{before}}} \ge 0.08.

  • Note: The challenge is to set prices for Big Customers to be at least 8% lower without inadvertently benefiting Other Customers significantly 41.

  • Objective Function: This is the quantity to be optimized (minimized or maximized). Here, the objective is to minimize the total decrease in total revenue.

4.2.3 Comparison of lookup functions

The document briefly compares several spreadsheet lookup functions, highlighting their distinct capabilities, particularly regarding exact versus approximate matching.

FunctionExact Match (range_lookup = FALSE)Approximate Match (range_lookup = TRUE or omitted)Notes
MATCHFinds exact position; returns #N/A if no exact match.Finds position for largest value ≤\le lookup_value (requires ascending lookup_array); can handle descending with -1.Versatile for finding positions within arrays.
VLOOKUPFinds exact match in the first column of lookup_table; returns #N/A.Finds largest value ≤\le lookup_value in the first column (requires ascending lookup_table).Primarily for looking up values in columns.
LOOKUPLess common usage; typically defaults to approximate matching behavior.Finds largest value ≤\le lookup_value in lookup_table (requires ascending lookup_table).Can be used for vectors or arrays; often superseded by VLOOKUP or INDEX/MATCH.

🔑 Important: MATCH with match_type=0 is for exact matches, while VLOOKUP and LOOKUP with range_lookup=TRUE (or omitted) are for approximate matches and require sorted lookup arrays 43.

🔑 Important: The Echo Office Supplies case study demonstrates the application of optimization techniques in a practical business scenario to manage pricing strategies and minimize revenue impact, underscoring the value of analytical tools for complex decision-making 37 42.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also