ABSTRACT

Introduction to Modeling and Simulation with MATLAB and Python is intended for students and professionals in science, social science, and engineering that wish to learn the principles of computer modeling, as well as basic programming skills. The book content focuses on meeting a set of basic modeling and simulation competencies that were developed as part of several National Science Foundation grants. Even though computer science students are much more expert programmers, they are not often given the opportunity to see how those skills are being applied to solve complex science and engineering problems and may also not be aware of the libraries used by scientists to create those models.

The book interleaves chapters on modeling concepts and related exercises with programming concepts and exercises. The authors start with an introduction to modeling and its importance to current practices in the sciences and engineering. They introduce each of the programming environments and the syntax used to represent variables and compute mathematical equations and functions. As students gain more programming expertise, the authors return to modeling concepts, providing starting code for a variety of exercises where students add additional code to solve the problem and provide an analysis of the outcomes. In this way, the book builds both modeling and programming expertise with a "just-in-time" approach so that by the end of the book, students can take on relatively simple modeling example on their own.

Each chapter is supplemented with references to additional reading, tutorials, and exercises that guide students to additional help and allows them to practice both their programming and analytical modeling skills. In addition, each of the programming related chapters is divided into two parts – one for MATLAB and one for Python. In these chapters, the authors also refer to additional online tutorials that students can use if they are having difficulty with any of the topics.

The book culminates with a set of final project exercise suggestions that incorporate both the modeling and programming skills provided in the rest of the volume. Those projects could be undertaken by individuals or small groups of students.

The companion website at https://www.intromodeling.com provides updates to instructions when there are substantial changes in software versions, as well as electronic copies of exercises and the related code. The website also offers a space where people can suggest additional projects they are willing to share as well as comments on the existing projects and exercises throughout the book. Solutions and lecture notes will also be available for qualifying instructors.

chapter 1|20 pages

Introduction to Computational Modeling

chapter 2|23 pages

Introduction to Programming Environments

chapter 3|9 pages

Deterministic Linear Models

chapter 4|6 pages

Array Mathematics in MATLAB® and Python

chapter 5|18 pages

Plotting

chapter 6|8 pages

Problem Solving

chapter 7|9 pages

Conditional Statements

chapter 8|4 pages

Iteration and Loops

chapter 9|15 pages

Nonlinear and Dynamic Models

chapter 10|16 pages

Estimating Models from Empirical Data

chapter 11|11 pages

Stochastic Models

chapter 12|5 pages

Functions

chapter 13|18 pages

Verification, Validation, and Errors

chapter 14|13 pages

Capstone Projects