MATLAB Optimization Techniques - Cesar Perez Lopez.pdf

(10104 KB) Pobierz
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
Contents at a Glance
About the Author .................................................................................................................ix
Chapter 1: Introducing MATLAB and the MATLAB Working Environment ...........................1
Chapter 2: MATLAB Programming ...................................................................................23
Chapter 3: Basic MATLAB Functions for Linear and Non-Linear Optimization ................53
Chapter 4: Optimization by Numerical Methods: Solving Equations ...............................67
Chapter 5: Optimization Using Symbolic Computation ....................................................81
Chapter 6: Optimization Techniques Via The Optimization Toolbox.................................85
Chapter 7: Differentiation in one and Several Variables.
Applications to Optimization .........................................................................................109
Chapter 8: Optimization of Functions of Complex Variables .........................................165
Chapter 9: Algebraic Expressions, Polynomials, Equations and Systems.
Tools for Optimization ...................................................................................................217
iii
CHAPTER 1
Introducing MATLAB and the MATLAB
Working Environment
1.1 Introduction
MATLAB is a platform for scientific calculation and high-level programming which uses an interactive environment
that allows you to conduct complex calculation tasks more efficiently than with traditional languages, such as C,
C++ and FORTRAN. It is the one of the most popular platforms currently used in the sciences and engineering.
MATLAB is an interactive high-level technical computing environment for algorithm development, data
visualization, data analysis and numerical analysis. MATLAB is suitable for solving problems involving technical
calculations using optimized algorithms that are incorporated into easy to use commands.
It is possible to use MATLAB for a wide range of applications, including calculus, algebra, statistics, econometrics,
quality control, time series, signal and image processing, communications, control system design, testing and
measuring systems, financial modeling, computational biology, etc. The complementary toolsets, called
toolboxes
(collections of MATLAB functions for special purposes, which are available separately), extend the MATLAB
environment, allowing you to solve special problems in different areas of application.
In addition, MATLAB contains a number of functions which allow you to document and share your work.
It is possible to integrate MATLAB code with other languages and applications, and to distribute algorithms and
applications that are developed using MATLAB.
The following are the most important features of MATLAB:
It is a high-level language for technical calculation
It offers a development environment for managing code, files and data
It features interactive tools for exploration, design and iterative solving
It supports mathematical functions for linear algebra, statistics, Fourier analysis, filtering,
optimization, and numerical integration
It can produce high quality two-dimensional and three-dimensional graphics to aid data
visualization
It includes tools to create custom graphical user interfaces
It can be integrated with external languages, such as C/C++, FORTRAN, Java, COM, and
Microsoft Excel
The MATLAB development environment allows you to develop algorithms, analyze data, display data files and
manage projects in interactive mode (see Figure
1-1).
1
CHAPTER 1
INTRODUCING MATLAB AND THE MATLAB WORKING ENVIRONMENT
Figure 1-1.
1.1.1 Developing Algorithms and Applications
MATLAB provides a high-level programming language and development tools which enable you to quickly develop
and analyze algorithms and applications.
The MATLAB language includes vector and matrix operations that are fundamental to solving scientific and
engineering problems. This streamlines both development and execution.
With the MATLAB language, it is possible to program and develop algorithms faster than with traditional
languages because it is no longer necessary to perform low-level administrative tasks, such as declaring variables,
specifying data types and allocating memory. In many cases, MATLAB eliminates the need for 'for' loops. As a result, a
line of MATLAB code usually replaces several lines of C or C++ code.
At the same time, MATLAB offers all the features of traditional programming languages, including arithmetic
operators, control flow, data structures, data types, object-oriented programming (OOP) and debugging.
Figure
1-2
shows a communication modulation algorithm that generates 1024 random bits, performs the
modulation, adds complex Gaussian noise and graphically represents the result, all in just nine lines of MATLAB code.
2
Zgłoś jeśli naruszono regulamin