How to use linprog only once for two different constraints
Show older comments
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 Comment
Matt J
on 27 Aug 2014
Why can you only use linprog once?
Accepted Answer
More Answers (0)
Categories
Find more on Linear Programming and Mixed-Integer Linear Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!