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., <=, >=, =).
| Component | Description | Example |
|---|---|---|
| LHS | A computation or a decision variable value to be compared against the RHS. | Planned purchase quantity, total labor hours used. |
| RHS | A known value representing a limit or target. | Maximum budget, total available labor hours. |
| Operator | Defines the relationship between LHS and RHS (<=, >=, =). | e.g., LHS <= RHS (do not exceed budget), LHS >= RHS (meet minimum requirement). |
| Spreadsheet | LHS 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:
| Outcome | Description | Graphical Representation |
|---|---|---|
| Unique Optimal Solution | A single best solution exists, typically found at a corner point of the feasible region. | ![]() |
| Multiple Optimal Solutions | An 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 Solution | No 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.

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.
| Component | Definition | Example in Casino Problem |
|---|---|---|
| Decision Variables | Cells Solver can change to optimize the objective. | Number of guests per game type (e.g., Poker guests). |
| Constraints | Conditions that must be met. | Max/min guests per type, total floor space, total guests. |
| Objective Function | Mathematical expression to be maximized or minimized. | Maximize (Sum of Net Income per guest type * Guests per type). |
| Performance Measure | The output metric being optimized (e.g., profit, cost). | Net Income. |
| Inputs/Parameters | Fixed values used in calculations. | Revenue/cost per guest, floor space per guest. |
| Intermediate Vars | Calculated 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). Thelookup_vectormust be sorted in ascending order. It finds the largest value inlookup_vectorthat is less than or equal tolookup_valueand returns the value from the same position inresult_vector22. -
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]): This function searches for alookup_valuein the leftmost column oftable_arrayand returns a value from the same row in a specified column (col_index_num) 23. -
If
range_lookupisTRUE(or omitted),VLOOKUPperforms an approximate match. The leftmost column oftable_arraymust be sorted in ascending order. It returns the largest value less than or equal tolookup_value. -
If
range_lookupisFALSE,VLOOKUPperforms 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_lookupargument inVLOOKUPis critical. UsingTRUEfor approximate matches is common for interpolating values or finding ranges, whileFALSEis 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
MATCHfunction 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 tolookup_value.lookup_arraymust be sorted in ascending order. This is the default setting.0: Returns the relative position of the first value exactly equal tolookup_value.lookup_arraycan be in any order.-1: Returns the relative position of the smallest value greater than or equal tolookup_value.lookup_arraymust be sorted in descending order 28.
match_type | lookup_array order | Condition | Returns |
|---|---|---|---|
1 (Default) | Ascending | Largest value ≤ lookup_value | Relative position of that value 29 |
0 | Any | Exactly equal to lookup_value | Relative position of first match 30 |
-1 | Descending | Smallest value ≥ lookup_value | Relative position of that value 31 |
3.5 Data retrieval functions: INDEX
- The
INDEXfunction 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 thearrayfrom which to return a value.column_num: The column number within thearrayfrom which to return a value. This argument is optional for single-row or single-column arrays 32.

3.5.2 INDEX function with single-row or single-column arrays
- If the
arraycontains only one row or one column, the correspondingrow_numorcolumn_numargument becomes optional. - For a single-column array,
INDEX(array, row_num)will return the value at the specifiedrow_num. - For a single-row array,
INDEX(array, 1, column_num)orINDEX(array,, column_num)will return the value at the specifiedcolumn_num33.
3.5.3 INDEX function with array formulas for full rows or columns
- When an
arrayhas multiple rows and columns, and onlyrow_numorcolumn_numis provided,INDEXcan return an entire row or column. - Setting
column_num = 0returns an array of the entire row specified byrow_num. This is an array formula, typically entered with Ctrl+Shift+Enter 34.

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

3.6 Combining INDEX and MATCH
- The synergistic use of
MATCHwithinINDEXenables dynamic selection ofrow_numandcolumn_numbased on lookup values. - This combination creates powerful, flexible lookup capabilities.
| Formula Structure | Description |
|---|---|
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 tolookup_value(requires ascendinglookup_array).-1: Smallest value greater than or equal tolookup_value(requires descendinglookup_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_numis set to0in theINDEXfunction, it returns the entire row specified bycolumn_num. This is particularly useful when a singleMATCHfunction 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 cellB14, across columns G to J. -
Returning an entire column: Conversely, setting
column_numto0allowsINDEXto return the entire column specified byrow_num. This is often achieved by usingMATCHto determine the row number and then settingcolumn_numto0. This capability is essential for retrieving all data points associated with a specific product or category across all customer types.
🔑 Important: Setting
row_numorcolumn_numto0inINDEXis a specific technique to extract an entire column or row, respectively, when combined withMATCHfor 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: RevbeforeRevbefore−Revafter≥0.09.
-
Other Customers: Projected revenue after discount must be at least 5% less than revenue before discount. Mathematically: RevbeforeRevbefore−Revafter≥0.05.
-
Price Drop Constraints:
-
Big Customers: New prices must be at least 8% lower than old prices. Mathematically: PricebeforePricebefore−Priceafter≥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.
| Function | Exact Match (range_lookup = FALSE) | Approximate Match (range_lookup = TRUE or omitted) | Notes |
|---|---|---|---|
MATCH | Finds exact position; returns #N/A if no exact match. | Finds position for largest value ≤ lookup_value (requires ascending lookup_array); can handle descending with -1. | Versatile for finding positions within arrays. |
VLOOKUP | Finds exact match in the first column of lookup_table; returns #N/A. | Finds largest value ≤ lookup_value in the first column (requires ascending lookup_table). | Primarily for looking up values in columns. |
LOOKUP | Less common usage; typically defaults to approximate matching behavior. | Finds largest value ≤ lookup_value in lookup_table (requires ascending lookup_table). | Can be used for vectors or arrays; often superseded by VLOOKUP or INDEX/MATCH. |
🔑 Important:
MATCHwithmatch_type=0is for exact matches, whileVLOOKUPandLOOKUPwithrange_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.
