How to use linprog only once for two different constraints
Afficher commentaires plus anciens
Hello everyone.
I need help with the following problem:
I want to use the linprog function only once when I have two different constraints (actually they are equalities) for the same variable.
In one case, I have: b = [0;0;15] and in the other case I have b = [0;0;16];
You can think of it as an optimization problem that in a certain month I will produce 15 elements and 16 on next one.
I think it should be very simple, but I can't think of a way to do it.
Oh, and for the record, I know it would be super easy to just use linprog twice. The problem is I can only use it once.
With my methods I could only get unfeasible results.
Any thoughts?
1 commentaire
Matt J
le 27 Août 2014
Why can you only use linprog once?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear Programming and Mixed-Integer Linear Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!