stochastic_optimization

Solve optimization problems under uncertainty using stochastic programming and CVaR.

56|16|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill stochastic-optimization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stochastic_optimization
Source: https://github.com/kishorkukreja/awesome-supply-chain/tree/main/skills/stochastic-optimization
Command: npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill stochastic-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pulp, scipy, matplotlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps make optimal decisions when faced with uncertain future conditions, such as fluctuating demand or unpredictable lead times, by employing advanced mathematical techniques.

Core Features & Use Cases

  • Stochastic Programming: Solves problems with uncertain parameters using methods like two-stage programming and scenario analysis.
  • Chance-Constrained Optimization: Ensures decisions meet probabilistic targets, like service levels.
  • Risk Management: Incorporates risk measures like CVaR to manage downside potential.
  • Use Case: A supply chain manager needs to decide production quantities before knowing exact customer demand. This Skill can determine the optimal production plan to minimize costs while accounting for various demand scenarios and their probabilities.

Quick Start

Use the stochastic_optimization skill to plan production under uncertain demand for products A, B, and C.

Frequently Asked Questions about stochastic_optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize production decisions when facing uncertain customer demand?

Stochastic programming solves production optimization problems under uncertain demand by evaluating multiple probabilistic scenarios to minimize costs. It uses two-stage programming to determine optimal production quantities before actual demand materializes.

What is chance-constrained optimization and how does it manage service levels?

Chance-constrained optimization ensures decisions meet probabilistic targets, like specified service levels, by constraining solutions to satisfy requirements under a defined probability threshold. It handles uncertainty by allowing constraints to hold with a certain confidence level.

How does Conditional Value-at-Risk optimization work for supply chain risk management?

Conditional Value-at-Risk (CVaR) optimization manages supply chain downside risk by minimizing the expected loss exceeding a specified Value-at-Risk threshold. It incorporates risk measures directly into multi-stage decision-making processes to limit extreme negative outcomes.

Can I use numpy and scipy for multi-stage stochastic optimization with probabilistic lead times?

Yes, this Skill uses numpy and scipy alongside pulp to solve multi-stage stochastic optimization problems involving probabilistic lead times. It implements Sample Average Approximation (SAA) to handle scenarios with uncertain parameters like prices and lead times.

What is the best way to plan for fluctuating demand and unpredictable lead times in scenario planning?

Scenario planning under uncertainty is best handled using Sample Average Approximation (SAA) and stochastic programming techniques. This approach models fluctuating demand and unpredictable lead times across multiple stages to yield optimal, cost-minimizing decisions.

When should I use stochastic optimization instead of deterministic optimization for decision making?

Use stochastic optimization for decision making when problem parameters like demand, lead times, or prices are probabilistic rather than known values. It accounts for various scenarios and their probabilities, unlike deterministic optimization which assumes fixed inputs.