This document discusses techniques for working with large datasets in MATLAB. It recommends using sparse matrices, categorical arrays, and vectorization to reduce memory usage. It also suggests breaking large data into pieces and using block or stream processing. Distributed computing allows offloading work to clusters for faster processing and more memory. Benchmarking shows significant speedups using Amazon EC2 cluster instances compared to a desktop.
Optimization as a model for few shot learningKaty Lee
paper presentation of "Optimization as a model for few shot learning" at ICLR 2017 by Sachin Ravi and Hugo Larochelle
highly related to "learning to learn by gradient descent by gradient descent"
Introduction to Model-Based Machine LearningDaniel Emaasit
The field of machine learning has seen the development of thousands of learning algorithms. Typically, scientists choose from these algorithms to solve specific problems. Their choices often being limited by their familiarity with these algorithms. In this classical/traditional framework of machine learning, scientists are constrained to making some assumptions so as to use an existing algorithm. This is in contrast to the model-based machine learning approach which seeks to create a bespoke solution tailored to each new problem.
Optimization as a model for few shot learningKaty Lee
paper presentation of "Optimization as a model for few shot learning" at ICLR 2017 by Sachin Ravi and Hugo Larochelle
highly related to "learning to learn by gradient descent by gradient descent"
Introduction to Model-Based Machine LearningDaniel Emaasit
The field of machine learning has seen the development of thousands of learning algorithms. Typically, scientists choose from these algorithms to solve specific problems. Their choices often being limited by their familiarity with these algorithms. In this classical/traditional framework of machine learning, scientists are constrained to making some assumptions so as to use an existing algorithm. This is in contrast to the model-based machine learning approach which seeks to create a bespoke solution tailored to each new problem.
Accelerating the Pace of Engineering Education with Simulation, Hardware and ...Joachim Schlosser
Presentation for MathWorks (www.mathworks.com) at World Engineering Education Forum 2014, Dubai.
Education is challenging. It always was challenging, and it always will be challenging, but every generation of educators and society has to find answers specific to their era. This talk addresses some of the challenges in engineering education in the 21st century.
Industry complains about the skills gap they face with graduates in engineering, for lack of project awareness, problem solving skills, applicable tool skills or applied science skills. Academia complains about students not bringing the necessary basic skills as engineering freshmen. Teachers complain about a lack of student engagement. Students complain about classes not engaging them and seeming irrelevant.
When putting this chain of challenges – industry, academia, school, students – on its head and starting with the student engagement, one method getting attention is Project-Based Learning. Students educate themselves on concepts they need, with the teacher facilitating the learning experience. Applying theory in practical ways with tools that are used in industry gives students first-hand experience on industry relevant methods as well as the why behind theory. The talk shows examples of programming, modeling and simulation to gain insight into theory and application.
Too often students and educators feel that topics throughout their education are not connected. Early on they lack understanding of the why they are learning something. Later they no longer see the connection of advanced theory to fundamental concepts. Reusing learning artifacts, skills and methods helps mapping out the story. Demonstrations illustrate how educators implement this re-use throughout teaching.
Consequent reuse leads to Integrated Curriculum, where methods and skills in each year build on previous ones. Evaluations in integrated curriculum enabled programs show a higher retention of know-how.
We all can make math, physics and engineering able to experience using simulation and hardware experiments. The tools and resources are there. Let's address our generation's engineering education challenges.
Confessions of an Interdisciplinary Researcher: The Case of High Performance ...tiberiusp
Scaling up economics models to run on large input sizes, complex market and agent model settings, and on big computational resource pools is a demanding feat.
This presentation tells you what it takes to work as a computational economist.
My master thesis Cloud2Sim, at INESC-ID Lisboa, Instituto Superior Tecnico, Universidade de Lisboa, Portugal, titled, "An Elastic Middleware Platform for Concurrent and Distributed Cloud and MapReduce Simulations."
I was able to secure 18/20 for the thesis.
MATLAB for Researcher Course - ATIT AcademyQais Yousef
ماتلاب من البداية حتى الاحتراف للباحثين وطلبة الدراسات العليا....
تعلن أكاديمية ATITT لأحبتها الطلبة من المنتسبين ببرامج الماجستير والدكتوراه في تخصصات علوم الحاسوب، هندسة الحاسوب، هندسة الاتصالات، هندسة الماكاترونيكس، هندسة الشبكات والهندسة الطبية. عن فتح باب التسجيل بدورة ماتلاب ... MATLAB For Researcher
الدورة ذات فائدة عملية كبيرة لإتمام بعض مواد الجامعة، لعمل الأبحاث والأوراق البحثية، ولعمل رسائل الماجستير والدكتوراه، ومشاريع التخرج...
الدورة تعطى بشكل عملي تام، مع تركيز تام لكل طالب وموضوعه الخاص.
بحيث يكون هناك مشروع واقعي وكامل مع كل محاضرة من محاضرات الدورة. يستفيد منها الطالب في بحثه الخاص.
وتعطى بخطتين:
1) شعبة مع طلبة اخرين، لا يتجاوز العدد 5 طلاب.
2) أو بشكل خاص(برايفت) بحيث ينتقي الطالب مواضيع و أوراق بحثية أكثر علاقة ببحثه، لإدراجها ضمن مادة الدورة.
ExaLearn Overview - ECP Co-Design Center for Machine Learninginside-BigData.com
In this deck from the HPC User Forum, Frank Alexander, from Brookhaven National Laboratory presents: ExaLearn Overview - ECP Co-Design Center for Machine Learning.
"ExaLearn is a co-design center for Exascale Machine Learning (ML) Technologies and is a collaboration initially consisting of experts from eight multipurpose DOE labs. Rapid growth in the amount of data and computational power is driving a revolution in machine learning (ML) and artificial intelligence (AI). Beyond the highly visible successes in machine-based natural language translation, these new ML technologies have profound implications for computational and experimental science and engineering and the exascale computing systems that DOE is deploying to support those disciplines.
To address these challenges, the ExaLearn co-design center will provide exascale ML software for use by ECP Applications projects, other ECP Co-Design Centers and DOE experimental facilities and leadership class computing facilities. The ExaLearn Co-Design Center will also collaborate with ECP PathForward vendors on the development of exascale ML software."
Watch the video: https://wp.me/p3RLHQ-kdJ
Learn more: https://www.exascaleproject.org/ecp-announces-new-co-design-center-to-focus-on-exascale-machine-learning-technologies/
and
http://hpcuserforum.com
Sign up for our insideHPC Newsletter: http://insidehpc.com/letter
Automated machine learning lectures given at the Advanced Course on Data Science & Machine Learning. AutoML, hyperparameter optimization, Bayesian optimization, Neural Architecture Search, Meta-learning, MAML
Scikit-Learn is a powerful machine learning library implemented in Python with numeric and scientific computing powerhouses Numpy, Scipy, and matplotlib for extremely fast analysis of small to medium sized data sets. It is open source, commercially usable and contains many modern machine learning algorithms for classification, regression, clustering, feature extraction, and optimization. For this reason Scikit-Learn is often the first tool in a Data Scientists toolkit for machine learning of incoming data sets.
The purpose of this one day course is to serve as an introduction to Machine Learning with Scikit-Learn. We will explore several clustering, classification, and regression algorithms for a variety of machine learning tasks and learn how to implement these tasks with our data using Scikit-Learn and Python. In particular, we will structure our machine learning models as though we were producing a data product, an actionable model that can be used in larger programs or algorithms; rather than as simply a research or investigation methodology.
Cloud Native Night July 2019, Munich: Talk by Emil A. Siemes (@mesosphere, Principal Solution Engineer at Mesosphere)
=== Please download slides if blurred! ===
Abstract: Tired of managing infrastructure instead of creating exiting ml models? Learn what DC/OS can do for the data scientist.
Join us next time: https://www.meetup.com/Cloud-Native-muc/events
Resources for Teaching Undergraduate Computational PhysicsAmdeselassie Amde
Experience from Physics Department, University of Gondar ...why we should teach our students undergraduate computational physics (UCP), and Free & Open Resources for teaching UCP
Scrum für Embedded-Software: Gut – aber aus anderen Gründen, als Ihr Manager...Joachim Schlosser
Agile Entwicklung, das hat was von Leichtigkeit, und agile Entwicklung trägt tatsächlich dazu bei, bessere Ergebnisse früher zu erzielen. Es gilt aber auch: Der Prozess ist stikter, als Sie das heute leben. Scrum ist strikter gegenüber Management, und erfordert einen funktionierenden Integrations- und Testprozess. Vor allem in Embedded Systemen.
Mehr zum Thema auf http://www.elektrobit.com/consulting
Agil klingt innovativ, fluffig, ebenso Scrum mit seinen User Stories, dem Zusammenarbeiten. Das agilenPrinzip, Änderungen willkommen zu heißen, lässt das höhere Management in Entwicklungsorganisationen und deren Kunden in freudiger Schnappatmung erzittern. Verheißt dies doch die Möglichkeit, ohne sauer dreinblickende Projektmanager auch zwischendrin mal das Ruder rumzureißen, und das ganze auch noch mit dem Segen des Agilen Manifests und mit einem Framework namens Scrum. Wessen Organisation agil entwickelt, der freut sich, innovative Methoden zu verwenden, mit schlanken Prozessen und kaum Overhead, und vor allem gleich damit starten zu können.
Echt jetzt?
Wenn Ihre Organisation mit Scrum wirklich erfolgreich sein will, dann ist das kein Zuckerschlecken. Der Prozess ist mit hoher Wahrscheinlichkeit deutlich stikter, als Sie das heute leben. Scrum ist strikter gegenüber dem Management außerhalb des Teams, und Scrum ist strikter und zu Beginn der Einführung anstrengender als Ihr heutiger Integrations- und Testprozess. Vor allem in Embedded Systemen.
Der erste agile Wert sagt „Individuals and interactions over processes and tools.“ Und um eben im täglichen Arbeiten den Menschen und Interaktionen eine höhere Bedeutung einräumen zu können, ist es so wichtig, dass Prozess und Tools vorhanden sind, funktionieren und ganz natürlich benutzt werden. Scrum, Kanban und andere agile Methoden erlauben den Menschen in Organisationen, streßfreier hervorragende Qualität zu liefern, erlauben internen und externen Kunden, früher werthaltige Lösungen zu bekommen, und machen aufs große Ganze gesehen der eigenen Organisation bessere Planung.
In diesem Vortrag sehen Sie, was Sie zum Agilen Entwickeln mit Scrum lieber nicht sehen wollten, und wie Sie endlich einen Nutzen fürs Projekt, fürs Unternehmen, für den Kunden und für die Mitarbeiter aus Scrum ziehen können.
More Related Content
Similar to Modellbildung, Berechnung und Simulation in Forschung und Lehre
Accelerating the Pace of Engineering Education with Simulation, Hardware and ...Joachim Schlosser
Presentation for MathWorks (www.mathworks.com) at World Engineering Education Forum 2014, Dubai.
Education is challenging. It always was challenging, and it always will be challenging, but every generation of educators and society has to find answers specific to their era. This talk addresses some of the challenges in engineering education in the 21st century.
Industry complains about the skills gap they face with graduates in engineering, for lack of project awareness, problem solving skills, applicable tool skills or applied science skills. Academia complains about students not bringing the necessary basic skills as engineering freshmen. Teachers complain about a lack of student engagement. Students complain about classes not engaging them and seeming irrelevant.
When putting this chain of challenges – industry, academia, school, students – on its head and starting with the student engagement, one method getting attention is Project-Based Learning. Students educate themselves on concepts they need, with the teacher facilitating the learning experience. Applying theory in practical ways with tools that are used in industry gives students first-hand experience on industry relevant methods as well as the why behind theory. The talk shows examples of programming, modeling and simulation to gain insight into theory and application.
Too often students and educators feel that topics throughout their education are not connected. Early on they lack understanding of the why they are learning something. Later they no longer see the connection of advanced theory to fundamental concepts. Reusing learning artifacts, skills and methods helps mapping out the story. Demonstrations illustrate how educators implement this re-use throughout teaching.
Consequent reuse leads to Integrated Curriculum, where methods and skills in each year build on previous ones. Evaluations in integrated curriculum enabled programs show a higher retention of know-how.
We all can make math, physics and engineering able to experience using simulation and hardware experiments. The tools and resources are there. Let's address our generation's engineering education challenges.
Confessions of an Interdisciplinary Researcher: The Case of High Performance ...tiberiusp
Scaling up economics models to run on large input sizes, complex market and agent model settings, and on big computational resource pools is a demanding feat.
This presentation tells you what it takes to work as a computational economist.
My master thesis Cloud2Sim, at INESC-ID Lisboa, Instituto Superior Tecnico, Universidade de Lisboa, Portugal, titled, "An Elastic Middleware Platform for Concurrent and Distributed Cloud and MapReduce Simulations."
I was able to secure 18/20 for the thesis.
MATLAB for Researcher Course - ATIT AcademyQais Yousef
ماتلاب من البداية حتى الاحتراف للباحثين وطلبة الدراسات العليا....
تعلن أكاديمية ATITT لأحبتها الطلبة من المنتسبين ببرامج الماجستير والدكتوراه في تخصصات علوم الحاسوب، هندسة الحاسوب، هندسة الاتصالات، هندسة الماكاترونيكس، هندسة الشبكات والهندسة الطبية. عن فتح باب التسجيل بدورة ماتلاب ... MATLAB For Researcher
الدورة ذات فائدة عملية كبيرة لإتمام بعض مواد الجامعة، لعمل الأبحاث والأوراق البحثية، ولعمل رسائل الماجستير والدكتوراه، ومشاريع التخرج...
الدورة تعطى بشكل عملي تام، مع تركيز تام لكل طالب وموضوعه الخاص.
بحيث يكون هناك مشروع واقعي وكامل مع كل محاضرة من محاضرات الدورة. يستفيد منها الطالب في بحثه الخاص.
وتعطى بخطتين:
1) شعبة مع طلبة اخرين، لا يتجاوز العدد 5 طلاب.
2) أو بشكل خاص(برايفت) بحيث ينتقي الطالب مواضيع و أوراق بحثية أكثر علاقة ببحثه، لإدراجها ضمن مادة الدورة.
ExaLearn Overview - ECP Co-Design Center for Machine Learninginside-BigData.com
In this deck from the HPC User Forum, Frank Alexander, from Brookhaven National Laboratory presents: ExaLearn Overview - ECP Co-Design Center for Machine Learning.
"ExaLearn is a co-design center for Exascale Machine Learning (ML) Technologies and is a collaboration initially consisting of experts from eight multipurpose DOE labs. Rapid growth in the amount of data and computational power is driving a revolution in machine learning (ML) and artificial intelligence (AI). Beyond the highly visible successes in machine-based natural language translation, these new ML technologies have profound implications for computational and experimental science and engineering and the exascale computing systems that DOE is deploying to support those disciplines.
To address these challenges, the ExaLearn co-design center will provide exascale ML software for use by ECP Applications projects, other ECP Co-Design Centers and DOE experimental facilities and leadership class computing facilities. The ExaLearn Co-Design Center will also collaborate with ECP PathForward vendors on the development of exascale ML software."
Watch the video: https://wp.me/p3RLHQ-kdJ
Learn more: https://www.exascaleproject.org/ecp-announces-new-co-design-center-to-focus-on-exascale-machine-learning-technologies/
and
http://hpcuserforum.com
Sign up for our insideHPC Newsletter: http://insidehpc.com/letter
Automated machine learning lectures given at the Advanced Course on Data Science & Machine Learning. AutoML, hyperparameter optimization, Bayesian optimization, Neural Architecture Search, Meta-learning, MAML
Scikit-Learn is a powerful machine learning library implemented in Python with numeric and scientific computing powerhouses Numpy, Scipy, and matplotlib for extremely fast analysis of small to medium sized data sets. It is open source, commercially usable and contains many modern machine learning algorithms for classification, regression, clustering, feature extraction, and optimization. For this reason Scikit-Learn is often the first tool in a Data Scientists toolkit for machine learning of incoming data sets.
The purpose of this one day course is to serve as an introduction to Machine Learning with Scikit-Learn. We will explore several clustering, classification, and regression algorithms for a variety of machine learning tasks and learn how to implement these tasks with our data using Scikit-Learn and Python. In particular, we will structure our machine learning models as though we were producing a data product, an actionable model that can be used in larger programs or algorithms; rather than as simply a research or investigation methodology.
Cloud Native Night July 2019, Munich: Talk by Emil A. Siemes (@mesosphere, Principal Solution Engineer at Mesosphere)
=== Please download slides if blurred! ===
Abstract: Tired of managing infrastructure instead of creating exiting ml models? Learn what DC/OS can do for the data scientist.
Join us next time: https://www.meetup.com/Cloud-Native-muc/events
Resources for Teaching Undergraduate Computational PhysicsAmdeselassie Amde
Experience from Physics Department, University of Gondar ...why we should teach our students undergraduate computational physics (UCP), and Free & Open Resources for teaching UCP
Scrum für Embedded-Software: Gut – aber aus anderen Gründen, als Ihr Manager...Joachim Schlosser
Agile Entwicklung, das hat was von Leichtigkeit, und agile Entwicklung trägt tatsächlich dazu bei, bessere Ergebnisse früher zu erzielen. Es gilt aber auch: Der Prozess ist stikter, als Sie das heute leben. Scrum ist strikter gegenüber Management, und erfordert einen funktionierenden Integrations- und Testprozess. Vor allem in Embedded Systemen.
Mehr zum Thema auf http://www.elektrobit.com/consulting
Agil klingt innovativ, fluffig, ebenso Scrum mit seinen User Stories, dem Zusammenarbeiten. Das agilenPrinzip, Änderungen willkommen zu heißen, lässt das höhere Management in Entwicklungsorganisationen und deren Kunden in freudiger Schnappatmung erzittern. Verheißt dies doch die Möglichkeit, ohne sauer dreinblickende Projektmanager auch zwischendrin mal das Ruder rumzureißen, und das ganze auch noch mit dem Segen des Agilen Manifests und mit einem Framework namens Scrum. Wessen Organisation agil entwickelt, der freut sich, innovative Methoden zu verwenden, mit schlanken Prozessen und kaum Overhead, und vor allem gleich damit starten zu können.
Echt jetzt?
Wenn Ihre Organisation mit Scrum wirklich erfolgreich sein will, dann ist das kein Zuckerschlecken. Der Prozess ist mit hoher Wahrscheinlichkeit deutlich stikter, als Sie das heute leben. Scrum ist strikter gegenüber dem Management außerhalb des Teams, und Scrum ist strikter und zu Beginn der Einführung anstrengender als Ihr heutiger Integrations- und Testprozess. Vor allem in Embedded Systemen.
Der erste agile Wert sagt „Individuals and interactions over processes and tools.“ Und um eben im täglichen Arbeiten den Menschen und Interaktionen eine höhere Bedeutung einräumen zu können, ist es so wichtig, dass Prozess und Tools vorhanden sind, funktionieren und ganz natürlich benutzt werden. Scrum, Kanban und andere agile Methoden erlauben den Menschen in Organisationen, streßfreier hervorragende Qualität zu liefern, erlauben internen und externen Kunden, früher werthaltige Lösungen zu bekommen, und machen aufs große Ganze gesehen der eigenen Organisation bessere Planung.
In diesem Vortrag sehen Sie, was Sie zum Agilen Entwickeln mit Scrum lieber nicht sehen wollten, und wie Sie endlich einen Nutzen fürs Projekt, fürs Unternehmen, für den Kunden und für die Mitarbeiter aus Scrum ziehen können.
Vernetzung von Forschung und Lehre und Unternehmertum Joachim Schlosser
Der Forschungs- und Wirtschaftsstandort Deutschland ist in diesem Jahrzehnt kein Selbstläufer mehr – wenn das überhaupt jemals der Fall war. Wie schaffen wir es gemeinsam, technologisch ein Umfeld für mehr Innovation und Entwicklung zu schaffen, ohne auf veränderte Rahmenbedingungen warten zu müssen? Start-Ups und etablierte Organisationen tragen mit Universitäten gemeinsam dazu bei, dass auch die nächste Generation an Ingenieuren und Entwicklern lernt, Konzepte rasch und zielgerichtet umzusetzen. So erwachsen aus Ideen Innovation und Produkte.
Architectural Simulation of Distributed ECU SystemsJoachim Schlosser
Architecture simulation of distributed ECU networks is a method to simulate the collaboration of functions that are assigned to different execution units of a network of electronic control units (ECU). The simulation takes into account the influences of hardware and system platforms. The dissertation evaluates under which circumstances architecture simulation is able to provide additional benefits on top of other methods. The thesis derives requirements for the used models, the tool environment and the development process, while assessing the statements with a practical example.
Den Datenschatz heben und Zeit- und Energieeffizienz steigern: Mathematik und...Joachim Schlosser
In einer Gesellschaft, in der das Sammeln von personenbezogenen Daten mittlerweile alltäglich geworden ist, ist es nicht weiter verwunderlich, dass auch der innovative Maschinenbauer Daten sammelt, wo er nur kann. Produktdaten, Maschinendaten, Statistikdaten – in einer durchschnittlichen Produktionsanlage fallen bereits heute jeden Tag Gigabytes an Daten an. „Big Data“ wurde eines der Schlagworte der Industrie 4.0.
Doch was verspricht man sich davon? Welche Information steckt in den aufgezeichneten Maschinen- und Produktdaten? Und wie erfolgt die Auswertung?
Im Rahmen des Vortrags wird aufgezeigt, wie Unternehmen auf Basis einer etablierten Plattform wie MATLAB® ihre Auswertealgorithmen entwickeln, testen und ausrollen können. Die kontinuierliche Auswertung selbst erfolgt dann wahlweise auf einem Anlagenserver oder aber auch in Echtzeit direkt an der Maschine. Veranschaulicht wird dies anhand von Beispielen aus der Praxis.
Doch neben der gesammelten Daten kommt auch den Steuerungseinheiten in der Produktion in der Industrie 4.0 eine größere Bedeutung zu.
Wenn Werkstücke demnächst selbst wissen, wo sie im Produktionsablauf hin möchten und welcher Verarbeitungsschritt ihnen angedeihen soll, dann bedeutet das auch für die einzelnen Komponenten und Module in Produktion und Logistik ein mehr an Funktionalität, da sie auf diese Eingaben ebenfalls reagieren sollen.
Wie stellen Sie sicher, dass diese zusätzliche Funktionalität nicht zu Lasten der Energiebilanz gehen? Wie fahren Sie die Motoren und anderen aktiven Komponenten Ihrer Fertigung so, dass sie flexibel auf veränderte Routen der Werkstücke reagieren und dennoch im optimalen Bereich fahren?
Mehr denn je brauchen Sie gesteuerte und geregelte Komponenten und Module. Das sollte schon seit Industrie 3.0 vorhanden sein, jedoch ist auch hier noch viel ganz konkretes Potential zur Steigerung von Produktivität und Einsparung von Energie und Produktionszeit vorhanden.
Sie sehen im Vortrag, wie Sie ihre Komponenten besser beschalten, dass die vernetzten dynamischen Anforderungen von Industrie 4.0 lokal effizient umgesetzt werden können.
This presentation from MathWorks Automotive Conference 2012 shows how to use Simulink in workgroups.
Simulink Project helps teams to collaborate engineering their designs.
It organizes the multitude of artifacts belonging to a modeling project, like model files, scripts, data files and documentation.
Innovate with confidence – Functional Verification of Embedded AlgorithmsJoachim Schlosser
For development of embedded systems Simulink and Stateflow are already widely used to simulate the system behavior. The graphical user interface allows quick and clear modeling of the system’s dynamics and structure. Since the models already represent a detailed mathematical description of the system, the way to automatically generate code is only the next logical step.
This presentation provides an overview of the verification in Simulink and Stateflow. The methods range from the automatic review of modeling guidelines and the use of bidirectional links between requirements and model on the testing and measuring the achieved test coverage up to the use of formal methods to support test generation and correctness proof of a model.
Optionally, the benefits of Stateflow modeling, variant handling on model and code level can be discussed.
It‘s Math That Drives Things – Simulink as Simulation and Modeling EnvironmentJoachim Schlosser
You can benefit from Simulink, the software that Engineers love for doing their work
Engineers in industries like Aerospace, Automotive, Energy production, Industrial Machinery, Automation, Railway and many others use Model-Based Design with Simulink for an increasing amount of their applications. Simulink allows you to…
gain knowledge about the dynamics of your system and have a direct path to implementation
use the modeling language that most engineers speak.
Math underpins all Systems. Simulink is Math made real.
Whatever domain your system incorporates: It is likely that mathematics plays a part of it. For example, Simulink covers domains like:
Continuous time, Discrete time, Discrete event
State machine, Physical models, Text based algorithms
System environment, Digital hardware, Analog/RF hardware
Embedded software, Mechanical systems
MATLAB & Simulink provide a unified environment for all.
Functional testing those systems uses simulation and formal methods.
Begin to use Simulink for engineering mechatronic systems now.
Find ways to look at the system you could not do before, and save time in your development
Simulink is industry standard for engineering controls, signal processing.
Ask someone who already uses Simulink
Get a deeper insight on mathworks.com/model-based-design/
During conference, reach me at Twitter @schlosi
MathWorks and Freescale Cup - Working with MATLAB & SimulinkJoachim Schlosser
You have an algorithm idea.How long does it take you to find out whether it will work in at all and on the car?
Outline
+ What are MATLAB & Simulink?
+ How to benefit from MathWorks supporting FreescaleCup?
+ What about all the code I have already written?
Wie bauen Sie in Ihrer Lehrveranstaltung den Lehrstoff und zugehörige Lehrmaterialien in einer Form auf, die die Motivation von Studierenden fördert? In Ingenieurdisziplinen, Natur- und Wirtschaftswissenschaften und Mathematik können Sie theoretische Zusammenhänge im Lehrplan praxisnah vermitteln anhand konkreter Beispiele: mit computergestützten Berechnungen und Simulationen. In diesem Vortrag stellen wir Ihnen Möglichkeiten vor, wie MATLAB® in der Lehre zum Einsatz kommen kann.
Der Vortrag war Teil der MATLAB Expo Deutschland am 2. Juli in München. Die Präsentation enthält Videos, die in der Slideshare-Ansicht nicht verfügbar sind.
2. 2
“There is no correlation between
experimenting and learning outcome, in general.” §
“Experimenting does improve learning outcome,
if supported by a didactic framework.” §
Not if, but how…
§ e.g. D. R. Sokoloff and R. K. Thornton, Using Interactive Lecture Demonstrations to Create an
Active Learning Environment. The Physics Teacher, September, 1997, Vol. 35, pp. 340-347.
3. 3
“Experiments…
• Activate knowledge, thereby
• Support the learning process
• Foster competences and
• Motivate students” §
The Why’s
§ e.g. M Hopf, H Schecker, H Wiesner, Physik allgemein / Physkdidaktik kompakt.
5. 5
Experiments are time consuming.
1. Prep work (instructor)
2. Pre-experiment
3. Experiment
4. Post-experiment
5. Evaluation
The How’s
MATLAB & Simulink Very important
Immensely important
Typically over-emphasized
6. 6
Hardware connectivity
Symbolic Numeric
Optimization
Control System
Graphic, physical
Modeling
Simscape
StateFlow
Simulink
MATLAB
Simulink and Simscape blocks
MATLAB function
Publishing
Symbolic
Experiment implementation: the sky’s the limit
1
1
1
1
2
2
2
2
7. 7
The solution landscape: a matter of perspective
MATLAB (symbolic)
Simulink
Simscape
MATLAB (numeric)
Publishing
MATLAB and H/W
convert
convert
convert
10. 10
Resources to get you started
>> doc
MATLAB
Courseware
MATLAB Central
info/code hub
11. 11
Online experimenting: Cody Coursework Problem
Solution
Feedback
Create MATLAB problem sets
Grade based on test suites (automated!)
Assess class progress
Detect plagiarism and proctor exams
Use 1300+ autograde-ready MATLAB
programming problems
12. 12
Hardware for experiments
Support package only req’d Additional toolboxes req’d
Raspberry Pi
LEGO Mindstorms
NXT and EV3
Arduino
Samsung Galaxy, iPhone
Altera DE2-
115
Freescale Freedom
Digilent’s
Analog
Discovery
Find hardware for your application
…plus many more…plus many more
Microsoft
Kinect
NI
CompactDAQ
13. 13
Retain the right students, on-time: STEOP
Integrate Spiraling Curricula
Standardized Tool in Curricula
14. 14
Key takeaways
Experiments can foster the learning progress.
Use with care.
Experiments develop competences.
MathWorks provides tools and resources for your support.
15. 15
Challenge
Teach mathematics and mathematical modeling to
students across multiple disciplines and two universities,
and prepare them to meet the needs of industry
Solution
Integrate MATLAB throughout the core mathematics
curriculum and provide interdisciplinary exercises in
practical problem-solving
Results
Interdepartmental collaboration improved
Students taught skills required by industry
Students self-identified as expert users
Chalmers University of Technology
Integrates MATLAB Throughout Core
Mathematics Curriculum
Chalmers University in Gothenburg, Sweden.
Link to user story
“We train our students to use
MATLAB as an interactive tool not
only for completing the assigned
exercises but also for investigating
mathematical problems and having
fun. We are increasing our focus
on interdisciplinary programs, and
MATLAB is perfect for integrating
mathematics with other subjects.”
Dr. Tommy Gustafsson
Chalmers University of Technology
16. 16
University of Applied Sciences Augsburg
Students Develop and Simulate Advanced
Robotic Control Systems
Challenge
Enable students to participate in the development of
advanced robotic control software
Solution
Integrate MathWorks tools into exercises in modeling
robotic systems and implementing control software
Results
Programming skills quickly acquired
Reusable robotic control components developed
Students’ transition to industry eased
“When I teach C++, I show students a
program that simulates a swing. The C++
program is seven pages of code or more.
The MATLAB implementation is a single
page —about 50 lines of well-structured,
compact code that is easy to
understand.”
Professor Georg Stark
University of Applied Sciences Augsburg
Link to user story
Professor Stark with students in the lab.
17. 17
Technische Universität München Uses
Model-Based Design to Drive Research,
Problem-Based Learning, and Industry
Collaboration
Challenge
Enable problem-based learning of flight dynamics
and cost-effective implementation of flight control
systems
Solution
Use MathWorks tools for Model-Based Design to
simulate designs, conduct real-time tests, and
develop realistic flight simulators
Results
Students prepared for a variety of careers
Motivation increased and learning accelerated
Collaboration with industry partners strengthened
“Flight controls and flight system dynamics are
multidomain engineering disciplines. MathWorks
tools enable our students to build upon our
fundamental research to develop solutions that fly
in real aircraft. With Model-Based Design we can
close the gap between the theoretical foundation
and the practical application, and that is how we
measure success.”
Dr. Florian Holzapfel
Technische Universität München
Link to user story
Professor Holzapfel, research fellow Markus Hornauer,
and a student test flight control algorithms in the
Research Flight Simulator.
23. 24
Max Planck Institute Reconstructs Key
Protein Complexes Using MATLAB and
Parallel Computing Toolbox
Challenge
Develop high-quality 3D images of protein complexes
Solution
Use MathWorks tools to acquire, analyze, filter, combine,
and display electron microscope images
Results
Research time cut by years
Development time cut from weeks to days
Workflow accelerated
“Parallel Computing Toolbox enabled us
to speed up our processing by 20 to 30
times. We were able to use our cluster
productively from the MATLAB
environment without having to be experts
in parallel programming or having to learn
another programming language.”
Andreas Korinek
Max Planck Institute of Biochemistry
Schematic of the 26S proteasome.
Link to user story
24. 26
Challenges with Large Data
“Out of memory”
Slow processing
– Data too large to be efficiently managed between RAM and virtual
memory
– Lots of data
Gaining insight
– Large data visualization
– Modeling with no equation and lots of predictors
25. 27
Data Copies
Function calls
Data is “copy-on-write” (lazy-copy)
Passed by reference into the function
function y = foo(x,a,b)
y = a * x + b;
end
function y = foo(x,a,b)
a(1) = a(1) + 12;
y = a * x + b;
end
a not copied
a is copied
Is not modified, no copy is made Is modified, a temporary copy is made
26. 28
Data Copies
In-Place Optimizations
MATLAB perform calculations “in-place” when:
– Output variable name is the same as input variable name
– Performing element-wise computation
not in-place
y = 2*x + 3;
x = 2*x + 3;
in-place
27. 29
Sparse Matrices
Require less memory and are faster
When to use sparse?
< 1/2 dense on 64-bit (double precision)
< 2/3 dense on 32-bit (double precision)
Functions that support sparse matrices
>> help sparfun
Blog Post: Creating Sparse Finite Element Matrices
blogs.mathworks.com/loren/2007/03/01/creating-sparse-finite-element-matrices-in-matlab/
28. 30
Categorical Arrays
Ordinal and Nominal Arrays
Memory-efficient data container for values
drawn from a finite, discrete set of categories
Nominal arrays
– No ordering in the levels
Ordinal arrays
– Ordering in the levels
Available from
Statistics Toolbox
29. 31
Vectorization and Memory Tradeoffs
Use bsxfun to limit creating intermediate matrices
– Applies element-wise binary operation with singleton expansion
Consider using several smaller matrices for processing
– Keep within the limits of contiguous memory
– Process with for loops (i.e. de-vectorize)
– Slower runtime but will use less memory
– Operate on data by column for best performance
N x M+,*N x 1
1 x M
=
Element-wise
operation
30. 32
Processing Large Data Sets
Break your large data into separate pieces
and process independently
– Partial reading and writing of files
– Built-in functionality for block-processing
– System Objects for stream processing
Use the whole dataset at once
– Single array across memory of multiple machines
31. 33
Reading in Part of a Dataset from Files
ASCII file
– Import Tool , textscan
MAT file
– Load and save part of a variable using the matfile
Binary file
– Read and write directly to/from file using memmapfile
– Maps address space to file
Databases
– ODBC and JDBC-compliant (e.g. Oracle, MySQL, Microsoft, SQL Server)
– Database Explorer App
32. 34
Block Processing Images
blockproc automatically divides an
image into blocks for processing
Reduces memory usage
– Read and write block directly from image file
Processes arbitrarily large images
Available from
Image Processing Toolbox
33. 35
Batch processing…
Load the entire file and process it all at once
Stream processing
Load a frame and process it before moving on to the next frame
Source
Batch
Processing
Algorithm
Memory
MATLAB Memory
Stream
Source
Stream
Processing
34. 36
System Objects
A class of MATLAB objects that support streaming workflows
Simplifies data access for streaming applications
Contain algorithms to work with streaming data
Available from
DSP System Toolbox
Communications System Toolbox
Computer Vision System Toolbox
Phased Array System Toolbox
Image Acquisition Toolbox
35. 37
Distributed Array
Lives on the Workers
Remotely Manipulate Array
from Client
11 26 41
12 27 42
13 28 43
14 29 44
15 30 45
16 31 46
17 32 47
17 33 48
19 34 49
20 35 50
21 36 51
22 37 52
Distributing Large Data
Worker
Worker
Worker
Worker
MATLAB
Desktop (Client)
Available from
Parallel Computing Toolbox
MATLAB Distributed Computing Server
36. 39
Offload computation:
– Free up desktop
– Access better computers
Scale speed-up:
– Use more cores
– Go from hours to minutes
Scale memory:
– Utilize distributed arrays
– Solve larger problems without re-coding algorithms
Cluster
Computer Cluster
Scheduler
Take Advantage of Cluster Hardware
MATLAB
Desktop (Client)
37. 40
On bw|HPC-C5
Installed on Grid Nodes KIT, Freiburg, Tübingen
Supported by MathWorks Pilot Team: install, documentation, usage
Also on bwGRiD
Installed on Grid Nodes Ulm/Konstanz, Mannheim, Tübingen
38. 43
Benchmarking Ab on EC2
Using Amazon EC2's
cluster compute instances
A up to 290 GB
Good desktop machine
4-20 GB of RAM
20-60 Gigaflops
Up to 1.3 Teraflops,
over a 20X improvement
39. 45
Technical Resources
MATLAB documentation User’s Guide
Programming Fundamentals Software Development Memory Usage
The Art of MATLAB, Loren Shure’s blog: blogs.mathworks.com/loren/
Memory Management Guides
mathworks.com/support/tech-notes/1100/1106.html
mathworks.com/support/tech-notes/1100/1107.html
MATLAB Answers: mathworks.com/matlabcentral/answers/