Modeling and Simulation in ScilabScicos
Modeling and Simulation in ScilabScicos
net/publication/226700339
CITATIONS READS
144 2,204
3 authors:
Ramine. Nikoukhah
National Institute for Research in Computer Science and Control
204 PUBLICATIONS 3,093 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Jean-Philippe Chancelier on 20 May 2014.
^J Springer
Contents
Part I Scilab
General Information 3
1.1 What Is Scilab? 3
1.2 How to Start? 4
1.2.1 Installation 4
1.2.2 First Steps 4
1.2.3 Line Editor 5
1.2.4 Documentation 6
1.3 Typical Usage 6
1.4 Scilab on the Web 7
Introduction to Scilab 9
2.1 Scilab Objects 11
2.1.1 Matrix Construction and Manipulation 12
2.1.2 Strings 17
2.1.3 Boolean Matrices 19
2.1.4 Polynomial Matrices 20
2.1.5 Sparse Matrices 21
2.1.6 Lists 22
2.1.7 Functions 26
2.2 Scilab Programming 27
2.2.1 Branching .* 28
2.2.2 Iterations 29
2.2.3 Scilab Functions 31
2.2.4 Debugging Programs 35
2.3 Input and Output Functions 37
2.3.1 Display of Variables 37
2.3.2 Formatted Input and Output 38
2.3.3 Input Output in Binary Mode .* 40
2.3.4 Accessing the Host System 42
2.3.5 Graphical User Interface 43
2.4 Scilab Graphics 48
2.4.1 Basic Graphing 48
2.4.2 Graphic Tour 49
2.4.3 Graphics Objects 53
VIII Contents
4 Optimization 107
4.1 Comments on Optimization and Solving Nonlinear Equations 107
4.2 General Optimization 108
4.3 Solving Nonlinear Equations 112
4.4 Nonlinear Least Squares 113
4.5 Parameter Fitting 117
4.6 Linear and Quadratic Programming 119
4.6.1 Linear Programs 119
4.6.2 Quadratic Programs 120
4.6.3 Semidefinite Programs 120
4.7 Differentiation Utilities 120
4.7.1 Higher Derivatives 122
5 Examples 125
5.1 Modeling and Simulation of an AT-Link Pendulum 125
5.1.1 Equations of Motion of the JV-Link Pendulum ••••• 126
5.1.2 Generated Code and Simulation 130
5.1.3 Maple Code 133
5.2 Modeling and Simulation of a Car 135
5.2.1 Basic Model 135
5.2.2 Equations of Motion 136
5.2.3 Simulation Model 138
5.2.4 Scilab Implementation v 139
5.2.5 Simulation Result 141
5.3 Open-Loop Control to Swing Up a Pendulum 142
5.3.1 Model 142
5.3.2 Control Problem Formulation 142
5.3.3 Optimization Problem 143
5.3.4 Implementation in Scilab 145
Contents IX
Part II Scicos
6 Introduction 159
Index 309
View publication