213k views
0 votes
Linear optimization/ Matlab coding

Part (a) An electronics company must deliver exactly 2400 units within the next 3 weeks. The client will pay $30 for each unit delivered by the end of the first week; $25 for each unit delivered by the end of the second week, and $20 for each unit delivered by the end of the third week. Each worker can only assemble 40 units per week. The present labour force of the company is 15 workers. Hence, the company must hire and train temporary help. Any of the experienced workers can be taken off the assembly line to instruct at most two trainees; after one week of instruction, each of the trainees can either proceed to the assembly line or instruct new trainees. Some workers may become idle towards the end of the project; however, all workers must be kept on the payroll until the end of the project. The weekly wages of a worker, whether assembling, instructing, or being idle, are $600; the weekly wages of a trainee are $300. We assume that wages are the only costs associated with production. Here is one possible example of scheduling the production: 1 Week 1: 12 assemblers, 3 instructors, 6 trainees, revenue from assembled units = 12 · 40 · 30 = 14400, wages = 12 · 600 + 3 · 600 + 6 · 300 = 10800. Week 2: 13 assemblers, 8 instructors, 16 trainees, revenue from assembled units = 13 · 40 · 25 = 13000, wages = 13 · 600 + 8 · 600 + 16 · 300 = 17400. Week 3: 35 assemblers, 2 idle, revenue from assembled units = 35 · 40 · 20 = 28000, wages = 35 · 600 + 2 · 600 = 22200. Total profit = total revenue − total wages = 55400 − 50400 = 5000 dollars. The company wants to schedule the production so as to maximize the total profit. Write down a Linear Programming formulation of this problem as Matlab code. Explain the meaning of your variables. Hint: It follows from the theory of Linear Programming that you do not need to explicitly assume that the variables in your formulation of this problem take only integer values.

Part (b) Solve the problem in Matlab. Print an optimal schedule of production and the total profit obtained from this optimal solution

1 Answer

4 votes

Final answer:

To solve the problem using linear programming in Matlab, use variables for units delivered, workers instructing trainees, and trainees assigned to the assembly line. Set the objective function to maximize total profit. Set constraints for units delivered, worker productivity, worker and trainee relationship, and payroll. Solve for the optimal solution using linear programming techniques.

Step-by-step explanation:

The given problem can be formulated as a linear programming problem in Matlab using the variables as follows:

  • x1, x2, x3: Number of units delivered by the end of the first, second, and third week respectively.
  • y1, y2, y3: Number of workers assigned to instruct trainees in the first, second, and third week respectively.
  • z1, z2, z3: Number of trainees assigned to the assembly line in the first, second, and third week respectively.

The objective function is to maximize the total profit, which is the difference between the revenue and wages. The constraints are:

  • Number of units delivered cannot exceed the required 2400 units: x1 + x2 + x3 = 2400.
  • Each worker can assemble a maximum of 40 units per week: 40x1 + 40x2 + 40x3 <= 40y1 + 40y2 + 40y3 + 40z1 + 40z2 + 40z3.
  • Each worker can instruct at most two trainees: y1 <= 2z1, y2 <= 2z2, y3 <= 2z3.
  • All workers must be kept on the payroll until the end of the project: y1 + y2 + y3 = 15.
  • Non-negative constraints for all variables: x1, x2, x3, y1, y2, y3, z1, z2, z3 >= 0.
User Muhammed Umer
by
7.8k points