ArticleslgStudy

science

Job-shop scheduling

Job-shop scheduling is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Job-shop scheduling rather than just read about it. In short: Job-shop scheduling, the job-shop problem (JSP) or job-shop scheduling problem (JSSP) is an optimization problem in computer science and operations research. It is a variant of optimal job scheduling.

Key takeaways

  • Job-shop scheduling belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Job-shop scheduling to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Job-shop scheduling from memory before moving on to harder problems.

Reference excerpt

Job-shop scheduling, the job-shop problem (JSP) or job-shop scheduling problem (JSSP) is an optimization problem in computer science and operations research. It is a variant of optimal job scheduling. In a general job scheduling problem, we are given n jobs J1, J2, ..., Jn of varying processing times, which need to be scheduled on m machines with varying processing power, while trying to minimize the makespan – the total length of the schedule (that is, when all the jobs have finished processing). In the specific variant known as job-shop scheduling, each job consists of a set of operations O1, O2, ..., On which need to be processed in a specific order (known as precedence constraints). Each operation has a specific machine that it needs to be processed on and only one operation in a job can be processed at a given time. A common relaxation is the flexible job shop, where each operation can be processed on any machine of a given set (the machines in each set are identical). The name originally came from the scheduling of jobs in a job shop, but the theme has wide applications beyond that type of instance. It is a well-known combinatorial optimization problem and was the first to undergo competitive analysis, introduced by Graham in 1966. The best problem instances for a basic model with a makespan objective are due to Taillard. In the standard three-field notation for optimal job scheduling problems, the job-shop variant is denoted by J in the first field. For example, the problem denoted by "J3|pij|Cmax" is a 3-machines job-shop problem with unit processing times, where the goal is to minimize the maximum completion time.

Problem variations Many variations of the problem exist, including the following:

Machines can have duplicates (flexible job shop with duplicate machines) or belong to groups of identical machines (flexible job shop). Machines can require a certain gap between jobs or no idle-time. Machines can have sequence-dependent setups. Objective function can be to minimize the makespan, the Lp norm, tardiness, maximum lateness etc. It can also be multi-objective optimization problem. Certain jobs must be completed before others can start (see workflow), and objectives may involve multiple-criteria. Set of jobs can relate to different set of machines. Deterministic (fixed) processing times or probabilistic processing times.

NP-hardness Since the traveling salesman problem is NP-hard, the job-shop problem with sequence-dependent setup is also NP-hard since the TSP is a special case of the JSP with a single job (the salesman in TSP) and the machines (the cities in TSP).

Problem representation The disjunctive graph is one of the popular models used for describing the job-shop scheduling problem instances. A mathematical statement of the problem can be made as follows: Let M={M1,M2,…,Mm} and J={J1,J2,…,Jn} be two finite sets. On account of the industrial origins of the problem, the Mi are called machines and the Jj are called jobs. Let 𝒳 denote the set of all sequential assignments of jobs to machines, such that every job is done by every machine exactly once; elements x∈𝒳 may be written as n×m matrices, in which column i lists the jobs that machine Mi will do, in order. For example, the matrix

x=(122331) means that machine M1 will do the three jobs J1,J2,J3 in the order J1,J2,J3, while machine M2 will do the jobs in the order J2,J3,J1. Suppose also that there is some cost function C:𝒳→[0,+∞]. The cost function may be interpreted as a "total processing time", and may have some expression in terms of times Cij:M×J→[0,+∞], the cost/time for machine Mi to do job Jj. The job-shop problem is to find an assignment of jobs x∈𝒳 such that C(x) is a minimum, that is, there is no y∈𝒳 such that C(x)>C(y).

Scheduling efficiency Scheduling efficiency can be defined for a schedule through the ratio of total machine idle time to the total processing time as below: C′=1+∑ili∑j,kpjk=C.m∑j,kpjk Where li represents the idle time of machine i, C is the makespan, and m is the number of machines. This formulation normalizes the makespan by the number of machines and total processing time, allowing for the comparison of resource utilization across job-shop scheduling (JSP) instances of varying sizes.

The problem of infinite cost One of the first problems that must be dealt with in the JSP is that many proposed solutions have infinite cost: i.e., there exists x∞∈𝒳 such that C(x∞)=+∞. In fact, it is quite simple to concoct examples of such x∞ by ensuring that two machines will deadlock, so that each waits for the output of the other's next step.

Major results Graham introduced the List scheduling algorithm in 1966, which is (2 − 1/m)-competitive, where m is the number of machines. It was later proven to be the optimal online algorithm for two and three machines. The Coffman–Graham algorithm (1972) for uniform-length jobs is also optimal for two machines and (2 − 2/m)-competitive. In 1992, Bartal, Fiat, Karloff, and Vohra presented a 1.986-competitive algorithm, followed by a 1.945-competitive algorithm by Karger, Philips, and Torng in 1994. That same year, Albers introduced a different 1.923-competitive algorithm. The best known result is by Fleischer and Wahl, achieving a 1.9201 competitive ratio. Albers also established a lower bound of 1.852. Taillard instances play a key role in developing job-shop scheduling with a makespan objective. In 1976, Garey proved that this problem is NP-complete for m > 2, meaning no optimal solution can be computed in polynomial time unless P=NP. In 2011, Xin Chen et al. provided optimal algorithms for online scheduling on two related machines, improving previous results.

Offline makespan minimization

Atomic jobs

The simplest form of the offline makespan minimisation problem deals with atomic jobs, that is, jobs that are not subdivided into multiple operations. It is equivalent to packing a number of items of various different sizes into a fixed number of bins, such that the maximum bin size needed is as small as possible. (If instead the number of bins is to be minimised, and the bin size is fixed, the problem becomes a different problem, known as the bin packing problem.) Dorit S. Hochbaum and David Shmoys presented a polynomial-time approximation scheme in 1987 that finds an approximate solution to the offline makespan minimisation problem with atomic jobs to any desired degree of accuracy.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Job-shop scheduling

Start with the simplest possible case. Write down what Job-shop scheduling claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Job-shop scheduling before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Job-shop scheduling ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Job-shop scheduling

In research
Job-shop scheduling appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Job-shop scheduling in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Job-shop scheduling is common in secondary-school and first-year university syllabi. It links to neighbouring topics NP-complete problems, Optimal scheduling, so understanding it makes those chapters shorter.
In everyday life
Look for Job-shop scheduling outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Job-shop scheduling” →

How to study Job-shop scheduling in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Job-shop scheduling means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Job-shop scheduling out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Job-shop scheduling in simple terms?

Job-shop scheduling, the job-shop problem (JSP) or job-shop scheduling problem (JSSP) is an optimization problem in computer science and operations research. It is a variant of optimal job scheduling.

Why does Job-shop scheduling matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Job-shop scheduling?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Job-shop scheduling.

Tags

  • NP-complete problems
  • Optimal scheduling

Keep exploring