Top Banner
© 2009 Maplesoft, a division of Waterloo Maple Inc. Computer Algebra vs. Reality Erik Postma and Elena Shmoylova Maplesoft June 25, 2009
15

Computer Algebra vs. Reality

Jan 13, 2016

Download

Documents

keelty

Computer Algebra vs. Reality. Erik Postma and Elena Shmoylova Maplesoft June 25, 2009. Outline. Introduction How to apply computer algebra techniques to real world problems? Example Open discussion. Introduction. Computer algebra is based on symbolic computations - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc.

Computer Algebra vs. Reality

Erik Postma and Elena ShmoylovaMaplesoft

June 25, 2009

Page 2: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 2

Outline

• Introduction• How to apply computer algebra techniques to

real world problems?• Example• Open discussion

Page 3: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 3

Introduction• Computer algebra is based on symbolic

computations• Benefit: Result is a nice closed form solution• Drawback: Problem itself should be nice too

Page 4: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 4

Computer Algebra Methods• Polynomial solvers for polynomial systems with

coefficients in a rational extension field• Differential Groebner basis for polynomial DEs with

coefficients in a rational extension field• Functional decomposition for multi- or univariate

polynomials over a rational extension field• Index reduction for continuous and in some cases

piecewise-continuous models

Page 5: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 5

Common Elements of Real-World Problems

• Floating point numbers and powers• Trigonometric and other special functions• Lookup tables• Piecewise functions• Numerical differentiators• Compiled numerical procedures (“black-box”

functions)• Delay elements• Random noise terms• etc.

Page 6: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 6

How to apply computer algebra techniques to real-world problems?

Page 7: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 7

Convert One Type of Difficulty into Another

• Look-up tables into piecewise• Almost anything into black-box function• Approximate functions by their Taylor or Padé

series• Smooth piecewise functions, e.g. using radial

basis functions• Floating point numbers into rationals

Page 8: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 8

Remove Difficulty from Model

• If a difficulty can be combined into a subsystem, remove the subsystem from the model– View its arguments as outputs of the model– View its result as inputs into the model– Use symbolic technique on the model

• Limited to techniques that can deal with arbitrary external inputs

Page 9: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 9

Floating Point Numbers

• Replace with rational numbers

Page 10: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 10

Initial Conditions for Hybrid DAE Models

• Problem:– User does not provide all initial conditions, need

to find remaining initial conditions

• Difficulty:– High-order DAEs have hidden constraints that may

be needed to find initial conditions

Page 11: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 11

Simple Example• DAEs

• ICs

1

6.1

75.0

2

2

1

x

x

x

01)1(

040

01)1(

01

2

12

221

122

21

12

122

11

xxx

xxx

xx

xxx

xx

Page 12: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 12

Identifying Mode (I)• From constraint

• Do not know what branch to choose• Index reduction can be performed on both

branches• Hidden constraint

08.0

02.1

1

11 x

xx

0)1(

00

12211

12211

xxxxx

xxxxx

Page 13: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 13

Identifying Mode (II)

• Check which branch of the hidden constraint is satisfied

• mode is active•

00

05.2

0)1(

0

1

1

12211

12211

x

x

xxxxx

xxxxx

01 x

8.01 x

Page 14: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 14

Initial Conditions for Hybrid DAEs

• To find ICs, hidden constraints are needed• To find hidden constraints, index reduction

should be performed• It is infeasible to perform index reduction for

all modes separately, need to know what mode system is in

• To find mode of system, need to know the values of all variables, i.e. ICs

Page 15: Computer Algebra vs. Reality

© 2009 Maplesoft, a division of Waterloo Maple Inc. 15

Open Discussion:How to apply computer algebra

techniques to real-world problems?