26
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

A MAPLE-MATLAB INTERFACE

  • Upload
    niabi

  • View
    38

  • Download
    2

Embed Size (px)

DESCRIPTION

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. - PowerPoint PPT Presentation

Citation preview

Page 1: A MAPLE-MATLAB INTERFACE

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

Page 2: A MAPLE-MATLAB INTERFACE

INTERFACE

MAPLE

MATLAB

Page 3: A MAPLE-MATLAB INTERFACE

• How the idea was born

• Maple and Matlab

• Characteristics of Maple and Matlab, as well as the description of some interfaces

•Introduction

Page 4: A MAPLE-MATLAB INTERFACE

•Introduction

•General description of the interface Maple

Matlab and how to use it

•Examples

•Conclusions

Page 5: A MAPLE-MATLAB INTERFACE

•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

Page 6: A MAPLE-MATLAB INTERFACE

•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

Page 7: A MAPLE-MATLAB INTERFACE

•Current software available

• Maple characteristics

• Matlab characteristics

• Current Interfaces

Page 8: A MAPLE-MATLAB INTERFACE

•Maple characteristics

• Very powerful symbolic language software

• Capacity of inputs and outputs (files)

• User friendly and easy programming

• Graphics capacity

•Advantages

Page 9: A MAPLE-MATLAB INTERFACE

•Maple characteristics

• 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

•Disadvantages

Page 10: A MAPLE-MATLAB INTERFACE

•Matlab characteristics

• Very powerful numerical software

• Capacity of inputs and outputs (files)

•Advantages

Page 11: A MAPLE-MATLAB INTERFACE

•Matlab characteristics

• The numerical methods used are very efficient

• It is a very versatile software due to the

“Toolboxes” that are available for many

applications

•Advantages

Page 12: A MAPLE-MATLAB INTERFACE

•Matlab characteristics

• It is not very user friendly

• Does not handle general symbolic expressions

• Particular manner for user interaction

•Disadvantages

Page 13: A MAPLE-MATLAB INTERFACE

•Current Interfaces

• Matlab Interface Maple (Symbolic Toolbox)

• Mathematica Interface (Symbolic Numeric)

• Mathematica Interface Fortran or C

Page 14: A MAPLE-MATLAB INTERFACE

AN INTERFACE

MAPLE

MATLAB

Page 15: A MAPLE-MATLAB INTERFACE

•General Description

• Platform: Unix

• Programming: Language C1. Initial problem in Maple

2. Program mm.map (it translates the output from Maple as input to Matlab)

Page 16: A MAPLE-MATLAB INTERFACE

•General Description

3. Matlab execution (Optimization Toolbox with the selected subroutine)

• Results in a Matlab.res file

Page 17: A MAPLE-MATLAB INTERFACE

•Interface Maple-Matlab

Program in C

MAPLE MATLAB

mm.map

1 3

2

Page 18: A MAPLE-MATLAB INTERFACE

•Optimization Toolbox

• Constr• Minimax• fmin, fminu, fmins• attgoal• leastsq

ConstraintMinimaxMinimizationGoal AttainmentLeast Squares

Page 19: A MAPLE-MATLAB INTERFACE

•Flow chart START

Define Optimization Subroutine

Input.map

Constraints?

mm.map

func.m

Result.map

my.con

OptimizationConditions(Optim.m)

(Maple)

(Maple)

(Matlab)

(Matlab)

yes

no

Page 20: A MAPLE-MATLAB INTERFACE

Kinematic Design Optimization of Robot Manipulators

•Examples

Page 21: A MAPLE-MATLAB INTERFACE

Kinematics Design Optimization of Planar Robot Manipulators

• Manipulability

• Isotropy condition criterion (2 cases)

• Upper bound on Condition number

• Upper bound on Rank Preservation

Page 22: A MAPLE-MATLAB INTERFACE

Kinematics Design Optimization Kinematics Design Optimization

of Robot Manipulatorsof Robot Manipulators

Using Upper bound on Using Upper bound on Rank Preservation: Rank Preservation: - 7 DOF Anthropomorphic - 7 DOF Anthropomorphic Manipulator; - 7 DOF Space Manipulator; - 7 DOF Space Station Robot ManipulatorStation Robot Manipulator

Page 23: A MAPLE-MATLAB INTERFACE

•Flow chart START

Optimization subroutine: constr

Input.map

Constraints?

mm.map

func.m

Result.map

g[1]=3.0-(11+12+13)

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)

(Maple)

(Maple)

(Matlab)

(Matlab)

yes

no

(Case A: Manipulability)

constraint

Optim.m

Page 24: A MAPLE-MATLAB INTERFACE

•Conclusions

• Detailed study of software for mathematical (Symbolic and Numeric) computation

• Interface Maple Matlab

Page 25: A MAPLE-MATLAB INTERFACE

•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

Page 26: A MAPLE-MATLAB INTERFACE

Thanks !Thanks !