Detecting and Resolving Model Errors

Slides:



Advertisements
Similar presentations
Why care about debugging? How many of you have written a program that worked perfectly the first time? No one (including me!) writes a program that works.
Advertisements

Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Programming Types of Testing.
16/13/2015 3:30 AM6/13/2015 3:30 AM6/13/2015 3:30 AMIntroduction to Software Development What is a computer? A computer system contains: Central Processing.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
Finding and Debugging Errors
Java Review 2 – Errors, Exceptions, Debugging Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
JavaScript, Fourth Edition
BPC.1 Basic Programming Concepts
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
ERROR HANDLING Lecture on 27/08/2013 PPT: 11CS10037 SAHIL ARORA.
UNIT 3 TEMPLATE AND EXCEPTION HANDLING. Introduction  Program errors are also referred to as program bugs.  A C program may have one or more of four.
Programming Translators.
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
Debugging in Java. Common Bugs Compilation or syntactical errors are the first that you will encounter and the easiest to debug They are usually the result.
Testing Methods Carl Smith National Certificate Year 2 – Unit 4.
SYNTAX ANALYSIS & ERROR RECOVERY By: Sarthak Swaroop.
ME 142 Engineering Computation I Debugging Techniques.
Software Engineering Chapter 3 CPSC Pascal Brent M. Dingle Texas A&M University.
FIRST JAVA PROGRAM. JAVA PROGRAMS Every program may consist of 1 or more classes. Syntax of a class: Each class can contain 1 or more methods. public.
Controlling Execution Programming Right from the Start with Visual Basic.NET 1/e 8.
Errors “Computer says no..”. Types of Errors Many different types of errors new ones are being invented every day by industrious programming students..
Fundamental Programming Fundamental Programming Testing.
Lecture 4 Programming Technique Programming Appreciation.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
1 Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
1 Original Source : and Problem and Problem Solving.ppt.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
1 Program Planning and Design Important stages before actual program is written.
The Functions and Purposes of Translators Syntax (& Semantic) Analysis.
1 Debugging and Syntax Errors in C++. 2 Debugging – a process of finding and fixing bugs (errors or mistakes) in a computer program.
School of Computer Science & Information Technology G6DICP - Lecture 6 Errors, bugs and debugging.
ERRORS. Types of errors: Syntax errors Logical errors.
Programming Errors. Errors of different types Syntax errors – easiest to fix, found by compiler or interpreter Semantic errors – logic errors, found by.
5.01 Understand Different Types of Programming Errors
10 Copyright © 2009, Oracle. All rights reserved. Using the Mapping Debugger.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
Debugging M-Files Steve Gu Feb 08, Outline What’s Debugging? Types of Errors Finding Errors Debugging Example Using Debugging Features.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
Harvard Mark I Howard Aiken was a pioneer in computing and a creator of conceptual design for IBM in the 1940s. He envisioned an electro-mechanical computing.
FOP: Multi-Screen Apps
A variable is a name for a value stored in memory.
5.01 Understand Different Types of Programming Errors
Debugging and Handling Exceptions
Animation and Simulation Plus Interaction
ME 142 Engineering Computation I
Can you pick 3 errors from this
Testing and Debugging.
Computer Programming I
Software Design and Development
Testing Key Revision Points.
Microsoft Access Illustrated
CSS 161: Fundamentals of Computing
Cracking the Coding Interview
5.01 Understand Different Types of Programming Errors
Designing and Debugging Batch and Interactive COBOL Programs
Tonga Institute of Higher Education
Algorithm Correctness
Programming Errors Key Revision Points.
CMP 131 Introduction to Computer Programming
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
An Introduction to Debugging
Errors in programming.
Review of Previous Lesson
Compiler Structures 1. Overview Objective
WJEC GCSE Computer Science
CHAPTER 6 Testing and Debugging.
Presentation transcript:

Detecting and Resolving Model Errors Jeffrey S. Smith Auburn University

Detecting and Resolving Model Errors Error detection and correction (e.g., debugging) is a significant part of most simulation studies. In can be very time consuming and is usually quite frustrating. In general, there are three classes of errors encountered during the development and implementation of a simulation model: Syntax errors – Incorrect usage of language constructs/modules Runtime errors – Program errors that occur during the simulation run (e.g., exceeding the memory limits) Logic errors – Errors in the modeling logic that cause the simulation to run in an unexpected manner. Generally, you spend a significant amount of time debugging models – usually more that you spend on the initial model development. Gent used to this – it is very common. PLANNING can reduce the debugging time significantly. 12/4/2018 Detecting and Resolving Model Errors

Detecting and Resolving Model Errors Syntax Errors Most commercial simulation packages (Simio included) automatically look for syntax errors during the model development or initialization (compilation) stage. Some of the common errors that are detected include: Misspellings of keywords and other reserved words Duplicate use of object names or other “strings” Undefined states, resources, statistics, etc. When Simio finds one of these errors, the error is reported to the user and Simio provides functions to try to “find” the error and lists possible causes. These errors are generally easy to find and fix (once you understand the syntactical rules of Simio). In the model, use Random.Exponentia(.25) for the Source interarrival time property. Do a State Assignment and use an invalid state name. Note that Simio is a little different that some other package in that it marks these errors “as you go” rather than waiting for a “compilation step”. 12/4/2018 Detecting and Resolving Model Errors

Detecting and Resolving Model Errors Runtime Errors Output node not connected to the network 12/4/2018 Detecting and Resolving Model Errors

Detecting and Resolving Model Errors Runtime Errors Might or might not actually be an “error” (in this case, it is) – check the “DefaultEntity.Maximum Number In System” property for the entity object in question. 12/4/2018 Detecting and Resolving Model Errors

Detecting and Resolving Model Errors Logic Errors While Simio is fairly helpful in finding and fixing syntax and runtime errors, it generally cannot automatically find logic errors. With a logic error, the model compiles and runs without errors, but the logic error makes the model results not “correct”. 12/4/2018 Detecting and Resolving Model Errors

Debugging Tools and Techniques Carefully watch the animation Enhance the animation with debugging information and “messages” “Step Mode” + “Mouse-overs” for entities Watch Breakpoints Model Trace Subclassing objects Notify step Using a simple model: Set a Breakpoint, turn Model Trace on, and run. 12/4/2018 Detecting and Resolving Model Errors

Detecting and Resolving Model Errors Simio Debugging Tools 12/4/2018 Detecting and Resolving Model Errors