LPDS MTA SZTAKI Equation Solver A Grid solution Important hint: A follow up example demonstrating the Parameter Study solution for the mass calculations.

Slides:



Advertisements
Similar presentations
Chapter 2 Matrices Finite Mathematics & Its Applications, 11/e by Goldstein/Schneider/Siegel Copyright © 2014 Pearson Education, Inc.
Advertisements

MF-852 Financial Econometrics
Solving Linear Equations Rule 7 ‑ 1: We can perform any mathematical operation on one side of an equation, provided we perform the same operation on the.
Goldstein/Schnieder/Lay: Finite Math & Its Applications, 9e 1 of 86 Chapter 2 Matrices.
Solving Linear Equations
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 86 Chapter 2 Matrices.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
© 2007 by S - Squared, Inc. All Rights Reserved.
259 Lecture 14 Elementary Matrix Theory. 2 Matrix Definition  A matrix is a rectangular array of elements (usually numbers) written in rows and columns.
Example Gridification via command-line Application Developer Training Day IV. Miklos Kozlovszky Ankara, 25. October, 2007.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Matrix Determinants and Inverses
Chapter 9 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Multiplicative Inverses of Matrices and Matrix Equations.
Ch X 2 Matrices, Determinants, and Inverses.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
LPDS MTA SZTAKI Equation Solver Light A Grid solution.
The Multiplication Principle of Equality 2.3a 1.Solve linear equations using the multiplication principle. 2.Solve linear equations using both the addition.
Parameter Study (PS) Principles & Practices Note This document uses as starting example the non PS case discussed in document EquationSolver.ppt If you.
OUTLINE Overview Numbers, variables and similar in Matlab
Parameter Study Principles & Practices. What is Parameter Study? Parameter study is the application of a single algorithm over a set of independent inputs:
Copyright © Cengage Learning. All rights reserved. 7 Linear Systems and Matrices.
Inverse of a Matrix Multiplicative Inverse of a Matrix For a square matrix A, the inverse is written A -1. When A is multiplied by A -1 the result is the.
Chapter 8 Matrices and Determinants Matrix Solutions to Linear Systems.
8.2 Operations With Matrices
Parameter Study Principles & Practices. Outline Data Model of the PS Part I Simple PS –Generating simple PS Workflow by introducing PS Input port – using.
1 P-GRADE Portal tutorial at EGEE’09 Introduction to hands-on Gergely Sipos MTA SZTAKI EGEE.
1 Practical information for the GEMLCA / P-GRADE hands-on Gergely Sipos On behalf of: MTA.
Sec 4.1 Matrices.
1 Practical information for the GEMLCA / P-GRADE hands-on Tamas Kiss University of Westminster.
4-5 – 2x2 Matrices, Determinants, & Inverses. Objectives Evaluating Determinants of 2x2 Matrices Using Inverse Matrices to Solve Equations.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Introduction to P-GRADE Portal hands-on Miklos Kozlovszky MTA SZTAKI
EGEE-II INFSO-RI Enabling Grids for E-sciencE P-GRADE overview and introduction: workflows & parameter sweeps (Advanced features)
2.5 – Determinants and Multiplicative Inverses of Matrices.
1 P-GRADE Portal hands-on Gergely Sipos MTA SZTAKI Hungarian Academy of Sciences.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
07/02/2012 WS-PGRADE/gUSE in use Lightweight introduction Zoltán Farkas MTA SZTAKI LPDS.
Grid Execution Management for Legacy Code Architecture Exposing legacy applications as Grid services: the GEMLCA approach Centre.
Remote Api Tutorial How to call WS-PGRADE workflows from remote clients through the http protocol?
Warm-UP A = 7-310B = C =7-4Find:A 22 and C 31 97Find: the dimensions of each -88 Matrix Find: A + B and B – A and C + B.
1 Support for parameter study applications in the P-GRADE Portal Gergely Sipos MTA SZTAKI (Hungarian Academy of Sciences)
2.3 MODELING REAL WORLD DATA WITH MATRICES By the end of the section students will be able to add, subtract, and multiply matrices of various sizes. Students.
SOLVING ONE-STEP EQUATIONS Integrated Math I Objective: Solve one-step linear equations in one variable with strategies involving inverse operations and.
Copyright © Cengage Learning. All rights reserved. 7 Matrices and Determinants.
College Algebra Chapter 6 Matrices and Determinants and Applications
Elementary Matrix Theory
Grid Application Support Group Case study Schrodinger equations on the Grid Status report 16. January, Created by Akos Balasko
3-1 HW:Pg #4-28eoe, 30-48e, 55, 61,
Remote Api Tutorial How to call WS-PGRADE workflows from remote clients through the http protocol?
Lightweight introduction
Lightweight introduction
Matrix Operations SpringSemester 2017.
Use of Mathematics using Technology (Maltlab)
Chapter 4 Systems of Linear Equations; Matrices
Using matrices to solve Systems of Equations
Two Step Equation.
3.8 Use Inverse Matrices to Solve Linear Systems
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Two step equation Brackets
Chapter 4 Systems of Linear Equations; Matrices
Math review - scalars, vectors, and matrices
1.8 Matrices.
Matrix Operations Ms. Olifer.
Matrix Operations SpringSemester 2017.
1.8 Matrices.
Using matrices to solve Systems of Equations
3.5 Perform Basic Matrix Operations Algebra II.
Python Creating a calculator.
Presentation transcript:

LPDS MTA SZTAKI Equation Solver A Grid solution Important hint: A follow up example demonstrating the Parameter Study solution for the mass calculations using the same Equation Solver can be found in the Document: Parameter Study support in P-GRADE Portal 2.5, Pinciples & Practices.ppt

LPDS MTA SZTAKI Outline Access to the Demo program The Mathematic problem The Matrix operation package The Grid Workflow solution Example Basic solution Advanced solution Summary

LPDS MTA SZTAKI Access to the Demo program 1. The demo applications discussed here can be uploaded and used directly within the P-PGRADE Portals administrated by the MTA Sztaki (Seegrid, Voce, Gilda), (Example shows tab Workflow/Upload of the Seegrid Portal): where, “Equation solver” contains the basic solution, “Equation solver single input” the more advanced one. Before eventual workflow submission do not forget to: 2. Open and Save the uploaded application with the Workflow Editor. (The Workflow Editor can be started in the tab Workflow / Workflow Manager) 3. Define a proxy Certificate within tab Certificates / Download

LPDS MTA SZTAKI The mathematical problem Let us solve the equation A*x = B where the coefficients a i, j b i are real: A -1 *A*x = A -1 *B A -1 *A = E x = E*x x = A -1 *B

LPDS MTA SZTAKI The Matrix Operation Package(1) Base conventions sequential program written in C (MatrixDemoNew) Input(s) and output are matrices represented by files (M input1, M input2,M output) operation is controlled by command line arguments: M output = OP (M input1 ) M output = OP (M input1,scalarArg) M output = OP (M input1,M input2 )

LPDS MTA SZTAKI The Matrix Operation Package(2) Detailed I/O conventions OP INPUT1 INPUT2 OUTPUT The input(s) and the output of the MatrixDemoNew are files containing the representation of the matrices. They are referred i.e. opened within the executable as "INPUT1" (,"INPUT2") and "OUTPUT". The structures the ASCII files are uniform: a space separated list of the following tokens: Number of lines, number of columns, floating point elements ordered first along the lines of the matrix. Example: represents the following matrix:

LPDS MTA SZTAKI The Matrix Operation Package(3) Operations Syntax: [ ] [V[erbose]] OP Extension Explanation ShortName A I1+I2 -> O Add S I1–I2 -> O Subtract M I1*I2 -> O Multiply R I2*I1 -> O Reverse Multiply T transpose of I1 -> O Transpose I invert of I1 -> O Invert c floting value * I1-> O constant multiply L integer I1[value,*]-> O Line of C integer I1[*,value]-> O Column of Example: L 3 V Operation and I/0 files will be printed on standard output Eventual extension values are defined as command line values

LPDS MTA SZTAKI The Grid Workflow solution Part 1 basic algorithm Two additional jobs (“Copy_A”, “Copy_B”) simplify the work of the user. They copy their inputs to their outputs, with the consequence that the user may to define each input file just at a single Port. If these jobs would have be omitted it were the responsibility of the user to define files with the same content at the proper places: port 0 of Invert_A should be equal with port 0 of “A_Mull_X” and port 1 of Multip_B should be equal with port 1 of “A_Mull_X” The job Invert_A performs the inversion of matrtix A, The jobs Multip_B, A_mul_X perform matrix multiplications, The job Subtr_B compares the results by performing subtraction operation

LPDS MTA SZTAKI The Grid Workflow solution(1)

LPDS MTA SZTAKI The Grid Workflow solution (2) Input Matrix association Location of file representing “B” in the A*x=B

LPDS MTA SZTAKI The Grid Workflow solution (3) Matrix Operation Input Definition Expected file names are INPUT1 and INPUT2

LPDS MTA SZTAKI The Grid Workflow solution (4) Matrix operation definition Matrix Operation Package Op Code

LPDS MTA SZTAKI The Grid Workflow solution(5) The progress AA B B A -1 A -1 *BA*(A -1 *B) A*(A -1 *B)-B Result x reached at this point, control follows This value should be zero

LPDS MTA SZTAKI The Grid Workflow solution (6) Workflow result

LPDS MTA SZTAKI The Grid Workflow solution (6) Workflow result Test results 1,2,3,4,5 modified by the numerical instability, due to the division operations inside of matrix inversion

LPDS MTA SZTAKI The Grid Workflow solution Part 2 advanced algorithm The jobs “Copy_A”, “Copy_B” will be substituted by the single one, by the Separator”. By convention it receives just one file containing the values of the matrices A and B. The values are represented in a text form and separated by a # character. The jobs algorithm finds this character and yields the files containing A and B an separate output ports. Listing the content of the input file of the separator job is the following: #

LPDS MTA SZTAKI The Grid Workflow solution Part 2 advanced algorithm view # A#B AB

LPDS MTA SZTAKI Summary Simple way of calculation Extendibility Graphical usage Immediate access