75
1 Engineering Computation Part 4

1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

  • View
    215

  • Download
    2

Embed Size (px)

Citation preview

Page 1: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

1

EngineeringComputation

Part 4

Page 2: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

2

Enrique Castillo

Universityof

Cantabria

An algorithm that permits solving many An algorithm that permits solving many problems in Algebra. problems in Algebra.

Applications to EngineeringApplications to Engineering

byby

Page 3: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

3

The Jubete Algorithm

1. Obtain the orthogonal subespace to a given subspace and its complement.

2. Obtain the inverse of a matrix

3. Update the inverse of a matrix after changing one row or column.

4. Obtain the determinant of a matrix.

5. Update the determinant of a matrix after changing one of its rows or columns.

6. Obtain the rank of a matrix.

7. Determine if a vector belongs to a given subspace.

8. Obtain the intersection of two given subspaces.

9. Solve an homogeneous linear system of equations.

10. Solve a complete linear system of equations.

11. Study the compatibility of a linear system of equations.

Page 4: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

4

The Jubete Algorithm

Page 5: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

5

Inverse and determinant of a matrix

Page 6: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

6

Simultaneous inverses of submatrices of a matrix

Page 7: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

7

Inverses after modifying rows of a matrix

Inverse updating

Page 8: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

8

Inverses after modifying rows of a matrix

Inverse updating

Page 9: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

9

Orthogonal subspaces and complements

Page 10: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

10

Orthogonal subspaces and complements

Page 11: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

11

Rank of a matrix

In addition it gives the coefficients of

the linear combination

Page 12: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

12

Vector in a subspace

Page 13: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

13

Intersection of two subspaces

Page 14: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

14

Solving a homogeneous linear system of equations

Page 15: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

15

Solving a homogeneous linear system of equations. Example

Page 16: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

16

Solving a complete linear system of equations

Page 17: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

17

Solving a complete linear system of equations. Example

Page 18: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

18

Solving several complete linear systems of equations.

Page 19: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

19

Compatibility

Page 20: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

20

Compatibility. Example

Page 21: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

21

Connection model-reality

Mathematics is a fundamental tool in Engineering

Page 22: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

22

Connection model-reality

The student must know the connection between engineering and mathematical concepts.

The student must know how to update solutions.

Page 23: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

23

Connection model-reality

The student must know when one element is redundant from the engineering and the mathematical points of view, and of its implications in the service reliability, together with the number of degrees of freedom of the general solution.

Page 24: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

24

Connection model-reality

The student must relate the topology of the network with the number of unknowns and mathematical equations defining the engineering problem.The student must know how to state the problem in different forms (mathematical and engineering).

Page 25: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

25

Connection model-reality

The student must know how to state problem with inequalities.

The student must know how to state alternative hypotheses.

Page 26: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

26

The water supply problem

The student must identify the problem unknowns and equations.

Page 27: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

27

The water supply problem

Number of equationsNumber of unknowns

Numbering the nodesConstraints.

¿What the data are? ¿What the equations are?

Page 28: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

28

Statement of the

problem

The student must know how the state the problem as a system of equations and specially in matrix form

Page 29: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

29

Statementof the

problem

The student must know how to number the nodes and distinguish between correct and incorrect numberings.

Page 30: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

30

Analysisof the

solution

Has the problem a solution?

Is it unique?

Page 31: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

31

Compatibility condition

Flow entering = Flow leaving

Page 32: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

32

Compatibility condition

Page 33: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

33

Set of all solutions(without capacity limits)

The student must know how to obtain the set of all possible solutions. There are an infinite number of solutions.

(Affine space associated with a linear space of dimension 4).

Page 34: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

34

Interpretation of the different basic solutions

Particular solution.It can be replaced by any other one.

Page 35: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

35

Interpretation of

solutions

Internal flow solution without inputs

or outputs of fluid

Page 36: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

36

Interpretationof

solutions

Internal flow solution without inputs

or outputs of fluid

Page 37: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

37

Interpretationof

solutions

Internal flow solution without inputs

or outputs of fluid

Page 38: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

38

Interpretationof

solutions

Internal flow solution without inputs

or outputs of fluid

Page 39: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

39

Statementof the

problem

The student must identify non-adequate models and identify lacking constraints.

Page 40: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

40

Cones

a1

a2

a1

a2

-a1

Page 41: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

41

Linear space as a cone

a1

a2

-a1

-a2

a1

a2

-a1-a2

Page 42: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

42

Cone and dual of a cone

a1

a2

Conoinicial

Conodual

w1

w2

Page 43: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

43

Dual of a cone. Gamma algorithm

Page 44: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

44

Dual of a cone. Gamma algorithm

Page 45: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

45

Some problems solved by the gamma algorithm

1. Obtain the dual cone of a given cone

2. Obtain the minimum representation of a cone.

3. Obtain the facets of any given dimension (vertices, edges, faces, etc.) of a cone or polytope.

4. Determine of a given vector belongs to a given cone.

5. Check if two cones are identical.

6. Obtain the intersection of two cones.

7. Obtain the reciprocal image of a cone by a linear transformation.

8. Decide if a linear system of inequalities is compatible.

9. Solve an homogeneous system of linear inequalities.

10. Solve a complete system of linear inequalities.

Page 46: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

46

Cone associated with a polytope

Page 47: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

47

Facets and vertices of a polytope

Page 48: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

48

Facets and vertices of a polytope

Page 49: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

49

Facets and vertices of a polytope

Page 50: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

50

Facets and vertices of a polytope

Page 51: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

51

Facets and vertices of a polytope

Page 52: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

52

Solving an homogeneous system of linear inequalities

Page 53: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

53

Solving a complete system of linear inequalities

Page 54: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

54

Solving a complete system of linear inequalities

Page 55: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

55

Compatibility of systems of linear inequalities

Page 56: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

56

Statementof the

Problem.

The student must identify non-adequate models and identify lacking constraints.

Page 57: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

57

Compatibility conditions

It is necessaryto interpret themphysically to seeIf they representthe adequate model.

Page 58: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

58

Compatibilityconditions

Page 59: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

59

Set of all solutions(with capacity constraints)

The set of all solutions allows answering many interesting questions from a mathematical and engineering point of view.

The solution is a polytope

Capacity of each link = 6

Page 60: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

60

Set of all solutions (Search of overdimensioned links)

Capacity of each link = 6

Capacity is not attained in all its solution components. The capacity could be limited to the maximum values attained in its solution components.

Page 61: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

61

Set of all solutions (Search of links that cannot fail)

The take the same sign (all positive or all negative) in all solution components.

Capacity of each link = 6

Page 62: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

62

Set of all solutions (Search of pairs of link that cannot fail simultaneously)

This condition implies that all lambda values must be null.

Capacity of each link = 6

Page 63: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

63

Set of all solutions (Search of links with constant flow)

They take identical values in all solution components.

Capacity of each link = 6

Page 64: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

64

Set of all solutions (Link 10 failed)

In order link 10 to have no flow, the first four lambdas must be null.

Capacity of each link = 6

Page 65: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

65

Set of all solutions (Link 10 failed)

Link 7 can fail because it has positive and negative components.

¿Can link 7 fail?

Page 66: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

66

Set of all solutions (Links 7 and 10 failed)

Link 4 fails if lambda 2 is null.

¿Can link 4 fail?

Page 67: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

67

Set of all solutions (Links 4,7 and 10 failed)

¿Can any other link fail?

No link can fail, because the solution is unique (bad engineering solution, because of the lack of flexibility).

Page 68: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

68

Retention valves in links 2 and 15

It is the sum of an affine space of dimension 2 and a cone generated by two vectors.

Page 69: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

69

Evaluation example

Page 70: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

70

Evaluation example

Page 71: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

71

Evaluation example

Page 72: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

72

Evaluation example

Page 73: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

73

BIBLIOGRAPHY

Page 74: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

74

INTERNET

With the collaboration of Elena Alvarez Sáiz the orthogonalization algorithm has been implemented in an application of computer aided instruction, which is accessible throughout INTERNET :

http://personales.unican.es/alvareze/

Page 75: 1 Engineering Computation Part 4. 2 Enrique Castillo University of Cantabria An algorithm that permits solving many problems in Algebra. Applications

75

LABORATORY

1. Design a water supply system with two deposits and several nodes containing redundant links.

2. Determine the dimension of the linear space which appears in the general solution of the resulting system of equations.

3. Obtain the general solution of this system manually, based on the physical interpretation of the general solution.

4. State an optimization programming problem leading to a unique solution.