Skip to content

This repository demonstrates a business optimization scenario where a company decides how many units of Product A and Product B to produce to maximize profit, considering labor and material limitations. Includes Python implementation with PuLP, results analysis, and visualization.

Notifications You must be signed in to change notification settings

YasirMondal/Optimization-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Linear Optimization Project – Production Planning

COMPANY: CODTECH IT SOLUTIONS PVT.LTD NAME: Yasir Siraj Mondal DOMAIN: Data Science DURATION: 12 weeks MENTOR: Neela Santhosh Kumar

Problem Statement

This project demonstrates solving a business optimization problem using Linear Programming (LP) in Python.
A company produces Product A and Product B. Each product uses limited resources (labor and materials) and generates profit:

Product Profit per Unit Labor Hours Material Units
A 40 2 1
B 30 1 2

Goal: Maximize total profit without exceeding available resources:

  • Total labor hours ≤ 100
  • Total material units ≤ 80

Solution Approach

  1. Decision Variables:

    • x1 = Units of Product A to produce
    • x2 = Units of Product B to produce
  2. Objective Function: Maximize Profit = 40x1 + 30*x2

  3. Constraints:

2x1 + 1x2 <= 100 # Labor constraint 1x1 + 2x2 <= 80 # Material constraint x1, x2 >= 0 # Non-negativity

  1. Tool Used: Python with PuLP library to model and solve the LP problem.

How to Run

  1. Clone the repository:

git clone cd linear-optimization-project

  1. Create and activate virtual environment:

python -m venv venv

Windows

venv\Scripts\activate

Mac/Linux

source venv/bin/activate

  1. Install dependencies: pip install -r requirements.txt

  2. Run the optimization script: python optimization.py

  3. Output: Optimal units to produce for Product A and Product B Maximum achievable profit Optional bar chart visualization of production plan

Insights

The solution identifies the optimal production quantities for maximizing profit. Resource constraints (labor and materials) limit production. Businesses can use this model to analyze “what-if” scenarios, e.g., adding more labor or materials to increase profit.

Tech Stack

Python 3.8+ PuLP – Linear Programming Matplotlib – Visualization

Author

Yasir Mondal – mondalyasir386@gmail.com

License: 2025 Yasir Mondal

This README is complete, professional, and fully explains the problem, solution, and usage.

About

This repository demonstrates a business optimization scenario where a company decides how many units of Product A and Product B to produce to maximize profit, considering labor and material limitations. Includes Python implementation with PuLP, results analysis, and visualization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages