I am new to linear/integer programming and I am having a hard time formulating constraints for a specific if-then statement in a fixed charge problem. Suppose that there are five manufacturers of t-shirts, and a customer wishes to purchase 400 t-shirts while minimizing costs.
Producer | Variable cost/t-shirt | Delivery | Availability |
---|---|---|---|
A | 3 | 40 | 200 |
B | 3.5 | 30 | 100 |
C | 4.10 | Free delivery | 100 |
D | 4.1 | 30 | 200 |
E | 3.2 | 30 | First 100 t-shirts |
E | 2.90 | 20 | 101st-150th t-shirt |
Producer E has an availability of 150 t-shirts. The first 100 t-shirts bought from producer E have a variable cost of $3.20 and a delivery fee of $30. If the customer orders more than 100 t-shirts from producer E, she can buy them at a variable cost of $2.90 and an additional fee of $20.
How can I create constraints from this if-then statement:
- Xe1 = number of expensive t-shirts bought at producer E
- Xe2 = number of cheap t-shirts bought at producer E
I want constraint Xe2 <= 0 to exist when Xe1 < 100.
Thanks in advance!