Aditya P. Mathur Professor, Department of Computer Science, Associate Dean, Graduate Education and International Programs Purdue University Monday December.

Slides:



Advertisements
Similar presentations
Newton’s Laws of Motion
Advertisements

NEWTONS LAW’S OF MOTION
Experimental Design, Response Surface Analysis, and Optimization
Ch 3.8: Mechanical & Electrical Vibrations
The Laws of Motion Newton’s Three Laws. What is a Force? It is something we experience every single day. You are exerting a force on your pencil right.
Ray. A. DeCarlo School of Electrical and Computer Engineering Purdue University, West Lafayette, IN Aditya P. Mathur Department of Computer Science Friday.
Physics 218: Mechanics Instructor: Dr. Tatiana Erukhimova Sections 818, 819, 820, 821 Lecture 10.
1 Feedback Control of The Software Development Process Department of Computer Sciences Purdue University CS 490 D Technology Review Aditya P. Mathur …in.
Chapter 5 The Laws of Motion. Forces Usually think of a force as a push or pull Usually think of a force as a push or pull Vector quantity Vector quantity.
PAL week 4 Monday 1st Law: An object at rest remains at rest; an object in motion remains in uniform motion, unless acted on by a net external force. 1.a)
The Erik Jonsson School of Engineering and Computer Science Software Testing Process Control A Novel Approach João W. Cangussu University of Texas at Dallas.
Aditya P. Mathur Professor Department of Computer Sciences Purdue University, West Lafayette Monday Feb 6, :30am Interdisciplinary Fun CS 197 Freshman.
Newton’s Laws Physics 113 Goderya Chapter(s): 5 Learning Outcomes: All.
Force & Motion Newton’s Laws of Motion. Motion  Motion  An object is in motion if the object changes position relative to a reference point.
Force Chapter 4 (Ewen et al. 2005) Objectives: Related force and the law of inertia. Apply the law of acceleration.
Software Process Control1 João Cangussu (CS) Department of Computer Science University of Texas at Dallas, TX Ray. A. DeCarlo College of Electrical and.
Newton’s Laws of Motion. Sir Isaac Newton Born January 4, 1643 in England As a young student, Newton didn’t do well in school. He worked hard and continued.
Ch. 3 & 4 Motion & Forces I. Newton’s Laws of Motion “If I have seen far, it is because I have stood on the shoulders of giants.” - Sir Isaac Newton (referring.
 Law 1: › Every object in a state of uniform motion tends to remain in that state of motion unless an external force is applied to it.  Law 2 : › The.
Laws of Motion Forces: chapter st Law An object at rest remains at rest and an object in motion maintains its velocity unless it experiences an.
Chapter 3 Newton’s Laws of Motion Why things move the way the do.
1 Feedback Control of Software Processes Aditya P. Mathur Department of Computer Sciences João Cangussu Department of Computer Sciences Raymond A. DeCarlo.
In this section you will:
Chapter 2 continuation... Tuesday, January 29 Spring 2008.
Aditya P. Mathur Professor Department of Computer Sciences Purdue University, West Lafayette Friday June 11, 2010 Software Cybernetics: The Next Frontier.
Cybernetics and Software Dr K. Dimopoulos CITY College.
1 Feedback Control of The Software Development Process Department of Computer Sciences Purdue University CS Honors Seminar João Cangussu (CS) Ray. A. DeCarlo.
Newton’s Second and Third Laws Chapter 4 Section 3.
Software Process Control1 Aditya P. Mathur Department of Computer Sciences Purdue University, West Lafayette Visiting Profesor, BITS, Pilani Research collaborators:
Software Process Control1 Aditya P. Mathur (CS) Department of Computer Sciences Purdue University, West Lafayette Research collaborators: João Cangussu.
The Laws of Motion Newton’s Three Laws. What is a Force? It is something we experience every single day. You are exerting a force on your pencil right.
Newton Newton's Laws of Motion describe the way a body responds to applied forces.
A New Era of Science Mathematics as a tool for understanding physics.
Graphs of Motion Physics – Equations of Uniform Motion
3.1 Dynamics p Review of Newton’s Laws of Motion Newton’s First Law of Motion If there is no net force acting on a body, it will continue to move.
The Ordered Universe. Physical events  Predictable  Quantifiable Without the predictability of physical events the scientific method could not proceed.
Graphs. Topic Overview The motion of an object can be represented by two types of graphs (x, v) 1) Displacement vs. Time graphs Tells you where the object.
NEWTON’S 2 ND LAW OF MOTION By: Per.7. WHAT IS IT? Newton's second law Of Motion Newton's second law Of Motion can be formally stated as follows: The.
Forces and Laws of Motion Force Force is the cause of an acceleration, or the change in an objects motion. This means that force can make an object to.
EFFECTS OF COMPUTER SIMULATION ON PERFORMANCE AND RETENTION OF SECONDARY SCHOOL PHYSICS STUDENTS IN MINNA NIGER STATE BY POPOOLA OLABODE 2009/1/34123BE.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Introduction.
Newton's First Law of Motion:
Newton’s Laws Helpful study aid
CE 102 Statics Chapter 1 Introduction.
Introduction.
Forces.
First law: Objects at rest tend to stay at rest and objects in motion tend to stay in motion if no net force is acting on them. Second law: If there.
Digital Control Systems (DCS)
Newton's Law of Motion in Software Development Processes?
I. Newton’s Laws of Motion
FORCE AND MOTION.
Introduction.
Introduction.
Digital and Non-Linear Control
Forces and the Laws of Motion
I. Newton’s Laws of Motion
Newton’s Laws of Motion
Chapter 6 – Action and Reaction
Newton’s laws of motion:
Chapter 2 - Part 1 The two body problem
Week 1 Vocabulary.
I. Newton’s Laws of Motion
I. Newton’s Laws of Motion
Newton’s Laws of Motion
Newton's Laws Of Motion Teneighah Young.
Introduction.
I. Newton’s Laws of Motion
Newton’s Laws of Motion
Presentation transcript:

Aditya P. Mathur Professor, Department of Computer Science, Associate Dean, Graduate Education and International Programs Purdue University Monday December 20, University of Paderborn, Paderborn, Germany. Software Cybernetics: Progress and Challenges

Cybernetics [n] the field of science concerned with processes of communication and control (especially the comparison of these processes in biological and artificial systems)

Software Cybernetics [n] the field of science concerned with processes of communication and control in software systems.

Sample Problems Control of the software test process: How much and what additional effort is to be applied to achieve the desired quality objective under time/cost constraints? Optimal selection of tests: What is an optimal set of tests for achieving the desired quality objective given time constraints?

Sample Problems (continued) Software performance control How best to adjust software parameters so that an optimal level of performance is maintained? Control of the software development process: What is an optimal set of process variables required to achieve delivery objectives within cost/time constraints?

Approaches 1.Use instinct and experience. 2.Use (1) supported by quantitative tools. (b)Use simulation: “forward” approach. (c)Use (a) plus feedback control: “inverse” approach. Software cybernetic approach.. (a)Use simulation: “forward” approach.

Closed Loop (feedback) Control Specifications Program Effort + f(e) Additional effort What is f ? - Required Quality Observed Quality

Sample Problem Scenario cp 1 cp 2 cp 3 cp 4 cp 5 cp 6 cp 7 cp 8 cp 9 cp i = check point i rfrf schedule set by the manager Approximation of how r is likely to change r0r0 observed deadline r - number of remaining errors t- time t0t0

Our Approach Controller r error (t)  ’  w’ f + + wf+wfwf+wf  +  wf+wfwf+wf r observed (t) r expected (t) Actual STP scsc r0r0 STP State Model scsc r0r0 Initial Settings (w f,  )  wfwf Test Manager w f : workforce  : quality of the test process

Decision Support via Feedback Actual Process Parameter Estimation Progress Metrics Process Model Parameters Feedback Controller Estimated Future Schedule Deviation Suggested Decision Changes Mgmt. Control Management Decisions - Predicted Schedule   - + Desired Schedule Actual Schedule + Estimation Error

Challenges (Sources of difficulty) PhysicalLogical (software) Laws of physicsYesNo Object controlledPhysicalLogical (and Humans) Time dependenceStationary and non- stationary Non-stationary Rate of changeVery slow to very fast Slow Parameter variabilityRelatively lowHigh

Overcoming the challenge: Understanding the problem Partnership amongst researchers and practitioners. Is the problem real? Are the existing solutions adequate?

Overcoming the challenge: Solving the problem Parternership amongst researchers and practitioners. Develop realistic models Develop parameter estimation methods. Develop ways to incorporate parameter estimation into the development process.

Details and Case Studies Razorfish Guidant Corporation Sun Microsystems

Physical and Software Systems: An Analogy Dashpot Rigid surface External force Xequilibrium X: Position Number of remaining errors Spring Force Effective Test Effort Block Software Mass of the block Software complexity Quality of the test process Viscosity Xcurrent Spring To err is Human

Physical Systems: Laws of Motion [1] First Law: Every object in a state of uniform motion tends to remain in that state of motion unless an external force is applied to it. Does not (seem to) apply to testing because the number of errors does not change when no external effort is applied to the application.

Physical Systems: Laws of Motion [2] Newton’s Second Law: The relationship between an object's mass m, its acceleration a, and the applied force F is F = ma. CDM First Postulate: The relationship between the complexity S c of an application, its rate of reduction in the number of remaining errors, and the applied effort E is E=S c. r..

Physical Systems: Laws of Motion [3] Third Law: For every action force, there is an equal and opposite reaction force. When an effort is applied to test software, it leads to (mental) fatigue on the tester. Unable to quantify this relationship.

CDM First Postulate The magnitude of the rate of decrease of the remaining errors is directly proportional to the net applied effort and inversely proportional to the complexity of the program under test. This is analogous to Newton’s Second Law of motion.

CDM Second Postulate The magnitude of the effective test effort is proportional to the product of the applied work force and the number of remaining errors. for an appropriate . Analogy with the spring: Note: While keeping the effective test effort constant, a reduction in r requires an increase in workforce.

CDM Third Postulate The error reduction resistance is proportional to the error reduction velocity and inversely proportional to the overall quality of the test phase. for an appropriate . Analogy with the dashpot: Note: For a given quality of the test phase, a larger error reduction velocity leads to larger resistance.

State Model : Disturbance x(t) = Ax(t) + B u(t). Force (effort) balance equation:

Computing the feedback: Question Question: What changes to the process parameters will achieve the desired r(T+  T) ? r(T): the number of remaining errors at time T r(T+  T): the desired number of remaining errors at time T+  T Given:

Computing the feedback: Answer From basic matrix theory: The largest eigenvalue of a linear system dominates the rate of convergence. Hence we need to adjust the largest eigenvalue of the system so that the response converges to the desired value within the remaining weeks (  T). This can be achieved by maintaining: Obtain the desired eigenvalue.

Computing the feedback-Calculations ( max ) Compute the desired max Given the constraint: We know that the eigenvalues of our model are the roots of its characteristic polynomial of the A matrix.

Computing the feedback-Calculations ( max ) We use the above equation to calculate the space of changes to w and  such that the system maintains its desired eigenvalue. f

A Flow Model of Incremental Software Development/Test Test Specs Test Authoring Feat. Specs Test Code Coding Test Verification & Correction Reg. Cases Regression Testing Known Defects Code Debugging Project Code Latent Defects

Workforce Allocation Workforce allocated to particular tasks Effort is split across all active tasks

State-Model [Example] Equations System State Progress Feature Coding (fc) Code Debugging (dr) Test Authoring (ta) Test Debugging (td) Regression Testing (rr) Defect Model Development Testing

Variable Productivity Equation Human Productivity Workload Dependent (Csikszentmihalyi,’88) r b – Base Work rate c – Fractional size- dependent increase w c – Current workload size w n – Nominal workload size

The “Productivity” Eqns. Process Productivity (E.g. Feature Coding) Defect Introduction Defect Detection (Cangussu et al., ’02)

Control Strategy Model Predictive Control

Select Cost Functional E.g. Q 1,Q 2 := positive definite Calculate where S[x k, u k,k+P ]  x p k,k+P