Scilab/Scicos: Modeling and Simulation of Hybrid Systems

Similar documents
FOSS Software. Free/Open Source Software in Engineering Curriculum. Interesting Examples. Economist Innovation Award 2004

Introduction to Scilab

Free Software Alternatives to Commercial Math Software

Modeling and Simulation in Scilab/Scicos with ScicosLab 4.4

THE STUDY OF SLIDER CRANK MECHANISM USING MATLAB AND SCILAB

Introduction to Scilab Use Scilab, not Matlab

Intro to FOSS. What is FOSS?

Scicos/Modelica for modeling and simulation

Debian for Scientific Facilities Days Sylvestre Ledru / June 25, 2012

Free & Open Source Software: The Academic Future

History of Unix, Linux and the Open Source

SOFTWARE DRIVES HARDWARE, LESSONS LEARNED AND FUTURE DIRECTIONS

The Cantor Handbook. Alexander Rieder

HAVE IT YOUR WAY! ADVISING MATERIALS CREATED BY OPEN-SOURCE AND FREE SOFTWARE BY YOU! Alexander Kunkle, Western Oregon University

NAG at Manchester. Michael Croucher (University of Manchester)

Introduction to Scilab

The MATLAB system The MATLAB system consists of five main parts:

Selection of Variables in Initialization of Modelica Models

Activation Inheritance in Modelica

Scicos is a Scilab toolbox included in the ScicosLab package. The Scicos editor can be opened by the scicos command

System Design S.CS301

EWRG-CES. Bharath Setturu EWRG, CES, IISc

Building a Community around GNU Octave

Testing and Measurement Work bench in Real-Time Linux Environment

Graphical Presentation of Data

Computational Photonics, Summer Term 2014, Abbe School of Photonics, FSU Jena, Prof. Thomas Pertsch

Topic 1- The Basic Knowledge of Open Source and Free Software

Introduction to MATLAB

CE890 / ENE801 Lecture 1 Introduction to MATLAB

MATLAB is a multi-paradigm numerical computing environment fourth-generation programming language. A proprietary programming language developed by

FREE SCIENTIFIC COMPUTING

PID control of DC motor using Real-time Automation test platform in Linux environment

2007 Maplesoft, a division of Waterloo Maple Inc.

COPT: A C++ Open Optimization Library

CS108 Software Systems: UNIX. Fall 2011

Handout: Handy Computer Tools

MONTHLY TEST MAY 2017 QUESTION BANK FOR AVERAGE STUDENTS. Q.2 What is free software? How is it different from Open Source Software?

hosting Hosting Simplified

Introduction to MATLAB

Chapter-16 INTERNET AND OPEN SOURCE CONCEPTS

Collaborative open scientific software : The EIDORS experience

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX

MatLab Just a beginning

Lecture #1 4 th Year M.Sc. Dina Rafaa Ahmed

An Introduction to MATLAB See Chapter 1 of Gilat

Introduction to Scientific Computing with Matlab

2.0 MATLAB Fundamentals

Introduction to Programming in MATLAB and SCILAB

Scilab4.1.2 PartI:Introduction

Handout: Handy Computer Tools

Problem solving using standard programming techniques and Turbo C compiler.

Data-Driven Modeling. Scientific Computation J. NATHAN KUTZ OXPORD. Methods for Complex Systems & Big Data

Scilab Programming. The open source platform for numerical computation. Satish Annigeri Ph.D.

Introduction to MATLAB programming: Fundamentals

High-Performance Scientific Computing

Lecture 1: What is MATLAB?

Managing and Securing Computer Networks. Guy Leduc. Chapter 2: Software-Defined Networks (SDN) Chapter 2. Chapter goals:

Ethics. Ethics. Ethics. Ethics. The issue of software ownership. The issue of software ownership. Programmers and the Hacker mentality.

We deliver Global Engineering Solutions. Efficiently. This page contains no technical data Subject to the EAR or the ITAR

Getting Started with MATLAB

Polymath 6. Overview

EFFICIENT SOLVER FOR LINEAR ALGEBRAIC EQUATIONS ON PARALLEL ARCHITECTURE USING MPI

This is the published version of a paper presented at IEEE PES General Meeting 2013.


Federal University Oye-Ekiti 2 nd Software Freedom Day

WORKSHOP ON EASY JAVA SIMULATIONS AND THE COMPADRE DIGITAL LIBRARY

Developing Customized Measurements and Automated Analysis Routines using MATLAB

New Mexico Tech Hyd 510

Dr Richard Greenaway

Introduction to Matlab. Summer School CEA-EDF-INRIA 2011 of Numerical Analysis

Jean-François Goester

Course Number 432/433 Title Algebra II (A & B) H Grade # of Days 120

ULI101 Introduction to Unix and Linux Week 1 Origin and History of Unix

Exercises: Instructions and Advice

Day 15: Science Code in Python

Agent-based Modeling using L S D

MATLAB*P: Architecture. Ron Choy, Alan Edelman Laboratory for Computer Science MIT

Introducing: Free/Open Source Software Distributed Systems Real Time Systems and Multimedia Systems

Class Freeware, Open Source, and Free Software There is a difference, who knew?

Towards Intelligent Summarising and Browsing of Mathematical Expressions

Open Source Licensing: An Overview

Chapter 2. MathScript

Note 10 Introduction to MATLAB & SIMULINK

CSCI 6906: Fundamentals of Computational Neuroimaging. Thomas P. Trappenberg Dalhousie University

Free as in Freedom A step towards Software freedom. Salahaddin University By: Amanj Sherwany

DAE Tools: An equation-oriented process modelling and optimization software

CITS2401 Computer Analysis & Visualisation

Matlab Tutorial, CDS

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

Problem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Introduction to Physical Modelling Rory Adams Senior Application Engineer

Open Compute Stack (OpenCS) Overview. D.D. Nikolić Updated: 20 August 2018 DAE Tools Project,

Characteristics include Users as co-developers Bazaar Model Projects start with personal problems to solve Users debug systems many eyes make bugs sha

Open Source Development

Checking Under the Hood

Associate Diploma in Web and Multimedia Development

How to program with Matlab (PART 1/3)

Open Source Software. International Open Access Week at the

IX NORDIC BALTIC AGROMETRICS CONFERENCE June 12, 2014, Kaunas, Lithuania

Scientific Computing: Lecture 1

Transcription:

Scilab/Scicos: Modeling and Simulation of Hybrid Systems G. Sivakumar Indian Institute of Technology, Bombay Mumbai 400076, India siva@iitb.ac.in Outline Free/Open Source S/w (quick motivation) Scilab/Scicos Demos Overview of Scicos

OSS Software List

Scientific Method Sharing data and results is the foundation! Way of Genius If I have seen further [than others] it is by standing on the shoulders of giants... Issac Newton Results are accepted only if they can be replicated! (sharing) Open Access is a must!

Open Access Journals

What is open access publishing? 1 Free and unrestricted online access to the research literature and databases 2 Users are licensed to download, print, copy, redistribute, and use 3 Author retains copyright and the right to be acknowledged 4 Papers are deposited in a public database that allows sophisticated searches (such as PubMedCentral) 5 (Bethesda Principles, April 2003)

Free Software http://fsf.org.in/ Richard M. Stallman Free software is a matter of freedom, not cost. It is a matter of liberty, not price. The word free in free software has a similar meaning as in free speech, free people and free country... Think of free software as software which is free of encumbrances, not necessarily free of cost. Think of it as swatantra software. Degrees of Freedom 1 The freedom to run the program, for any purpose 2 The freedom to study how the program works, and adapt it to your needs 3 The freedom to redistribute copies so you can help your neighbor 4 The freedom to improve the program, and release your improvements to the public so that the whole community benefits

Free Software http://fsf.org.in/ Richard M. Stallman Free software is a matter of freedom, not cost. It is a matter of liberty, not price. The word free in free software has a similar meaning as in free speech, free people and free country... Think of free software as software which is free of encumbrances, not necessarily free of cost. Think of it as swatantra software. Degrees of Freedom 1 The freedom to run the program, for any purpose 2 The freedom to study how the program works, and adapt it to your needs 3 The freedom to redistribute copies so you can help your neighbor 4 The freedom to improve the program, and release your improvements to the public so that the whole community benefits

Free Software http://fsf.org.in/ Richard M. Stallman Free software is a matter of freedom, not cost. It is a matter of liberty, not price. The word free in free software has a similar meaning as in free speech, free people and free country... Think of free software as software which is free of encumbrances, not necessarily free of cost. Think of it as swatantra software. Degrees of Freedom 1 The freedom to run the program, for any purpose 2 The freedom to study how the program works, and adapt it to your needs 3 The freedom to redistribute copies so you can help your neighbor 4 The freedom to improve the program, and release your improvements to the public so that the whole community benefits

Free Software http://fsf.org.in/ Richard M. Stallman Free software is a matter of freedom, not cost. It is a matter of liberty, not price. The word free in free software has a similar meaning as in free speech, free people and free country... Think of free software as software which is free of encumbrances, not necessarily free of cost. Think of it as swatantra software. Degrees of Freedom 1 The freedom to run the program, for any purpose 2 The freedom to study how the program works, and adapt it to your needs 3 The freedom to redistribute copies so you can help your neighbor 4 The freedom to improve the program, and release your improvements to the public so that the whole community benefits

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Open Source Definition From http://www.opensource.org (Author: Bruce Perens) 1 Free Redistribution 2 Source Code 3 Derived Works 4 Integrity of The Author 5 No Discrimination Against Persons or Groups 6 Distribution of License 7 License Must Not Be Specific to a Product 8 License Must Not Restrict Other Software 9 License Must Be Technology-Neutral

Freeduc in Schools What does it cost to produce? How to distribute? (Postman: once in 3 months!) What expertise does it need? What innovation is needed for India? Localization! Relevant content. Who can/will do this innovation? Compare with proprietary software!

SciLab vs Matlab 2-D and 3-D graphics, animation www.scilab.org Linear algebra, sparse matrices Polynomials and rational functions Simulation: ODE solver (ODEPACK) and DAE solver (DASSL) Scicos: a dynamic systems modeler and simulator Classic and robust control, LMI optimization Differentiable and non-differentiable optimization Signal processing Metanet: graphs and networks

Other Educational Sector Examples Linux Cluster (16 node) at IIT-Bombay Most Value for money! Molecular modelling Circuit Simulation Aerodynamics Online Course Management dotlrn Moodle Not just for Science and Engineering

FOSS for India

Cost of FOSS There is no Free Lunch! What is the tradeoff? Skilled Human Resources versus Money! Which one does India have in abundance? Which one should we bet on?

Scilab (www.scilab.org) Developed at INRIA (since 1990). Powerful environment for scientfic and engineering applications Freely distributed in source code format. Scilab s distinct parts An interpreter Libraries of functions (Scilab procedures) Libraries of Fortran and C routines. Powerful matrix operations Open programming environment for creation of functions and libraries by user

SciLab Demo We ll see Scilab s built-in Demos Polynomials Matrices Plotting Graphics (plot2d, plot3d, param3d, hist3d) All source available (we ll inspect some of them)

Scicos (www.scicos.org) Scicos is a Scilab toolbox with A user-friendly GUI based editor for modeling hybrid dynamical systems Hierarchical block diagram structure A large number of standard blocks available in various palettes Possibility of defining new blocks using C, Fortran (dynamic link) or Scilab Language Diagram compilation and fast simulation

Simple Scicos Demo Let us build the following example and learn the basics.

Events/Clocks in Scicos From the Scicos Presentation let us look at Activation Links MultiFrequency Activation SubSampling (if-then-else) Event Driven Activation (Inheritance) Continuous Time Continuous Time Events (Zero-crossing)

Constructing your own Blocks Pulse Generator Example from Scicos Presentation