Docsity

Slab Design Problem in Steel Mill using Constraint Programming, Study notes of Computer Numerical Control

Partial preview of the text

Download Slab Design Problem in Steel Mill using Constraint Programming and more Study notes Computer Numerical Control in PDF only on Docsity!

Modelling a Steel Mill

Slab Design Problem

Constraint Programming

Alan M. Frisch

Artificial Intelligence Group

Department of Computer Science

University of York

Ian Miguel

School of Computing

University of St Andrews

Slab Design

  • The mill can make σ different slab sizes, which

are given.

  • Given d input orders each specifying:
    • A colour (route through the mill).
    • A weight.
  • Pack orders onto slabs such that the total slab

capacity is minimised, subject to:

  • Capacity constraints.
  • Colour constraints.

What’s Interesting about this

Problem?

  • Many problems exhibit flexibility in portions of their

structure.

  • Example: the number required of a certain type of

variable.

  • Flexibility must be resolved during the solution process.
  • Slab design is a representative example of this type of

problem:

  • Number of slabs is unknown.

What’s Interesting about this

Problem?

  • Symmetry.
    • Some instance-based.
  • Channelling.
    • Between matrices of decision variables.
  • Implied Constraints.
    • Some of which follow from the symmetry-breaking.

A Solution

  • Use 6 Slabs:

2

3

1 1 1

1

1

1

f

g i

e

c d

b

h

a

(size 4) (size 3) (size 3) (size 1) (size 1) (size 1)

2

This is an optimal solution as it produces no wastage.

How Many Slabs?

  • Number of slabs is not fixed.
    • If there are d orders, then an optimal solution uses

no more than d slabs.

  • An array, S , of slab variables: s [1], …, s [ d ]
    • Domains size σ.
  • Objective

minimise

The Order Matrix: O

o a

o b

o c

o d

s 1

s 2

s 3

s 4

Capacity constraints:

(Note: is row j column i of the matrix).

Every order goes on exactly 1 slab

O [ i,j ]= 1 iff order i is placed on slab j.

The Colour Matrix: C

  • Channelling: for all i, j

Red Green Blue Orange

s 1

s 2

s 3

s 4

Colour constraints

  • Why → and not ↔?

Solution

2

3

1 1 1 1 1

2

1

o a

o b

o c

o d

o e

o f

o g

o h

o i

O

o a

o b

o c

o d

o e

o f

o g

o h

o i

s 1

0 0 0 0 0 0 1 1 1

s 2

1 0 1 0 0 0 0 0 0

s 3

0 1 0 0 0 0 0 0 0

s 4

0 0 0 1 1 1 0 0 0

… 0 0 0 0 0 0 0 0 0

C

Red Green Blue Orange Brown

s 1

0 0 0 1 1

s 2

1 1 0 0 0

s 3

0 1 0 0 0

s 4

0 0 1 1 0

… 0 0 0 0 0

S

Symmetry

  • Slabs are indistinguishable.
  • So model suffers from symmetry:
    • Counteract with binary symmetry-breaking constraints:

s[1] ≥ s[2] , s[2] ≥ s[3] , …

Instance Symmetry

  • Orders with same weight, colour are symmetrical.
  • Order symmetrical columns lexicographically.
  • For all i, j such that i<j and orders i and j have the

same weight and colour, add the constraint

  • Could restrict this to a “sequence” of constraints.
    • For any i, j such that i+1=j, …….

Implied Constraints

  • Combined weight of input orders is a lower bound

on optimisation variable:

  • How does this help?
    • If find a solution of this quality, can stop

immediately.

Implied Constraints

  • AssWt i

is the weight of orders assigned to slab i.

  • Prune domains by reasoning about reachable values.
    • Also gives a maximum assigned weight.
    • So, revise lower bound on number of slabs required:
  • Incorporate both size and colour information.
  • More powerful if done during search (future work).

Implied Constraints

  • Waste

i

= s [ i ] – AssWt

i

  • Unused portion of a slab.
  • Upper bound on total waste:
  • Assume each order is assigned to an individual slab, with

smallest size able to hold it.

  • Sum waste in each case: leads to upper bound for

optimisation variable.

  • Upper bound on Waste i

is the worst of these cases.