Skip to content

Player1205/AI-RosterOptimiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏏 IPL Roster Optimizer

IPL Roster Optimizer Tech Stack License

πŸ“‹ Project Summary

A full-stack, AI-powered web application designed to help IPL franchises optimize their player rosters. It identifies undervalued talent and enables data-driven decisions regarding trades and contracts using machine learning and mathematical optimization.


🎯 The Problem

IPL teams operate under a strict β‚Ή100 crore salary cap and must select the best possible 25-player squad from hundreds of contracted athletes. Manual analysis of these options is incredibly time-consuming and often prone to human bias, making it difficult for teams to identify which players provide the best value for money.

πŸ’‘ The Solution

The IPL Roster Optimizer utilizes machine learning algorithms to predict future player performance. It then applies mathematical optimization models to build the perfect squad, maximizing total team performance while strictly adhering to budget constraints.


✨ Key Features

  • Smart Roster Building: Upload player data, set your franchise budget, and receive an AI-optimized squad.
  • Value Analysis: Quickly identify undervalued "hidden gems" and flag overpaid players taking up valuable cap space.
  • Trade Simulator: Compare players head-to-head to see the direct impact of a trade on overall team performance and salary cap flexibility.
  • Contract Intelligence: Make informed decisions on which players to extend and which to release into the auction pool.

βš™οΈ How It Works

  1. Upload Data ➑️ Input data for 182+ players with historical stats.
  2. AI Prediction ➑️ Machine learning models predict future performance metrics.
  3. Calculate Value ➑️ Determines the Value Index (Performance ÷ Salary).
  4. Squad Optimization ➑️ Mathematical algorithms solve for the optimal combination of players under the cap.
  5. Dashboard Visualization ➑️ Review results via interactive charts, tables, and insights.

πŸ’» Tech Stack

Frontend

  • Framework: React
  • Styling: Tailwind CSS
  • Visualization: Recharts
  • Hosting: Netlify

Backend

  • Framework: Python FastAPI
  • Machine Learning: Scikit-learn (Linear Regression)
  • Optimization: PuLP (Mixed-Integer Linear Programming - MILP)
  • Hosting: Render

πŸ“Š The Value Index System

Our proprietary metric determines a player's worth by dividing their predicted performance by their salary cost: Performance Γ· Salary = Value Index.

Value Index Category Action
> 0.5 Elite Must Keep
0.3 - 0.5 Good Monitor
0.1 - 0.3 Fair Squad Filler
< 0.1 Poor Trade Away

Example Insight

  • ❌ Bad Deal: Rahul Chahar - β‚Ή525L salary, 0.03 performance β†’ Value 0.0001
  • βœ… Great Deal: Rajat Patidar - β‚Ή20L salary, 31.41 performance β†’ Value 1.4956
  • 🧠 Smart Trade: Swap Chahar for Patidar β†’ Save β‚Ή505L + Gain 31.38 performance points!

πŸ“ˆ Real Results (Sample Run)

  • Players Analyzed: 182
  • Optimal Squad Size: 21 players selected
  • Budget Used: β‚Ή5 crores (Only 5% of the β‚Ή100 crore cap utilized!)
  • Total Performance Score: 183.13
  • Top Value Player: Rajat Patidar (1.4956 Value Index)

πŸ‘₯ Use Cases

  • Team Managers: Optimize starting rosters while remaining compliant with the salary cap.
  • Analysts: Identify lucrative trading opportunities before the deadline.
  • Scouts: Uncover undervalued talent hidden in the data.
  • Owners: Make financially sound contract extension and release decisions.

πŸš€ Technical Highlights

  • Full-stack web application architecture.
  • AI/ML predictive modeling integration.
  • Mathematical optimization (MILP) solving complex constraints.
  • RESTful API featuring 20+ robust endpoints.
  • Interactive, client-side data visualizations.
  • Fully cloud-deployed and production-ready.

Built with data, designed for championships. πŸ†

About

🏏 IPL Roster Optimizer - It Is A full-stack AI-powered web application that helps IPL teams optimize their player rosters, identify undervalued talent, and make data-driven decisions about trades and contracts with help Machine Learning & Predictive Models.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors