← Back to Handbooks

Product Recommendation - Handbook

Type: LP (Linear Programming)

This handbook explains the Product Recommendation sample problem in the LP Black Box platform.


The Problem

Scenario

A small online store wants to recommend a personalized product bundle to a customer with a $200 budget. The customer has expressed interest in three categories: Electronics, Fitness, and Books. Maximize customer satisfaction while staying within budget.

ProductCategorySatisfaction ScorePrice ($)
Wireless EarbudsElectronics850
Smart WatchElectronics9120
Yoga MatFitness625
Resistance BandsFitness520
Novel (Bestseller)Books715
CookbookBooks412

Your Goal

Maximize total satisfaction score while staying within budget and customer preferences.

The Constraints

  1. Budget: Cannot spend more than $200

    Formula: 50×earbuds + 120×watch + 25×mat + 20×bands + 15×novel + 12×cookbook ≤ 200

  2. At least one Electronics item (customer explicitly asked)

    Formula: earbuds + watch ≥ 1

  3. At least one Fitness item (customer explicitly asked)

    Formula: mat + bands ≥ 1

  4. At least one Book (customer explicitly asked)

    Formula: novel + cookbook ≥ 1

The Variables

VariableMeaning
earbuds1 if Wireless Earbuds included, 0 otherwise
watch1 if Smart Watch included, 0 otherwise
mat1 if Yoga Mat included, 0 otherwise
bands1 if Resistance Bands included, 0 otherwise
novel1 if Novel included, 0 otherwise
cookbook1 if Cookbook included, 0 otherwise

How to Use

Step 1: Load the Sample

Select Product Recommendation from the dropdown.

Step 2: Solve

The solver finds the optimal bundle that maximizes satisfaction while respecting budget and category preferences.


Try It Yourself


This demonstrates how linear programming can power personalized recommendation systems.