Product mix and resource allocation solved as a linear program, by hand and in code

par fidji DeepSeek Anglais ~636 tokens
Extrait public Verrouillé
Plain-language problem → decision variables, objective and constraints with units. Small cases solved exactly (every vertex listed and evaluated), larger ones via solver code. Binding constraints, shadow prices verified by the dual, and what-if ranges for your manager…

À propos de ce prompt

Formulates a real allocation problem (what to produce, how to split hours, budget or machine time) as a linear program: variables, objective, constraints. Then solves it with every corner point evaluated, explains which constraints bind and what one extra unit of each resource is worth, and gives solver code to confirm. DeepSeek is used for its careful, verifiable algebra: you can redo each step by hand.

Exemple de résultat

Fourni par l'auteur
FORMULATION T = tables, C = chairs (units per month) Maximise 120T + 50C Carpentry: 4T + C ≤ 160 h | Finishing: 2T + C ≤ 100 h | Demand: C ≤ 60 | T, C ≥ 0 VERTICES | Point | How obtained | Feasible? | Margin | | (0, 0) | origin | yes | 0 | | (40, 0) | 4T = 160 | finishing 80 ≤ 100 ✓ | 4,800 | | (0, 60) | C = 60 | yes | 3,000 | | (20, 60) | 2T + 60 = 100 | carpentry 140 ≤ 160 ✓ | 2,400 + 3,000 = 5,400 | | (30, 40) | 4T + C = 160 and 2T + C = 100 → 2T = 60 | demand 40 ≤ 60 ✓ | 3,600 + 2,000 = 5,600 | Optimum: 30 tables, 40 chairs, margin 5,600. INTERPRETATION Binding: carpentry (160 h used) and finishing (100 h used). Slack: 20 chairs of demand. Shadow prices: 4y₁ + 2y₂ = 120 and y₁ + y₂ = 50 → 2y₁ = 20 → y₁ = 10, y₂ = 40. Check: 160 × 10 + 100 × 40 = 5,600 ✓ One extra finishing hour is worth 40; one extra carpentry hour only 10. Overtime in finishing pays if it costs less than 40/h…

Fiche technique

Modèle
DeepSeek
Langue du prompt
Anglais
Pour qui
Operations managers, analysts, small manufacturers and students in operations research
Longueur
~636 tokens (estimation)
Format livré
Texte du prompt, affiché en ligne après achat

Avis

Réservés aux acheteurs

Aucun avis pour l'instant. Seuls les acheteurs de ce prompt peuvent en laisser un.

Signaler ce prompt