290 likes | 434 Views
A MAPLE-MATLAB INTERFACE. A CASE FOR THE OPTIMIZATION TOOLBOX. Enrique Díaz de León * - René V. Mayorga ** - Graciano Dieck*** * ITESM - Guadalajara Campus, Mexico ** University of Regina, Canada *** ITESM - Monterrey Campus, Mexico. MAPLE. MATLAB. INTERFACE. Introduction.
E N D
A MAPLE-MATLAB INTERFACE A CASE FOR THE OPTIMIZATION TOOLBOX Enrique Díaz de León * - René V. Mayorga ** - Graciano Dieck*** * ITESM - Guadalajara Campus, Mexico ** University of Regina, Canada *** ITESM - Monterrey Campus, Mexico
MAPLE MATLAB INTERFACE
Introduction • How the idea was born • Maple and Matlab • Characteristics of Maple and Matlab, • as well as the description of some • interfaces
General description of the interface Maple • Matlab • and how to use it • Examples • Conclusions • Introduction
How was the idea born? • Kinematic Design Optimization of Manipulators • Initial problem in symbolic form using Maple • Find a numerical solution with the use of the • Optimization ToolBox in Matlab
How was the idea born? • A “manual” step by step process • The need of an option to manipulate • the inputs to obtain different outputs • efficiently
Current software available • Maple characteristics • Matlab characteristics • Current Interfaces
Maple characteristics • Advantages • Verypowerful symbolic language software • Capacity of inputs and outputs (files) • User friendly and easy programming • Graphics capacity
Maple characteristics • Disadvantages • Some numerical methods used are not very • efficient • There are certain type of procedures that • can not be realized completely • Does not have routines for Optimization
Matlab characteristics • Advantages • Verypowerful numerical software • Capacity of inputs and outputs (files)
Matlab characteristics • Advantages • The numerical methods used are very efficient • It is a very versatile software due to the • “Toolboxes” that are available for many • applications
Matlab characteristics • Disadvantages • It is not very user friendly • Does not handle general symbolic expressions • Particular manner for user interaction
Current Interfaces • Matlab Interface Maple • (Symbolic Toolbox) • Mathematica Interface • (Symbolic Numeric) • Mathematica Interface Fortran or C
MAPLE MATLAB AN INTERFACE
General Description • Platform: Unix • Programming: Language C • 1. Initial problem in Maple • 2. Program mm.map (it translates the output from Maple as input to Matlab)
General Description • 3. Matlab execution • (Optimization Toolbox with the • selected subroutine) • Results in a Matlab.res file
Program in C 1 3 MATLAB MAPLE 2 mm.map • Interface Maple-Matlab
Optimization Toolbox • Constr • Minimax • fmin, fminu, fmins • attgoal • leastsq Constraint Minimax Minimization Goal Attainment Least Squares
START Define Optimization Subroutine Input.map (Maple) yes my.con no Constraints? mm.map (Maple) Optimization Conditions (Optim.m) (Matlab) func.m (Matlab) Result.map • Flow chart
Examples Kinematic Design Optimization of Robot Manipulators
Kinematics Design Optimization of Planar Robot Manipulators • Manipulability • Isotropy condition criterion (2 cases) • Upper bound on Condition number • Upper bound on Rank Preservation
Kinematics Design Optimization of Robot Manipulators • Using Upper bound on Rank Preservation: - 7 DOF Anthropomorphic Manipulator; - 7 DOF Space Station Robot Manipulator
START Optimization subroutine: constr (Case A: Manipulability) Input.map (Maple) constraint yes g[1]=3.0-(11+12+13) no Constraints? Optim.m mm.map (Maple) x0=(1.7,1.7,1.7,1,1,1) vl b=( , , ,.5,.5,.5) vu b =(- ,- ,- ,.95,.95,.95) options(13)=1 constr(func,x0,options) (Matlab) func.m (Matlab) Result.map • Flow chart
Detailed study of software for • mathematical (Symbolic and • Numeric) computation • Interface Maple Matlab • Conclusions
Conclusions • Useful Software Tool for the solution of • problems formulated in Symbolic Form • requiring for their solution very efficient • numerical methods such as those • provided by Matlab • Application: • Kinematic Design Analysis/Optimization • of Robot Manipulators