14
State Splitting in Continuous Time STN- models OSE SEMINAR 2012 Mikael Nyberg CENTER OF EXCELLENCE IN OPTIMIZATION AND SYSTEMS ENGINEERING AT ÅBO AKADEMI UNIVERSITY ÅBO NOVEMBER 29 2012

State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

State Splitting in Continuous Time STN-models

OSE SEMINAR 2012

Mikael Nyberg

CENTER OF EXCELLENCE IN

OPTIMIZATION AND SYSTEMS ENGINEERING

AT ÅBO AKADEMI UNIVERSITY

ÅBO NOVEMBER 29 2012

Page 2: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

2

Table of Content

Introduction

STN models

Limited equipment connectivity

Task Splitting

State Splitting

Imaginary transfer unit

Mathematical formulation

Benefits

Improvements

Conclusions

Mikael Nyberg: State Splitting in Continuous Time STN-models

2|14 Agenda

Page 3: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

State Task Network models

STN models

Are used for modeling batch process in both discrete and continuous time

An STN graph consists of Task nodes described as rectangles

State nodes described as circles

Directed arches

States represent commodities

Tasks transform one or more states into a new state Tasks are preformed on units

Arches describe batches of commodities moving through the graph

3|14 Introduction: STN models

Mikael Nyberg: State Splitting in Continuous Time STN-models

Example: A simple STN graph

State

1 Task 1

State

2

Page 4: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

Limited equipment connectivity

Limited equipment connectivity When at least one unit in a production stage is not connected to all units in the next stage

Common in many industries

4|14 Introduction: Limited equipment connectivity

Mikael Nyberg: State Splitting in Continuous Time STN-models

Example: Limited equipment connectivity

Unit M1

Unit M2 Unit N2

Unit N1

Page 5: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

5

Task Splitting

Kondili et al. proposed task splitting for including limited equipment connectivity in STN models

Task Splitting does the following:

Duplicates tasks for units in the later stage to include limited connectivity

Task Splitting does not require any modifications to the mathematical model, only additional tasks are required

The method has two drawbacks:

Increases the number of binary variables

Prohibits merging of batches

Mikael Nyberg: State Splitting in Continuous Time STN-models

5|14 Introduction: Task Splitting

Example: Task Splitting

Unit M1

Unit M2 Unit N2

Unit N1

Task 1

Task 2

Task 1_1

Available

units: M1

Task 2_2

Available

units: N1,N2

Task 1_2

Available

units: M2

Task 2_1

Available

units: N1

State

M1

State

M2

Page 6: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

6

State splitting

Includes limited connectivity by splitting states and connecting

them instead of splitting tasks

Requires:

A new set of “imaginary” transfer tasks and units

Inclusion of the new task(s) into the material balance

constraint

Reformulated batch size constraint for transfer tasks

Mikael Nyberg: State Splitting in Continuous Time STN-models

6|14 State Splitting

Example: State Splitting

Unit M1

Unit M2 Unit N2

Unit N1

Task 1

Task 2

Task 1_1

Available

units: M1

Task 2_2

Available

units: N2

Task 1_2

Available

units: M2

Task 2_1

Available

units: N1

State

N1

State

N2

Task_Transfer

Imaginary unit

Page 7: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

7

Imaginary transfer unit and task

For every unit configuration with limited connectivity State Splitting adds a imaginary unit and task connecting two States

The transfer task is instantaneous, costless, lossless and does not require any utilities or resources to be executed

The only constraints affected by the new task is the material balance and the batch size constraints

Adds two new continuous variables/time point to the model

Assignment and timing constraints are unaffected

The mathematical formulation reduces the transfer unit and task to a one-way flow between two states

Mikael Nyberg: State Splitting in Continuous Time STN-models

7|14 State Splitting: Imaginary transfer unit and task

Task 1_1

Available

units: M1

Task 2_2

Available

units: N2

Task 1_2

Available

units: M2

Task 2_1

Available

units: N1

State

N1

State

N2

Task_Transfer

Imaginary unit

Variables associated with tasks:

Wstrasfer,n- binary variable

Wftrasfer,n- binary variable

Bstrasfer,n- batch size variable

Bptrasfer,n- batch size variable

Bftrasfer,n- batch size variable

Tftrasfer,n- timing variable

Page 8: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

8

Mathematical formulation

State Splitting for a continuous time STN model

STN model by Maravelias and Grossmann 2003

Mikael Nyberg: State Splitting in Continuous Time STN-models

8|14 State Splitting: STN formulation

New sets

𝐼𝑡𝑟𝑎𝑛𝑠 - imaginary transfer tasks

𝑈𝑡𝑟𝑎𝑛𝑠 - imaginary transfer units

Reformulated mass balance constraint

𝑆𝑠,𝑛 = 𝑆𝑠,𝑛−1 + 𝐵𝑠𝑖,𝑛𝑖∈𝐼𝑐𝑠

− 𝐵𝑓𝑖,𝑛𝑖∈𝐼𝑝𝑠

∀ 𝑠, 𝑛 > 1

Batch size constraint

𝐵𝑠𝑖,𝑛 = 𝐵𝑓𝑖,𝑛 ∀ 𝑖 ∈ 𝐼𝑡𝑟𝑎𝑛𝑠 , 𝑛

Page 9: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

Benefits of State Splitting

State Splitting overcomes both drawback of Task Splitting as: Only continuous variables are added to the model

The addition of only continuous variables reduces the increase in computation time compared to

Task Splitting

The number of additional variables is less than for Task Splitting

Merging (and splitting) of batches is possible

The possibility to merge batches increases the flexibility of the mathematical model

In some cases this improves the solution quality

The only drawback of State Splitting is a slight increase in model

complexity

9|14 State splitting: Benefits

Mikael Nyberg: State Splitting in Continuous Time STN-models

Comparison: Number of variables

Unit configuration

Unit M1

Unit M2 Unit N2

Unit N1 Method # of binary * # of cont. *

Task Splitting 10 41

State Splitting 8 37

*Number of variables / time point

Page 10: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

10

Computational results for a continuous time STN model

using State Splitting

A simple 1-commodity production planning problem with a two-stage limited connectivity unit setup

Objective function: maximize profit

Fixed time horizon (196 hours)

Incremental number of time points

Mikael Nyberg: State Splitting in Continuous Time STN-models

10|14 State Splitting: Improving solution times

Solution times (Cplex)

Time points

Seconds

0

10

20

30

40

50

60

70

5 6 7 8 9 10 11

TS

SS

Page 11: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

11

Improving solution quality

State Splitting is able to produce better results than Task Splitting when:

The optimal solution includes at least one occurrence of batch merging

This is not possible in Task Splitting due to the following:

Tasks are duplicated

The allocation constraint only allows one task to be executed on each unit

In State Splitting this can be done because no tasks have been duplicated

Mikael Nyberg: State Splitting in Continuous Time STN-models

11|14 State Splitting: Improving solution quality

Task 1_1

Available

units: M1

Task 2_2

Available

units: N1,N2

Task 1_2

Available

units: M2

Task 2_1

Available

units: N1

State

M1

State

M2

Example: Task duplication

Task duplication

Page 12: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

12

Improving solution quality

Mikael Nyberg: State Splitting in Continuous Time STN-models

12|14 State Splitting: Improving solution quality

State Splitting

Objective value: 94240

Total production: 58900

M1 9000

M2 13500 12900 13500

N1 6300 6300 6300

N2 10000 10000 10000 10000

0 24 43,5 67,5 86,5 110,5 129,9 192

S1 9000 2700 2700 2800 2800

S2 3500 3500

Transfer S2->S1 6400 3500

Task Splitting

Objective value: 90880

Total production: 56800

M1 6300

M2 13500 13500 13500

N1 6300 6300 4200

N2 10000 10000 10000 10000

0 19,5 43,5 67,5 86,9 110,9 130,4 192

S1

S2 10000 13500 3500 3500 700 700

Page 13: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

13

Conclusions

State Splitting produces smaller optimization problems than a

corresponding Task Splitting formulation

Solution times

Task Splitting vs. State Splitting

State Splitting produced faster results than Task Splitting

The results are consistent regardless of solver

Solution quality

If the optimal solution includes splitting or merging a batch

to/from a unit with limited equipment connectivity State

Splitting will find a better solution than Task Splitting

Mikael Nyberg: State Splitting in Continuous Time STN-models

13|14 Conclusions

Page 14: State Splitting in Continuous Time STN- modelsweb.abo.fi/fak/tkf/at/ose/doc/Pres_29112012/State... · Task 1_2 Available units: M2 Task 2_1 N1 State N1 State N2 Task_Transfer Imaginary

14

Thank you!

Questions?

Mikael Nyberg: State Splitting in Continuous Time STN-models

14|14 Questions