ISE 426 Homework 4

pdf

School

Lehigh University *

*We aren’t endorsed by this school

Course

426

Subject

Industrial Engineering

Date

Jan 9, 2024

Type

pdf

Pages

6

Uploaded by GrandChimpanzee3984

Report
ISE 426: Optimization and Applications (Spring 2022) Instructor: Dr. Karmel S.Shehadeh Homework #4-Due via Course Site at 9 AM on April 11, 2022 Instructions Show all of the work leading to the solution of each problem. Points are allocated to all of the steps of the solution process, not just the final answer. I strongly encourage you to type all your assignment solutions using your favorite typesetting system (e.g., MS Word, L A T E X, etc.). For your convenience, a L A T E X template for typing your solution is available in the assignment folder on the Course Site . If you write an AMPL code to solve any problem, you are required to provide a carefully and detailed commented version of the code in an appendix of the assignment . Note that your code is NOT a substitute for a detailed written explanation of the approach you take to solve the problem and your results. Include a title page with assignment number, your name and contact information, and the names of all students that you discussed your assignment with (if any). Make sure that you scan/compile your HW work into a single and legible PDF file. Bonne chance!
ISE 426 Homework #4-Due via Course Site at 9 AM on April 11, 2022 Spring 2022 Question 1 (25 points). MILP Formulation for an Assignment Problem. There are two machines for processing jobs, each with an availability of 6 hours. Consider the following seven possible jobs with their respective profits and processing times. Table 1: Profit and processing time of each job Job 1 2 3 4 5 6 7 Profit p j 10 5 20 12 14 7 8 Processing time t j (in hour) 2.5 1.5 4.5 2.8 3 1.7 1.8 1.1 Formulate a mixed-integer linear program that determines the optimal job assignment on the two machines that maximize the total profit. In particular, clearly specify the (a) (5 points) Decision variables. (b) (3 points) Objective. (c) (7 points) Constraints. 1.2 Model and solve the problem using AMPL . In particular, produce a print-out of the following (a) (5 points) AMPL code (model and data). (b) (2.5 points) Optimal solution. (State clearly, in words, the optimal schedule) (c) (2.5 points) Optimal objective value. Lehigh University Page 1 of 5
ISE 426 Homework #4-Due via Course Site at 9 AM on April 11, 2022 Spring 2022 Question 2 (25 points). Binary Variables+Logical Constraints+ AMPL Donki is a rich investor, and he is designing a new portfolio combination. As a smart investor, Donki selects several potential stocks from the service sector and manufacturing sector. The expected return and risk factor for each asset is provided in the following table. Service Manufacturing 1 2 3 4 5 6 Estimated return (in %) 5.2 3.1 2.9 4.2 3.7 4.8 Risk factor (per $1M investment) 1.60 1.22 1.18 1.40 1.33 1.42 The total investment amount available is $100 million and the risk factor of the portfolio should be less than 120. If an asset is included in the portfolio, the minimum investment amount to that asset is $20M. Since handling the trading of multiple assets is costly, at most four assets should be included in the portfolio. However, to achieve diversification, at least one of the assets in each sector should be included. Moreover, neither assets 5 nor 6 can be included unless asset 4 is included. 2.1 Formulate this problem as a mixed-integer linear program using appropriate binary variables. In particular, clearly specify the (a) (5 points) Decision variables. (b) (3 points) Objective. (c) (7 points) Constraints. 2.2 Model and solve the problem using AMPL to find out which investments should be pursued. In particular, produce a print-out of the following (a) (5 points) AMPL code (model and data). (b) (2.5 points) Optimal solution. (State clearly, in words, the optimal investment) (c) (2.5 points) Optimal objective value. Lehigh University Page 2 of 5
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
ISE 426 Homework #4-Due via Course Site at 9 AM on April 11, 2022 Spring 2022 Question 3 (20 points). Fun with Binary Variables: Switching Constraints A firm must produce either 1000 units of product A and 1500 units of product B or 1500 units of product A and 1000 units of product B. There are three processes that can be used to produce these two products. Each process requires a certain number of labor hours and machines. The input and product of each process per hour is given in the following table. Input Product Labor (hr) Machine (unit) A (unit) B (unit) Process 1 20 35 40 42 Process 2 12 12 45 35 Process 3 25 28 36 44 There is 600 labor hours available at a cost of $12 per hour and an unlimited number of machines at a cost of $15 per unit. 1. ( 10 points) Formulate the problem as a mixed-integer linear program using appropriate binary variable(s) to decide the number of hours employed in each process at a minimum cost. Make sure you clearly state the decision variables, objective, and constraints of the problem. 2. ( 10 points) Suppose that the firm has one more option in the production requirement. Specifically, the firm can produce products A and B that satisfy either one of the following requirements. (a) 1000 units of product A and 1500 units of product B (b) 1200 units of product A and 1200 units of product B (c) 1500 units of product A and 1000 units of product B Formulate the problem with this new set of requirements as a mixed-integer linear program using appropriate binary variable(s) to decide the number of hours employed in each pro- cess at a minimum cost. Make sure you clearly state the decision variables, objective, and constraints of the problem. Food for thought (i.e., no need to answer): could you generalize the problem formulation in part 2 if the firm only needs to satisfy one of k > 3 different requirements? Lehigh University Page 3 of 5
ISE 426 Homework #4-Due via Course Site at 9 AM on April 11, 2022 Spring 2022 Question 4 (25 points). Fun with Binary Variables: Logical Conditions. Consider the following two binary variables x 1 ∈ { 0 , 1 } , x 2 ∈ { 0 , 1 } . I need your Superstar magic in using these variables to represent the outcome of the three logical operations AND, OR, XOR. The definition of these three operations is as follows: Let y = ( x 1 AND x 2 ). That is, y = 1 if and only if x 1 and x 2 are 1, and 0 otherwise. Let z =( x 1 OR x 2 ). That is, z = 1 if and only if at least one of these variables x 1 and x 2 is 1, and 0 otherwise. Let v = ( x 1 XOR x 2 ). That is, v is 1 if and only if the variables x 1 and x 2 have different values, and is 0 otherwise. Table 2 shows the value of each variable z, y, v as a function of the value of x 1 and x 2 . The definition in the table is equivalent to the one given above. Table 2: Value of z, y, v as a function of x 1 and x 2 . y (AND) z (OR) v (XOR) x 2 = 0 x 2 = 1 x 2 = 0 x 2 = 1 x 2 = 0 x 2 = 1 x 1 = 0 0 0 0 1 0 1 x 1 = 1 0 1 1 1 1 0 4.1 ( 8 points ) Write a set of linear constraints that define y = ( x 1 AND x 2 ). The constraints should only involve the variables y , x 1 , and x 2 . 4.2 (8 points) Write a set of linear constraints that define z =( x 1 OR x 2 ). The constraints should only involve the variables z , x 1 , and x 2 . 4.3 (8 points) Write a set of linear constraints that define v = ( x 1 XOR x 2 ). You are allowed to introduce an additional auxiliary variable. Thus, the constraints should involve the variables v , x 1 , x 2 , and possibly an additional variable w . 4.4 (1 point) Any feedback on this question? Was it difficult? Fun? etc. Lehigh University Page 4 of 5
ISE 426 Homework #4-Due via Course Site at 9 AM on April 11, 2022 Spring 2022 Question 5 (25 points). Solving IP using Branch-and-Bound Use the branch-and-bound method to solve the following Binary IP: max 9 x 1 + 5 x 2 + 6 x 3 + 4 x 4 s.t. 6 x 1 + 3 x 2 + 5 x 3 + 2 x 4 10 x i ∈ { 0 , 1 } , i = 1 , 2 , 3 , 4 . In your solutions show the branch-and-bound tree. Solve the relaxation as well as all the subprob- lems using AMPL . Extra Credit(s) A fairy gave me a handmade blue pen (with unlimited, yet unknown, magical properties). Draw a picture with that pen. If it makes me laugh, is mathematical, fun, or creative, you get the extra credit. Be creative and justify your answer/picture!!. Lehigh University Page 5 of 5
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help