Free Optimization Engine — Up to 50 SKUs

Supply Chain Optimization
& Simulation

Linear & non-linear programming solver for production planning, transport, procurement, and full supply chain optimization. Minimize cost, maximize profit — all in your browser.

🔒 100% browser-based · Zero data uploaded · No signup required

1 Outcome & Objective
2 Data Input
3 Constraints & Calibration
4 Solver & Results

🎯 Choose Your Optimization Outcome

What do you want to optimize? Select your primary objective. The solver will formulate the mathematical program accordingly.

💰
Cost Minimization
Minimize total production + transport + procurement cost
🗺️
Distance Minimization
Minimize total transport distance across the network
📦
Volume Maximization
Maximize throughput and production volume output
📈
Profit Maximization
Maximize revenue minus total costs across the chain
🏦
Revenue Maximization
Maximize total revenue from demand fulfillment

⚙️ Solver Type

Choose the mathematical programming approach.

Linear Programming: All cost/constraint relationships are proportional. Fast, guaranteed global optimum via Simplex method. Recommended for most supply chain problems.

🏗️ Optimization Mode

Select which part of the supply chain to optimize. This determines the constraint template.

🏭 Production Planning

Optimize production quantities for each SKU. Best for volume & profit optimization.

🚛 Transport Optimization

Optimize shipment allocation across routes. Best for cost & distance optimization.

🤝 Procurement Optimization

Optimize purchase quantities from suppliers. Best for cost & volume optimization.

🔗 Full SC Optimization

End-to-end: production + transport + procurement. Best for profit & revenue optimization.

📋 Data Input — Up to 50 SKUs

Upload a CSV, enter data manually, or load the built-in sample dataset. All data stays in your browser.

📁
Drop your CSV file here or click to browse
Max 50 SKUs · See required format below
📐 Required CSV Format (click to expand)
SKU_ID,SKU_Name,Unit_Cost,Selling_Price,Demand,Min_Order,Max_Capacity,Lead_Time_Days,Transport_Cost_Per_Unit,Distance_KM,Supplier,Weight_KG SKU001,Widget Alpha,120,250,500,50,800,7,15,350,Supplier_A,2.5 SKU002,Gear Beta,85,180,1200,100,2000,5,10,120,Supplier_B,1.8
#SKU IDNameUnit Cost (₹)Selling Price (₹) DemandMin OrderMax CapacityLead Time (d) Transport ₹/unitDistance (km)SupplierWeight (kg)
0 / 50 SKUs loaded

🔧 Global Constraints & Calibration

Set system-wide constraints. The solver will respect these limits while optimizing your chosen objective. Adjust or leave defaults.

₹ — Maximum total spend across all SKUs
units — Max total units in storage
% — Minimum demand fulfillment rate
km — Total network distance cap
kg — Total weight handling capacity
Max iterations for convergence

📊 Per-SKU Constraint Overrides

Fine-tune individual SKU constraints. The values below are auto-populated from your data. Edit any cell to override.

SKU IDNameMin QtyMax Qty Force IncludePriority (1-10)

🧮 Solver Engine

Running optimization...

Initializing solver...

Frequently Asked Questions

Everything you need to know about supply chain optimization

What is supply chain optimization?
Supply chain optimization uses mathematical programming (linear and non-linear) to find the best allocation of resources — minimizing costs, maximizing profits, or optimizing volumes — across production, transport, and procurement decisions. It considers constraints like capacity, demand, budget, and lead times to produce actionable plans.
How can I optimize my supply chain for free?
Use this Mathnal Supply Chain Optimization Tool. It supports linear and non-linear optimization for cost, distance, volume, profit, and revenue across up to 50 SKUs. Upload your data or enter it manually. It runs 100% in your browser — no signup, no data leaves your machine.
What is the difference between linear and non-linear optimization?
Linear optimization assumes all relationships are proportional — doubling production doubles cost. It's fast and guarantees a global optimum. Non-linear optimization handles curved relationships like economies of scale, diminishing returns, and volume discounts. It's more realistic but may find local optima. This tool supports both approaches.
What types of optimization does this tool support?
Five objectives: cost minimization, distance minimization, volume maximization, profit maximization, and revenue maximization. Four modes: production planning (volume/profit), transport optimization (cost/distance), procurement optimization (cost/volume), and full supply chain optimization (profit/revenue). All support up to 50 SKUs with configurable constraints.
What CSV format does the tool require?
Twelve columns: SKU_ID, SKU_Name, Unit_Cost, Selling_Price, Demand, Min_Order, Max_Capacity, Lead_Time_Days, Transport_Cost_Per_Unit, Distance_KM, Supplier, Weight_KG. Download the template from the Data Input step. A sample dataset with 15 SKUs is also built in for testing.
Is my data safe?
Absolutely. All calculations run in JavaScript in your browser. No data is transmitted to any server. Your supply chain data never leaves your device. You can verify this in your browser's Network tab — zero outbound requests.
What is shadow price in optimization?
The shadow price (dual value) tells you how much the objective function would improve if you relaxed a binding constraint by one unit. For example, if the budget shadow price is ₹2.5, adding ₹1 to your budget would improve profit by ₹2.5. It helps prioritize where to invest for maximum impact.
What is the Simplex method used in this tool?
The Simplex method is an iterative algorithm that solves linear programs by traversing vertices of the feasible region. It's guaranteed to find the global optimum in polynomial time for practical problems. This tool implements a JavaScript-based Simplex solver inspired by PuLP's approach, running entirely in your browser.
Can I use this for production planning?
Yes. Select "Production Planning" mode with volume or profit objective. Enter your SKU data with production costs, capacities, and demand. The solver finds the optimal production quantity for each SKU that maximizes throughput or profit while respecting capacity and budget constraints.
How does transport optimization work?
Transport optimization mode minimizes total transport cost or distance. It uses per-unit transport costs, distances, and weight data for each SKU to determine optimal shipment allocations. Constraints include maximum network distance, weight capacity, and per-SKU demand fulfillment requirements.