Exercises Mi P
Exercises Mi P
Formulate linear constraints in terms of binary variables for the following case: If A is true and B is true then C is true or D is true. (inclusive OR) 2. It is proposed to model the condition, if select item 1 and not item 2, then select item 3 and item 4 with the inequality: y3 + y4 2(y1-y2) where yi are binary variables that represent the selection of the corresponding items. Using propositional logic, derive the inequality (ies) that model the above condition. If you arrive at a different model, determine whether it is better or not, and in what sense than the inequality above.
3. Consider the cost function shown in the graph below. (a) Formulate the cost function C as a disjunction. (b) Develop the mixed-integer constraints applying the convex hull to the disjunction. C
a2+ b2x
a+bx
1 1
a) Reformulate it as an MINLP using the convex hull formulation for the disjunction b) Reformulate it as a big-M MINLP (M=50) c) Solve both reformulations and compare their relaxations.
min Z =c+( x1 3) 2 + ( x 2 2) 2 st Y3 Y1 Y2 2 2 2 2 2 2 x1 + x 2 1 ( x1 4) + ( x 2 1) 1 ( x1 2) + ( x 2 4) 1 c=2 c =1 c=3 0 x1 8,0 x 2 8,Y j = true, false, j = 1,2,3
5. Given the bilinear NLP below, find the global optimal solution using the McCormick convex envelopes and a spatial branch and bound. To obtain good initial lower and upper bounds solve LPs for the bounds of the 4 continuous variables. min f = x1 - x2 - y1 -x1y1 + x1y2 + x2y1 -x2y2 st. x1 + 4x2 8 4x1 + x2 12 3x1 + 4x2 12 2y1 + y2 8 y1 + 2y2 8 y1 + y2 5 0 x1, x2, y1, y2 10 Optional: Verify your answer with the webinterface of the software package BARON in GAMS. (Use OPTION NLP=BARON;)
6. A company is considering to produce a chemical C which can be manufactured with either process II or process III, both of which use as raw material chemical B. B can be purchased from another company or else manufactured with process I which uses A as a raw material. Given the specifications below, formulate an MILP model and solve it with GAMS to decide: a) Which process to build (II and III are exclusive)? b) How to obtain chemical B? c) How much should be produced of product C? The objective is to maximize profit. Consider the two following cases: 1. 2. Data: Investment and Operating Costs Fixed ($/hr) Process I Process II Process III Prices: A: B: 1000 1500 2000 $500/ton $950/ton Process I Process II Process III 90% of A to B 82% of B to C 95% of B to C Variable($/ton raw mat) 250 400 550 Maximum demand of C is 10 tons/hr with a selling price of $1800/ton. Maximum demand of C is 15 tons/hr; the selling price for the first 10 ton/hr is $1800/ton, and $1500/ton for the excess.
Conversions:
Maximum supply of A: 16 tons/hr NOTE: You may want to scale your cost coefficients (e.g. divide them by 100).
7.
It is proposed to manufacture a chemical C with a process I that uses raw material B. B can either be purchased or manufactured with either of two processes, II or III, which use chemical A as a raw material. In order to decide the optimal selection of processes and levels of production that maximize profit formulate the MINLP problem and solve with the augmented penalty/outer-approximation/equality-relaxation algorithm in DICOPT++. Data: Conversion: Process I Process II Process III C = 0.9B B = ln(1 + A) Maximum capacity: 5 ton prod/hr B = 1.2 ln (1 + A) (A, B, C, in ton/hr)
Prices:
A $ 1,800/ton B $ 7,000/ton C $13,000/ton (maximum demand: 1 ton/hr) Fixed (103$/hr) Variable (103$/ton product) 2 1 1.2
Investment cost
Process Process
I II
3.5 1 1.5
7. Seven jobs (tasks) have to be scheduled on two machines. There are no setup times between different tasks. Processing times are known. Tasks: Machines: 1, 2 ..7 A, B 4 3 2 5 4 4 6 2 3 7 5 2
8. Seven jobs (tasks) have to be scheduled on two machines, as before, but there are also release and due times, Ri, Di, that have to be satisfied. Develop a generic MILP formulation for this problem