Mathematical programming (simplex method)

In summary, the conversation discusses the use of the simplex method to create a linear programming model that minimizes total cost for hiring full time and part time staff. The model includes constraints for at least 4 full time staff and a one hour lunch break.
  • #1
shikarihana
1
0

Homework Statement


This question is about simplex method

A full time staff works seven hrs which includes an hour break in the middle (he is paid for his break). A part time staff works four hrs. The no of staff needed is shown below

Time No of staff needed
9-10am 6
10-11am 5
11-12noon 7
12noon-1p.m 8
1-2pm 8
2-3pm 7
3-4pm 5
4-5pm 6
At least 4 full time staff must be hired. The full time staff cost 12pounds per hr whilst a part time staff cost 7pounds per hr. Build a linear programming model that minimize the total cost.

The Attempt at a Solution



Let t=1 be the time at 9 to 10a.m
t=2 be the time at 10 to 11a.m
...
t=8 be the time at 4 to 5p.m.

let xt = no of part time staff in time t
yt = no of full time staff in time t
We need to minimize 7.5(x1 + ... + x8) + 12(y1 + ... + x8)

Subject to xt >= 0, yt>=0
Constraints : 7y1 + 4x1>= 6
7y2 + 4x2>= 5
7y3 + 4x3>= 7
7y4 + 4x4>= 8
7y5 + 4x5>= 8
7y6 + 4x6>= 7
7y7 + 4x7>= 5
7y8 + 4x8>= 6

My problem is to find the constraint for this question as I do not know how to write the constraint for (at least 4 full time staff is needed and the one hour lunch break) As you can see, the constraint I make is incomplete. It would be grateful if someone could tell me how to write the constraint.

Thanks a lot!
 
Physics news on Phys.org
  • #2


Thank you for your question. The constraint for at least 4 full time staff can be written as:

yt >= 4

This ensures that there are at least 4 full time staff working at any given time. As for the lunch break, you can add a constraint that accounts for the one hour break in the middle:

yt + xt >= 7

This ensures that there are at least 7 staff (full time and part time combined) working during the time period of 12pm to 1pm.

I hope this helps. Good luck with your linear programming model!
 

1. What is the simplex method?

The simplex method is a mathematical technique used to solve linear programming problems. It involves creating a series of linear equations and using a set of rules to determine the optimal solution.

2. How does the simplex method work?

The simplex method works by starting with an initial feasible solution and systematically evaluating neighboring solutions until an optimal solution is found. This is done by using a set of mathematical equations and a process called pivoting to determine the best solution.

3. What are the key components of the simplex method?

The key components of the simplex method include the objective function, constraints, decision variables, and the simplex table. The objective function determines the goal of the problem, the constraints define the limitations, the decision variables represent the unknowns, and the simplex table contains the equations and values used to find the optimal solution.

4. When is the simplex method used?

The simplex method is primarily used to solve linear programming problems in which the objective function and constraints can be expressed as linear equations. It is commonly used in various industries such as finance, operations research, and supply chain management to optimize resource allocation and decision-making.

5. What are the advantages of using the simplex method?

The advantages of using the simplex method include its ability to find the optimal solution quickly and efficiently, its flexibility in handling a large number of variables and constraints, and its ability to handle both maximization and minimization problems. Additionally, the simplex method is easily implemented and can handle complex real-world problems.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
10
Views
1K
  • Programming and Computer Science
Replies
9
Views
1K
  • Mechanical Engineering
Replies
1
Views
697
Replies
115
Views
7K
  • Programming and Computer Science
Replies
15
Views
2K
  • Programming and Computer Science
Replies
2
Views
307
  • Special and General Relativity
Replies
15
Views
471
  • Set Theory, Logic, Probability, Statistics
Replies
28
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
2K
Replies
2
Views
611
Back
Top