SlideShare a Scribd company logo
Using an Evolutionary Optimization approach to
tune a PID controlled robotic arm
Taylor Newill – Noesis Solutions, NA Technical Services
Silvia Poles – Noesis Solutions, Engineering Manager
Agenda
Optimus Overview
Integrating Scilab
Genetic optimization of a PID
1
2
3
Future Development
4
Agenda
Optimus Overview
Integrating Scilab
Genetic optimization of a PID
1
2
3
Future Development
4
Optimus: A Technology Connection Platform
Creating a repeatable,
automated process:
• Multi code,
• Multi CPU,
• Synced
Rapid identification of key design
variables:
• Histograms
• Sobol indices, ANOVA
• Taguchi
Process Integration Design of Experiments
• Create surrogate models from
any dataset
• Multiple approaches are tried
and the best one can be used
Response surface models
Optimization
• Gradient
• Evolutionary
• Hybrid
Robust Design
• Design for Six Sigma
• Taguchi
• FORM
• FOSM
Optimization & Robust Design
Optimus: An Open Platform
• Can drive any CLI
• Embedded as a UCI/UCA
• Externally through generic
Interfaces
• External algorithms can be used
with ‘User Optimization’
• Driven from simple XML script
• Any code can be used, python, C,
scilab, etc.
Connect any Software Apply any Algorithm
• Java based GUI
• ‘One click’ connection with
queuing systems
Drive from any Environment
All functionality available through
python API
Full API
Noesis Solutions - Solutions for Engineering Optimization
… more than 100+ person-years experience in PIDO
… sales offices across Europe, US and Asia realizing double digit profitable growth
for 18+ years.
A leading software & services provider
A strong worldwide presence
… Optimus is our only product and focus, and we partner with all major CAE and
mathematical modeling vendors
An independent innovation partner
Noesis Solutions
Noesis Solutions
Most extensively deployed software of its kind…
A few default interfaces
 Automated
 Multi code
 Multi CPU
 Repeatable
CFD
20 Design
parameters
FEA
Post-Processing
Integrating Scilab in
Optimus
1
Should I Automate? (XKCD 1319)
Mouse over Text:
‘Automating’ comes from the
roots ‘auto-’ meaning ‘self-’ and
‘mating’, meaning ‘screwing’
Is it worth the time? (XKCD 1205)
Integrating Scilab scripts in Otimus
• User Customizable Interface
• The UCI is easily configured
with XML-files, respecting a
very simple syntax
• Drag and drop functionality
for easy multiple disciplines
Scilab UCI
The SCE file is updated with every experiment, the xcos file is imported, then the
results are extracted and then calculations are done on the resultant curves
ScilabTEC 2015 - Noesis Solutions
Evolutionary Optimization of a
PID Controlled Robotic Arm
2
Robotic Arm
• Programmable mechanical arm
• The links of of the robot are
connected by joints allowing
– rotational (angular) displacement
– translational (linear) displacement
• The links of the robot form a
kinematic chain
• The terminus of the kinematic chain
is the end effector
PID Control (Wikipedia)
• When the robotic arm is given a target, a
PID loop is used to control the movement of
the arm relative to the target
• PID is a proportional-integral-derivative
controller
• It is a control loop feedback mechanisms
• A PID controller calculates an error value as
the difference between a measured process
variable and a desired target
• The controller attempts to minimize
the error by adjusting the process through
use of a manipulated variable.
The Challenge
• Typically, robotic arms are tuned by tuning one
PID loop at a time and cycling through the loops
until the overall behavior is satisfactory.
• This process can be time consuming and is not
guaranteed to converge to the best overall
tuning.
• In this example we will automate the tuning of 1
PID, multiple PID’s have since been added
Robotic Tools for Scilab/Xcos
• From the ‘Scilab Ninja’
– Dr. Varodom Toochinda
• Beta Version
– Kinematics
– Dynamics
– Path generation
– Control
Evolutionary Optimization
• Start with a population
covering the design space
• Make slight changes to input
variables of the best
performing experiments
• Make a new population based
on the best performing
experiments
Scilab/XCOS Setup
Parametric Usage of the Toolbox
• Optimus will detect any
controllable inputs
• Outputs can be
extracted
– From memory
– From output files
– From response variables
Process Integration
Automation
Optimization Strategy
DOE
RSM
GLOBAL
OPTIMIZATION
LOCAL
OPTIMIZATION
GOAL
Design of Experiments
• Individual runs took about 30
seconds
• Wanted to adequately cover
the design space
– 3 inputs, 3 responses
– 81 experiments tested
• Latin Hypercube DOE was
used
Response Surface Model
• 18 different RSM’s
were tested, RBF was
selected
• Lowest error, created
quickly, easily
exported
Response Surface Model
Evolutionary Optimization
• Multiple strategies
will be compared
• All run on RSM
• Results validated with
simulation
• Objective is to reduce
PID error and reduce
experiment count
• Single Objective
Optimization
Algorithms Tested
– Differential
– Self adaptive
– Simulated Annealing
– CMA-ES
– Particle Swarm
Comparison of Optimization Strategies
Baseline vs. Optimal
Performance Impact
Strategy Experiments Normalized
PID Error
Validated Difference
from Nominal
Nominal 0 892553
Differential 256 660291 659332 26.1%
Self Adaptive 333 660575 660027 26.05%
Annealing 153 660100 659301 26.13%
Particle Swarm 664 660085 658948 26.17%
CMA-ES 233 661889 661149 25.92%
Resource Impact
Task Time w/o
Optimus
Time with
Optimus
Total Time Saved
Create Robotic arm model 120 min 120 min 0
Create workflow 0 5 min -5 min
Test each PID setting (3) 2 min 0 6 min
Tune entire PID (3) 60 min 0 180 min
Simulate arm movement 2 min 2 min 0
Run Optimization
(253 simulations)
506 CPU min 200 CPU min 306 CPU min
Is it worth the time?
• Workflow development
took 10 minutes
• For one tuning routine
Optimus saved
– 3 hours of human time
– 5 CPU hours
With Scilab and Optimus you can
Conclusion
Save Time Consolidate Knowledge
• Drive Scilab and combine
with other tools
• Automate Repetitive
Tasks
• Maximize efficient use of
your simulation resources
• Simplify your design work
by focusing on key
parameters
• Automate parametric
studies
• Intelligent optimization
methods
• Create fast and accurate
meta models
• Share model data through
Excel, etc…
Improve Performance
Questions & Answers
www.noesissolutions.com
info@noesissolutions.com
taylor.newill@noesissolutions.com
Web
E-mail

More Related Content

PDF
ScilabTEC 2015 - Evidence
PDF
ScilabTEC 2015 - Xilinx
PPT
Sci scada toolbox
PDF
ScilabTEC 2015 - Embedded Solutions
PPT
Verification Automation Using IPXACT
PPTX
Introduction to EDA Tools
PPTX
ASIC DESIGN FLOW
ScilabTEC 2015 - Evidence
ScilabTEC 2015 - Xilinx
Sci scada toolbox
ScilabTEC 2015 - Embedded Solutions
Verification Automation Using IPXACT
Introduction to EDA Tools
ASIC DESIGN FLOW

What's hot (20)

PPTX
Project P Open Workshop
PDF
Making of an Application Specific Integrated Circuit
PPTX
Codasip application class RISC-V processor solutions
PDF
RISC-V software state of the union
PPTX
Asic vs fpga
PDF
ASIC Design and Implementation
PDF
Memory ECC - The Comprehensive of SEC-DED.
PDF
Ripes: Teaching Computer Architecture Through Visual and Interactive Simulators
PPTX
Complete ASIC design flow - VLSI UNIVERSE
PDF
Getting started with RISC-V verification what's next after compliance testing
PDF
Shantanu's Resume
PDF
vlsi projects using verilog code 2014-2015
PPTX
Vlsi ieee projects
PPTX
VLSI VHDL
PDF
BKK16-305B ILP32 Performance on AArch64
PPTX
Synopsys Fusion Compiler-Comprehensive RTL-to-GDSII Implementation System
PDF
GNAT Pro User Day: Ada at Ansaldo STS
PPTX
KaiSemi - FPGA to ASIC Conversions
PPTX
The new reality and tremendous opportunity of open source processing
Project P Open Workshop
Making of an Application Specific Integrated Circuit
Codasip application class RISC-V processor solutions
RISC-V software state of the union
Asic vs fpga
ASIC Design and Implementation
Memory ECC - The Comprehensive of SEC-DED.
Ripes: Teaching Computer Architecture Through Visual and Interactive Simulators
Complete ASIC design flow - VLSI UNIVERSE
Getting started with RISC-V verification what's next after compliance testing
Shantanu's Resume
vlsi projects using verilog code 2014-2015
Vlsi ieee projects
VLSI VHDL
BKK16-305B ILP32 Performance on AArch64
Synopsys Fusion Compiler-Comprehensive RTL-to-GDSII Implementation System
GNAT Pro User Day: Ada at Ansaldo STS
KaiSemi - FPGA to ASIC Conversions
The new reality and tremendous opportunity of open source processing
Ad

Similar to ScilabTEC 2015 - Noesis Solutions (18)

PDF
Tools for Building Confidence in Using Simulation To Inform or Replace Real-W...
PDF
Scilab Modelica conference 20150921
PDF
Optimus Brochure
PDF
Study and Analysis of Design Optimization and Synthesis of Robotic ARM
PDF
Study and Analysis of Design Optimization and Synthesis of Robotic ARM
PDF
Using AI Planning to Automate the Performance Analysis of Simulators
PDF
Optimization
PDF
Inverse Kinematics Using Genetic Algorithms
PDF
Bitirme Tezim
PDF
Biomedical Signal and Image Analytics using MATLAB
PPTX
Optimica Compiler Toolkit - Overview
PDF
report
PDF
Optimization in scilab
PDF
Kaggle Higgs Boson Machine Learning Challenge
PDF
Using Optimal Learning to Tune Deep Learning Pipelines
PDF
Using Optimal Learning to Tune Deep Learning Pipelines
PDF
Tecnomatix 11 para simulação e validação
PDF
7358 mathcad chart ts_en
Tools for Building Confidence in Using Simulation To Inform or Replace Real-W...
Scilab Modelica conference 20150921
Optimus Brochure
Study and Analysis of Design Optimization and Synthesis of Robotic ARM
Study and Analysis of Design Optimization and Synthesis of Robotic ARM
Using AI Planning to Automate the Performance Analysis of Simulators
Optimization
Inverse Kinematics Using Genetic Algorithms
Bitirme Tezim
Biomedical Signal and Image Analytics using MATLAB
Optimica Compiler Toolkit - Overview
report
Optimization in scilab
Kaggle Higgs Boson Machine Learning Challenge
Using Optimal Learning to Tune Deep Learning Pipelines
Using Optimal Learning to Tune Deep Learning Pipelines
Tecnomatix 11 para simulação e validação
7358 mathcad chart ts_en
Ad

More from Scilab (20)

PDF
Statistical Analysis for Robust Design
PPTX
Electric motor optimization
PDF
Asteroidlanding - Scilab conference 2019 Keynote
PPTX
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
PDF
Scilab and Xcos for Very Low Earth Orbits satellites modelling
PPTX
X2C -a tool for model-based control development and automated code generation...
PPTX
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
PPTX
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
PPT
Scilab for real dummies j.heikell - part3
PPT
Scilab for real dummies j.heikell - part 2
PPT
Scilab for real dummies j.heikell - part 1
PDF
Multiobjective optimization and Genetic algorithms in Scilab
PDF
Scilab optimization workshop
PDF
INRA @ Scilab Conference 2018
PDF
Qualcomm @ Scilab Conference 2018
PDF
Sanofi @ Scilab Conference 2018
PDF
University of Applied Science Esslingen @ Scilab Conference 2018
PPTX
DLR @ Scilab Conference 2018
PPTX
Fraunhofer IIS @ Scilab Conference 2018
PDF
Arcelormittal @ Scilab Conference 2018
Statistical Analysis for Robust Design
Electric motor optimization
Asteroidlanding - Scilab conference 2019 Keynote
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Scilab and Xcos for Very Low Earth Orbits satellites modelling
X2C -a tool for model-based control development and automated code generation...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 1
Multiobjective optimization and Genetic algorithms in Scilab
Scilab optimization workshop
INRA @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018
DLR @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018

Recently uploaded (20)

PPTX
Module_4_Updated_Presentation CORRUPTION AND GRAFT IN THE PHILIPPINES.pptx
PPTX
chapter8-180915055454bycuufucdghrwtrt.pptx
PPTX
lesson6-211001025531lesson plan ppt.pptx
PDF
COLEAD A2F approach and Theory of Change
PDF
MODULE 3 BASIC SECURITY DUTIES AND ROLES.pdf
PPTX
water for all cao bang - a charity project
PPTX
MERISTEMATIC TISSUES (MERISTEMS) PPT PUBLIC
PDF
_Nature and dynamics of communities and community development .pdf
PPTX
ANICK 6 BIRTHDAY....................................................
PDF
Yusen Logistics Group Sustainability Report 2024.pdf
PPTX
FINAL TEST 3C_OCTAVIA RAMADHANI SANTOSO-1.pptx
PPTX
NORMAN_RESEARCH_PRESENTATION.in education
PPTX
Impressionism_PostImpressionism_Presentation.pptx
PDF
PM Narendra Modi's speech from Red Fort on 79th Independence Day.pdf
DOCX
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
PPTX
Human Mind & its character Characteristics
PPTX
2025-08-17 Joseph 03 (shared slides).pptx
PPTX
Phylogeny and disease transmission of Dipteran Fly (ppt).pptx
DOC
LSTM毕业证学历认证,利物浦大学毕业证学历认证怎么认证
PPTX
Lesson-7-Gas. -Exchange_074636.pptx
Module_4_Updated_Presentation CORRUPTION AND GRAFT IN THE PHILIPPINES.pptx
chapter8-180915055454bycuufucdghrwtrt.pptx
lesson6-211001025531lesson plan ppt.pptx
COLEAD A2F approach and Theory of Change
MODULE 3 BASIC SECURITY DUTIES AND ROLES.pdf
water for all cao bang - a charity project
MERISTEMATIC TISSUES (MERISTEMS) PPT PUBLIC
_Nature and dynamics of communities and community development .pdf
ANICK 6 BIRTHDAY....................................................
Yusen Logistics Group Sustainability Report 2024.pdf
FINAL TEST 3C_OCTAVIA RAMADHANI SANTOSO-1.pptx
NORMAN_RESEARCH_PRESENTATION.in education
Impressionism_PostImpressionism_Presentation.pptx
PM Narendra Modi's speech from Red Fort on 79th Independence Day.pdf
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
Human Mind & its character Characteristics
2025-08-17 Joseph 03 (shared slides).pptx
Phylogeny and disease transmission of Dipteran Fly (ppt).pptx
LSTM毕业证学历认证,利物浦大学毕业证学历认证怎么认证
Lesson-7-Gas. -Exchange_074636.pptx

ScilabTEC 2015 - Noesis Solutions

  • 1. Using an Evolutionary Optimization approach to tune a PID controlled robotic arm Taylor Newill – Noesis Solutions, NA Technical Services Silvia Poles – Noesis Solutions, Engineering Manager
  • 2. Agenda Optimus Overview Integrating Scilab Genetic optimization of a PID 1 2 3 Future Development 4
  • 3. Agenda Optimus Overview Integrating Scilab Genetic optimization of a PID 1 2 3 Future Development 4
  • 4. Optimus: A Technology Connection Platform Creating a repeatable, automated process: • Multi code, • Multi CPU, • Synced Rapid identification of key design variables: • Histograms • Sobol indices, ANOVA • Taguchi Process Integration Design of Experiments • Create surrogate models from any dataset • Multiple approaches are tried and the best one can be used Response surface models Optimization • Gradient • Evolutionary • Hybrid Robust Design • Design for Six Sigma • Taguchi • FORM • FOSM Optimization & Robust Design
  • 5. Optimus: An Open Platform • Can drive any CLI • Embedded as a UCI/UCA • Externally through generic Interfaces • External algorithms can be used with ‘User Optimization’ • Driven from simple XML script • Any code can be used, python, C, scilab, etc. Connect any Software Apply any Algorithm • Java based GUI • ‘One click’ connection with queuing systems Drive from any Environment All functionality available through python API Full API
  • 6. Noesis Solutions - Solutions for Engineering Optimization … more than 100+ person-years experience in PIDO … sales offices across Europe, US and Asia realizing double digit profitable growth for 18+ years. A leading software & services provider A strong worldwide presence … Optimus is our only product and focus, and we partner with all major CAE and mathematical modeling vendors An independent innovation partner Noesis Solutions
  • 7. Noesis Solutions Most extensively deployed software of its kind…
  • 8. A few default interfaces
  • 9.  Automated  Multi code  Multi CPU  Repeatable CFD 20 Design parameters FEA Post-Processing
  • 11. Should I Automate? (XKCD 1319) Mouse over Text: ‘Automating’ comes from the roots ‘auto-’ meaning ‘self-’ and ‘mating’, meaning ‘screwing’
  • 12. Is it worth the time? (XKCD 1205)
  • 13. Integrating Scilab scripts in Otimus • User Customizable Interface • The UCI is easily configured with XML-files, respecting a very simple syntax • Drag and drop functionality for easy multiple disciplines
  • 14. Scilab UCI The SCE file is updated with every experiment, the xcos file is imported, then the results are extracted and then calculations are done on the resultant curves
  • 16. Evolutionary Optimization of a PID Controlled Robotic Arm 2
  • 17. Robotic Arm • Programmable mechanical arm • The links of of the robot are connected by joints allowing – rotational (angular) displacement – translational (linear) displacement • The links of the robot form a kinematic chain • The terminus of the kinematic chain is the end effector
  • 18. PID Control (Wikipedia) • When the robotic arm is given a target, a PID loop is used to control the movement of the arm relative to the target • PID is a proportional-integral-derivative controller • It is a control loop feedback mechanisms • A PID controller calculates an error value as the difference between a measured process variable and a desired target • The controller attempts to minimize the error by adjusting the process through use of a manipulated variable.
  • 19. The Challenge • Typically, robotic arms are tuned by tuning one PID loop at a time and cycling through the loops until the overall behavior is satisfactory. • This process can be time consuming and is not guaranteed to converge to the best overall tuning. • In this example we will automate the tuning of 1 PID, multiple PID’s have since been added
  • 20. Robotic Tools for Scilab/Xcos • From the ‘Scilab Ninja’ – Dr. Varodom Toochinda • Beta Version – Kinematics – Dynamics – Path generation – Control
  • 21. Evolutionary Optimization • Start with a population covering the design space • Make slight changes to input variables of the best performing experiments • Make a new population based on the best performing experiments
  • 23. Parametric Usage of the Toolbox • Optimus will detect any controllable inputs • Outputs can be extracted – From memory – From output files – From response variables
  • 27. Design of Experiments • Individual runs took about 30 seconds • Wanted to adequately cover the design space – 3 inputs, 3 responses – 81 experiments tested • Latin Hypercube DOE was used
  • 28. Response Surface Model • 18 different RSM’s were tested, RBF was selected • Lowest error, created quickly, easily exported
  • 30. Evolutionary Optimization • Multiple strategies will be compared • All run on RSM • Results validated with simulation • Objective is to reduce PID error and reduce experiment count • Single Objective Optimization Algorithms Tested – Differential – Self adaptive – Simulated Annealing – CMA-ES – Particle Swarm
  • 33. Performance Impact Strategy Experiments Normalized PID Error Validated Difference from Nominal Nominal 0 892553 Differential 256 660291 659332 26.1% Self Adaptive 333 660575 660027 26.05% Annealing 153 660100 659301 26.13% Particle Swarm 664 660085 658948 26.17% CMA-ES 233 661889 661149 25.92%
  • 34. Resource Impact Task Time w/o Optimus Time with Optimus Total Time Saved Create Robotic arm model 120 min 120 min 0 Create workflow 0 5 min -5 min Test each PID setting (3) 2 min 0 6 min Tune entire PID (3) 60 min 0 180 min Simulate arm movement 2 min 2 min 0 Run Optimization (253 simulations) 506 CPU min 200 CPU min 306 CPU min
  • 35. Is it worth the time? • Workflow development took 10 minutes • For one tuning routine Optimus saved – 3 hours of human time – 5 CPU hours
  • 36. With Scilab and Optimus you can Conclusion Save Time Consolidate Knowledge • Drive Scilab and combine with other tools • Automate Repetitive Tasks • Maximize efficient use of your simulation resources • Simplify your design work by focusing on key parameters • Automate parametric studies • Intelligent optimization methods • Create fast and accurate meta models • Share model data through Excel, etc… Improve Performance