SlideShare a Scribd company logo
1 of 52
Download to read offline
The free and open source software for numerical computation
Optimization with Scilab
June 29th
2011
Michaël BAUDIN & Vincent COUVERT
Scilab Consortium
The free and open source software for numerical computationThe free software for numerical computation
Part 1 - What's new in Scilab 5 ?
Focus on the Nelder-Mead component
Part 2 - Optimization in Scilab: Matlab® compatibility
Part 3 - OMD2 project: Scilab Platform Development
Part 4 - Conclusion
What is missing in Scilab ?
Outline
The free and open source software for numerical computationThe free software for numerical computation
1. Introduction
1.1 What's in Scilab ?
1.2 What's new in Scilab v5 ?
1.3 What's new on Atoms ?
Part 1 – What's new in Scilab 5 ?
2. The Nelder-Mead Component
2.1 Introduction
2.2 The algorithm
2.3 Test cases
2.4 Conclusions
The free and open source software for numerical computation
Objective Bounds Equality Inequalities Size Gradient
Needed
Solver
Linear yes linear linear medium - linpro
Quadradic yes linear linear medium - quapro
Quadratic yes linear linear large - qpsolve
Quadratic yes linear linear medium - qld
Non-Linear yes large yes optim
Non-Linear small no fminsearch
Non-Linear yes small no neldermead
Non-Linear yes small no optim_ga
Non-Linear small no optim_sa
N.Li.Lea.Sq. large optional lsqrsolve
N.Li.Lea.Sq. large optional leastsq
Min-Max yes medium yes optim/nd
Multi-Obj yes small no optim_moga
Semi-Def. lin. (spectral) large no semidef
L.M.I. lin. (spectral) lin. (spectral) large no lmisolve
1.1 What's in Scilab ?
The free and open source software for numerical computation
● Genetic Algorithms: nonlinear objective, bounds, global optimization
● Simulated Annealing: nonlinear objective, global optimization
● The Nelder-Mead component: nonlinear objective, unconstrained,
derivative-free, local optimization
● fminsearch: Matlab® compatible
1.2 What's new in Scilab 5 ?
The free and open source software for numerical computation
● Optimization Solvers:
– Quapro: linear or quadratic objective, linear constraints (full
matrices),
– SciIpopt: an interface to Ipopt. Nonlinear objective, nonlinear
constraints (beta version),
– Fmincon: nonlinear objective, nonlinear constraints (alpha
version) – Matlab® compatible,
– Other modules: Cobyla, Particle Swarm Optimization,
Optkelley, …
● Test Problems:
– Uncprb: 35 unconstrained optimization problems,
– AMPL: load AMPL problems into Scilab,
– And also: CUTEr.
1.3 What's new on ATOMS ?
The free and open source software for numerical computationThe free software for numerical computation
Outline
1. Introduction
1.1 What's in Scilab ?
1.2 What's new in Scilab v5 ?
1.3 What's new on Atoms ?
2. The Nelder-Mead Component
2.1 Introduction
2.2 The algorithm
2.3 Test cases
2.4 Conclusions
The free and open source software for numerical computation
John Ashworth Nelder (8 October 1924 – 7 August 2010)
Source: http://www.guardian.co.uk/technology/2010/sep/23/john-nelder-obituary
2. The Nelder-Mead Component
2.1 Introduction
The free and open source software for numerical computation
● We are interested in solving the unconstrained continuous
optimization problem:
Minimize f(x)
with unbounded, real, multidimensional, variable x.
● A direct search algorithm:
– Uses only function values (no gradient needed),
– Does not approximate the gradient.
● « A simplex method for function minimization », John Nelder, Roger
Mead, Computer Journal, vol. 7, no 4, 1965, p. 308-313
2. The Nelder-Mead Algorithm
2.1 Introduction
The free and open source software for numerical computation
2. The Nelder-Mead Algorithm
2.1 Introduction
Virginia Torczon (1989) writes:
"Margaret Wright has stated that over fifty percent of the calls
received by the support group for the NAG software library
concerned the version of the Nelder-Mead simplex algorithm to be
found in that library."
The free and open source software for numerical computation
A simplex: a set of n+1 vertices, in n dimensions.
In 2 dimensions.
In 3 dimensions.
2. The Nelder-Mead Algorithm
2.2 The algorithm
The free and open source software for numerical computation
● Steps in the Nelder-Mead algorithm
● Inputs:
– the n+1 vertices v(1), v(2), ..., v(n+1) of a nondegenerate
simplex in n dimensions,
– the associated function values f(1),...,f(n+1),
– the coefficients ρ (reflection), χ (expansion), γ (contraction),
and σ (shrinkage).
● Standard Nelder-Mead: ρ=1, χ=2, γ=1/2, and σ=1/2.
2. The Nelder-Mead Algorithm
2.2 The algorithm
The free and open source software for numerical computation
2. The Nelder-Mead Algorithm
2.2 The algorithm
The free and open source software for numerical computation
f x1, x2=x1
2
x2
2
−x1 x2
function [ y , index ] = quadratic ( x , index )
y = x(1)^2 + x(2)^2 - x(1) * x(2);
endfunction
nm = neldermead_new ();
nm = neldermead_configure(nm,"-numberofvariables",2);
nm = neldermead_configure(nm,"-function",quadratic);
nm = neldermead_configure(nm,"-x0",[2 2]');
nm = neldermead_search(nm);
xopt = neldermead_get(nm,"-xopt");
nm = neldermead_destroy(nm);
2. The Nelder-Mead Algorithm
2.3 Test cases
The free and open source software for numerical computation
2. The Nelder-Mead Algorithm
2.3 Test cases
The free and open source software for numerical computation
● Mc Kinnon, « Convergence of the neldermead simplex method to a nonstationary
point ». SIAM J. on Optimization, 1998
● Failure by repeated inside contraction
2. The Nelder-Mead Algorithm
2.3 Test cases
The free and open source software for numerical computation
● C. T. Kelley. « Detection and remediation of stagnation in the neldermead algorithm
using a sufficient decrease condition » SIAM J. on Optimization, 1999
● Restart the algorithm...
2. The Nelder-Mead Algorithm
2.3 Test cases
The free and open source software for numerical computation
● Some general facts:
– Memory requirement is O(n²)
– Shrink steps are rare
– Generally 1 or 2 function evaluations by iteration
– Convergence is slow. Typical number of iterations is 100n,
where n is the number of dimensions
– Hundreds of iterations are not rare
– Convergence can be even slower when n > 10 (Han &
Neumann, 2006)
– Restart the algorithm when in doubt for convergence (Kelley,
1999)
– Convergence is guaranteed in 1 dimension (Lagarias et al.,
1999)
2. The Nelder-Mead Algorithm
2.4 Conclusions
The free and open source software for numerical computation
● We should not use this algorithm just because the gradient is not
required:
– For example, if f is smooth, Quasi-Newton methods (optim)
with numerical derivatives converge much faster.
● We may use this algorithm when:
– No other property of the problem can be used (e.g. non linear
least squares can be solved by lsqrsolve),
– The objective function is nonsmooth or "noisy" (Kelley, 1999),
– We do not need too much accuracy (Torzcon, 1989),
– The number of parameters is moderate (Han & Neumann,
2006).
2. The Nelder-Mead Algorithm
2.4 Conclusions
The free and open source software for numerical computationThe free software for numerical computation
1. Introduction
2. Scilab Coverage
3. Overview
Part 3 –
Optimization in Scilab: Matlab® compatibility
The free and open source software for numerical computation
● Matlab® has many functions for optimization:
– Minimization,
– Equation solving,
– Datafitting and nonlinear least squares,
– Global optimization.
● Scilab has often similar functions: let's see which ones.
Matlab is a registered trademark of The Mathworks, Inc.
1. Introduction
The free and open source software for numerical computation
● For each Matlab® function, we search:
– Scilab function, if available,
– Differences of features, differences of algorithms.
● (*) : Function will be reviewed at the end of the talk,
● For most functions, the match is not 100% identical,
– But some other functions can do it : which ones ?
● We consider only Scilab Industrial Grade solvers:
– Scilab internal modules,
– ATOMS modules,
– Portables on all OS,
– Well documented,
– Tested.
1. Introduction
The free and open source software for numerical computation
1. Introduction
Main differences
● Design:
– Matlab®: problem oriented (may be with several solvers),
– Scilab: solver oriented (may be several solvers).
● Function arguments:
– Matlab® nearly always provides common options,
– Scilab is less homogeneous.
● Management of the callbacks/extra-arguments:
– Matlab®: M-file or @
– Scilab: list
The free and open source software for numerical computation
● Minimization:
– fminbnd Not 100% identical,
But optim can do it.
– fmincon ATOMS/fmincon (alpha version)
– fminimax Not 100% identical,
but optim/''nd'' is designed for it.
– fminsearch fminsearch 90% identical in Scilab 5.3.2.
fminsearch 99% identical in 5.4.0
2. Scilab Coverage
The free and open source software for numerical computation
– fminunc Not 100% identical,
but optim/''qn'' or optim/''gc'' are designed for it.
No sparsity pattern of Hessian in Scilab.
No PCG in optim: L-BFGS instead.
– linprog 100% for full matrices: karmarkar
ATOMS/quapro: linpro
No known solver for sparse matrices (*).
– quadprog 100% for full matrices: qpsolve, qp_solve
ATOMS/quapro: quapro
No known solver for sparse matrices.
2. Scilab Coverage
The free and open source software for numerical computation
● Equation Solving:
– fsolve fsolve 100% for full matrices.
No known solver with sparse Jacobian (*).
– fzero No identical function.
But fsolve can do it.
● Least Squares (Curve Fitting):
– lsqcurvefit datafit
– lsqnonlin lsqrsolve (leastsq)
2. Scilab Coverage
The free and open source software for numerical computation
● Global Optimization Toolbox:
● Genetic Algorithm Not 100% identical,
But optim_ga is built-in Scilab.
No linear equality and inequality in Scilab,
but bounds are managed.
● Simulated Annealing Not 100% identical,
But optim_sa is built-in Scilab
No bounds in Scilab SA, but user can
customize the neighbour function.
2. Scilab Coverage
The free and open source software for numerical computation
Matlab Problem Scilab
bintprog Binary Integer Programming -
fgoalattain Multiobjective goal attainment -
fminbd Single-variable, on interval optim
fmincon Constrained, nonlinear, multivariable ATOMS/fmincon
fminimax Minimax, constrained optim/''nd''
fminsearch Unconstrained, multivariable, derivative-free fminsearch (100%)
fminunc Unconstrained, multivariable optim/''qn'',''gc''
fseminf Semi-infinitely constrained, multivariable,
nonlinear
-
ktrlink Constrained or unconstrained, nonlinear,
multivariable using Knitro
-
linprog Linear programming karmarkar,
ATOMS/quapro
quadprog Quadratic programming qpsolve,
ATOMS/quapro
3. Overview
The free and open source software for numerical computation
Matlab Problem Scilab
fsolve Solve systems of nonlinear equations fsolve
fzero Root of continuous function of one variable -
lsqcurvefi t Nonlinear least squares curve fitting datafit
lsqlin Constrained linear least squares -
lsqnonlin Nonlinear least-squares (nonlinear data-fitting) lsqrsolve, leastsq
lsqnonneg Nonnegative least squares -
optimtool GUI to select solvers, options and run problems -
Global Search Solve GlobalSearch problems -
Multi Start Solve MultiStart problems -
Genetic Algorithm Genetic Algorithms optim_ga
Direct Search Pattern Search -
Simulated Annealing Simulated Annealing optim_sa
3. Overview
The free and open source software for numerical computationThe free software for numerical computation
Part 4 -
OMD2 project: Scilab Platform Development
1. Overview
2. Modules
2.1 Data Management
2.2 Modeling
2.3 Optimization
The free and open source software for numerical computation
● OMD2 / CSDL projects collaboration
● Will be available on Scilab forge:
– http://forge.scilab.org/index.php/p/omd2/
– Private project up to first release.
● Scilab Optimization Platform:
– Batch mode (script edition, large scale execution),
– GUI mode (interactive edition, prototyping).
● Future Scilab external module available through ATOMS.
Overview
The free and open source software for numerical computation
● Project management (Save & Load working data as HDF5 files)
● Wrappers:
– Scilab algorithms,
– External tools,
– Proactive.
● Mask complexity for users
● Modules:
– Data Management,
– Modeling,
– Optimization,
– Visualization.
Main functionalities
The free and open source software for numerical computation
● Factors / Parameters:
– Load existing Design Of Experiments (Isight .db files, …)
– Generate Design Of Experiments:
● DoE generator wrappers (LHS, …),
● DoE generator settings.
● Responses simulation using:
– External tool (openFOAM, Catia, CCM+, …),
– Scilab function.
● 2-D visualization:
– Factor / Factor,
– Response / Factor.
Data Management Module (1/2)
The free and open source software for numerical computation
Data Management Module (2/2)
The free and open source software for numerical computation
● Point selection:
– Learning points used for modeling,
– Validation points used to validate model,
– Bad points (simulation issue, …).
● Modeler:
– Selected among modeler wrappers (DACE, Lolimot, …),
– Parameters configuration,
– Multiple model management with best model user selection.
● Visualization:
– 2-D models,
– Cross correlation,
– Sensibility analysis.
Modeling module (1/2)
The free and open source software for numerical computation
Modeling module (2/2)
The free and open source software for numerical computation
● Responses coefficients values setting
● Optimizer:
– Selection among generic wrappers (optim, fmincon, genetic
algorithms, …),
– Optimizer configuration,
– Enable two chained optimizers.
● Visualization:
– Optimal point,
– Paretos,
– Robustness.
Optimization Module (1/2)
The free and open source software for numerical computation
Optimization Module (2/2)
The free and open source software for numerical computationThe free software for numerical computation
1. What is missing ?
2. Bibliography
Part 4 - Conclusion
The free and open source software for numerical computation
● High Performance Optimization:
– Use BLAS/LAPACK within optim ?
● Sparse Linear Programming:
– Update LIPSOL ?
● Non Linear Programming:
– Improve fmincon ?
● Non Linear Programming Test Cases:
– CUTEr requires a compiler on the test machine,
– Connect the Hock-Schittkowski collection ?
Conclusion
1. What is missing ?
The free and open source software for numerical computation
● « Nelder-Mead User's Manual », Michaël Baudin, Consortium Scilab
– DIGITEO, 2010
● « Optimization in Scilab », Baudin, Couvert, Steer, Consortium Scilab
- DIGITEO – INRIA, 2010
● « Optimization with scilab, present and future », Michaël Baudin and
Serge Steer, 2009 IEEE International Workshop on Open Source
Software for Scientific Computation, pp.99-106, 18-20 Sept. 2009
● « Introduction to Optimization with Scilab », Michaël Baudin,
Consortium Scilab – DIGITEO, 2010
● « Unconstrained Optimality Conditions with Scilab », Michaël Baudin,
Consortium Scilab – DIGITEO, 2010
Conclusion
2. Bibliography
The free and open source software for numerical computation
Thanks for your attention
www.scilab.org
The free and open source software for numerical computation
Some slides you won't see, unless you ask...
Extra-Slides
The free and open source software for numerical computation
Some Historical References:
● Spendley, Hext, Himsworth (1962): fixed shape simplex algorithm
● Nelder, Mead (1965): variable shape algorithm
● Box (1965): simplex algo., with constraints
● O'Neill (1971): Fortran 77 implementation.
● Torczon (1989): Multi Directional Search.
● Mc Kinnon (1998): Counter examples of N-M.
● Lagarias, Reeds, Wright, Wright (1998): Proof of convergence in
dimensions 1 and 2 for strictly convex functions.
● Han, Neumann (2006): More counter examples of N-M.
The Nelder-Mead Algorithm
The free and open source software for numerical computation
In what softwares N-M can be found ?
● Matlab (fminsearch)
● NAG (E04CBF)
● Numerical Recipes (amoeba)
● IMSL (UMPOL)
● … and Scilab since v5.2.0 in 2009
● … and R after Sébastien Bihorel's port of Scilab's source code.
The Nelder-Mead Algorithm
The free and open source software for numerical computation
1. Sort by function value. Order the vertices: f(1) ≤ · · · ≤ f(n) ≤ f(n+1)
2. Calculate centroid. B = (v(1)+...+v(n))/n
3. Reflection. Compute R = (1+ρ)B − ρv(n+1) and evaluate f(R).
4. Expansion. If f(R)<f(1), compute E=(1+ρχ)B − ρχv(n+1) and evaluate f(E).
If f(E)<f(R), accept E, else accept R and goto 1.
5. Accept R. If f(1) ≤ f(R) < f(n), accept R and goto 1.
6. Outside Contraction. If f(n)≤f(R)<f(n+1), compute Co=(1+ργ)B − ργv(n+1)
and evaluate f(Co). If f(Co)<f(R), then accept Co and goto 1 else, goto 8.
7. Inside Contraction. If f(n+1)≤f(R), compute Ci=(1-γ)B +γv(n+1) and
evaluate f(Ci). If f(Ci)<f(n+1), then accept Ci and goto 1 else, goto 8.
8. Shrink. Compute the points v(i)=v(1)+σ(v(i)-v(1)) and evaluate
f(i)=f(x(i)), for i=2,3,...,n+1. Goto 1.
The Nelder-Mead Algorithm
The free and open source software for numerical computation
● Lagarias, Reeds, Wright, Wright (1998)
1. In dimension 1, the Nelder-Mead method converges to a
minimizer, and convergence is eventually M-step linear, when
the reflection parameter ρ = 1.
2. In dimension 2, the function values at all simplex vertices in the
standard Nelder-Mead algorithm converge to the same value.
3. In dimension 2, the simplices in the standard Nelder-Mead
algorithm have diameters converging to zero.
● Note that Result 3 does not implies that the simplices converge to a
single point x*.
The Nelder-Mead Algorithm
The free and open source software for numerical computation
● Minimization:
– bintprog Solve binary integer programming problems
– fgoalattain Solve multiobjective goal attainment problems
– fminbnd Find minimum of single-variable function on
fixed interval
– fmincon Find minimum of constrained nonlinear
multivariable function
– fminimax Solve minimax constraint problem
– fminsearch Find minimum of unconstrained multivariable
function using derivative-free method
What's in Matlab® ?
The free and open source software for numerical computation
– fminunc Find minimum of unconstrained multivariable
function
– fseminf Find minimum of semi-infinitely constrained
multivariable nonlinear function
– ktrlink Find minimum of constrained or unconstrained
nonlinear multivariable function using KNITRO
third-party libraries
– linprog Solve linear programming problems
– quadprog Quadratic programming
What's in Matlab® ?
The free and open source software for numerical computation
● Equation Solving:
– fsolve Solve system of nonlinear equations
– fzero Find root of continuous function of one variable
● Least Squares (Curve Fitting):
– lsqcurvefit Solve nonlinear curve-fitting (data-fitting)
problems in least-squares sense
– lsqlin Solve constrained linear least-squares problems
– lsqnonlin Solve nonlinear least-squares problems
– lsqnonneg Solve nonnegative least-squares constraint
problem
What's in Matlab® ?
The free and open source software for numerical computation
● Utilities:
– optimtool GUI to select solver, optimization options, and
run problems
– optimget Optimization options values
– optimset Create or edit optimization options structure
What's in Matlab® ?
The free and open source software for numerical computation
● Global Optimization Toolbox:
– GlobalSearch Create and solve GlobalSearch
problems
– MultiStart Create and solve MultiStart problems
– Genetic Algorithm Use genetic algorithm and Optimization
Tool, and modify genetic algorithm
options
– Direct Search Use direct search and Optimization Tool,
and modify pattern search options
– Simulated Annealing Use simulated annealing and
Optimization Tool, and modify simulated
annealing options
What's in Matlab® toolboxes ?

More Related Content

What's hot

Process Control Presentation on control modes, Proportional, Integral, Deriva...
Process Control Presentation on control modes, Proportional, Integral, Deriva...Process Control Presentation on control modes, Proportional, Integral, Deriva...
Process Control Presentation on control modes, Proportional, Integral, Deriva...Hassan ElBanhawi
 
Non Destructive Testing methods
Non Destructive Testing methodsNon Destructive Testing methods
Non Destructive Testing methodsGuravRuturajsinh
 
The Role of Lock-in Thermography in Non-destructive Testing of Steel Structures
The Role of Lock-in Thermography in Non-destructive Testing of Steel StructuresThe Role of Lock-in Thermography in Non-destructive Testing of Steel Structures
The Role of Lock-in Thermography in Non-destructive Testing of Steel StructuresRajbir Xresta
 
FUNDAMENTAL OF VALVE DESIGN
FUNDAMENTAL OF VALVE DESIGN FUNDAMENTAL OF VALVE DESIGN
FUNDAMENTAL OF VALVE DESIGN MOHAMMAD ATIF ALI
 
Thesis presentation on inverted pendulum
Thesis presentation on inverted pendulum Thesis presentation on inverted pendulum
Thesis presentation on inverted pendulum Nowab Md. Aminul Haq
 
Introduction to Mechatronics
Introduction to MechatronicsIntroduction to Mechatronics
Introduction to MechatronicsProfDrDileepK
 
Leak Testing: Different Types Of Leak Testing Methods | Helium Leak Testing
Leak Testing: Different Types Of Leak Testing Methods | Helium Leak Testing Leak Testing: Different Types Of Leak Testing Methods | Helium Leak Testing
Leak Testing: Different Types Of Leak Testing Methods | Helium Leak Testing Kryovess Pvt. Ltd.
 
Fired Equipment presentation on Types, Classification and governing Equations...
Fired Equipment presentation on Types, Classification and governing Equations...Fired Equipment presentation on Types, Classification and governing Equations...
Fired Equipment presentation on Types, Classification and governing Equations...Hassan ElBanhawi
 
Level measurement
Level measurementLevel measurement
Level measurementmd tasnim
 

What's hot (20)

Pressure Measurement Part III
Pressure Measurement   Part IIIPressure Measurement   Part III
Pressure Measurement Part III
 
Vernier caliper
Vernier caliperVernier caliper
Vernier caliper
 
Process Control Presentation on control modes, Proportional, Integral, Deriva...
Process Control Presentation on control modes, Proportional, Integral, Deriva...Process Control Presentation on control modes, Proportional, Integral, Deriva...
Process Control Presentation on control modes, Proportional, Integral, Deriva...
 
Non Destructive Testing methods
Non Destructive Testing methodsNon Destructive Testing methods
Non Destructive Testing methods
 
Bevel Protractor
Bevel ProtractorBevel Protractor
Bevel Protractor
 
The Role of Lock-in Thermography in Non-destructive Testing of Steel Structures
The Role of Lock-in Thermography in Non-destructive Testing of Steel StructuresThe Role of Lock-in Thermography in Non-destructive Testing of Steel Structures
The Role of Lock-in Thermography in Non-destructive Testing of Steel Structures
 
Control valves
Control  valvesControl  valves
Control valves
 
FUNDAMENTAL OF VALVE DESIGN
FUNDAMENTAL OF VALVE DESIGN FUNDAMENTAL OF VALVE DESIGN
FUNDAMENTAL OF VALVE DESIGN
 
Thesis presentation on inverted pendulum
Thesis presentation on inverted pendulum Thesis presentation on inverted pendulum
Thesis presentation on inverted pendulum
 
Lesson 1 - Surface design-basic commands-help files ppt
Lesson  1 - Surface design-basic commands-help files pptLesson  1 - Surface design-basic commands-help files ppt
Lesson 1 - Surface design-basic commands-help files ppt
 
Mechanical vibration notes
Mechanical vibration notesMechanical vibration notes
Mechanical vibration notes
 
Fundamentals of vibration
Fundamentals of vibrationFundamentals of vibration
Fundamentals of vibration
 
Pressure
PressurePressure
Pressure
 
Introduction to Mechatronics
Introduction to MechatronicsIntroduction to Mechatronics
Introduction to Mechatronics
 
Leak Testing: Different Types Of Leak Testing Methods | Helium Leak Testing
Leak Testing: Different Types Of Leak Testing Methods | Helium Leak Testing Leak Testing: Different Types Of Leak Testing Methods | Helium Leak Testing
Leak Testing: Different Types Of Leak Testing Methods | Helium Leak Testing
 
Fired Equipment presentation on Types, Classification and governing Equations...
Fired Equipment presentation on Types, Classification and governing Equations...Fired Equipment presentation on Types, Classification and governing Equations...
Fired Equipment presentation on Types, Classification and governing Equations...
 
08 pid.controller
08 pid.controller08 pid.controller
08 pid.controller
 
Turbine flow meter
Turbine flow meter Turbine flow meter
Turbine flow meter
 
Level measurement
Level measurementLevel measurement
Level measurement
 
924 k enc
924 k enc924 k enc
924 k enc
 

Similar to Optimization in Scilab

Solving Optimization Problems using the Matlab Optimization.docx
Solving Optimization Problems using the Matlab Optimization.docxSolving Optimization Problems using the Matlab Optimization.docx
Solving Optimization Problems using the Matlab Optimization.docxwhitneyleman54422
 
MATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaMATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaAbee Sharma
 
ANALYSIS-AND-DESIGN-OF-ALGORITHM.ppt
ANALYSIS-AND-DESIGN-OF-ALGORITHM.pptANALYSIS-AND-DESIGN-OF-ALGORITHM.ppt
ANALYSIS-AND-DESIGN-OF-ALGORITHM.pptDaveCalapis3
 
UnitI (1).ppt
UnitI (1).pptUnitI (1).ppt
UnitI (1).pptDSirisha2
 
Week1 programming challenges
Week1 programming challengesWeek1 programming challenges
Week1 programming challengesDhanu Srikar
 
Design & Analysis of Algorithm course .pptx
Design & Analysis of Algorithm course .pptxDesign & Analysis of Algorithm course .pptx
Design & Analysis of Algorithm course .pptxJeevaMCSEKIOT
 
Design and Analysis Algorithms.pdf
Design and Analysis Algorithms.pdfDesign and Analysis Algorithms.pdf
Design and Analysis Algorithms.pdfHarshNagda5
 
Jay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIJay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIAI Frontiers
 
Convex optmization in communications
Convex optmization in communicationsConvex optmization in communications
Convex optmization in communicationsDeepshika Reddy
 
Packing Problems Using Gurobi
Packing Problems Using GurobiPacking Problems Using Gurobi
Packing Problems Using GurobiTerrance Smith
 
Online learning, Vowpal Wabbit and Hadoop
Online learning, Vowpal Wabbit and HadoopOnline learning, Vowpal Wabbit and Hadoop
Online learning, Vowpal Wabbit and HadoopHéloïse Nonne
 
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...IRJET Journal
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab Arshit Rai
 

Similar to Optimization in Scilab (20)

Solving Optimization Problems using the Matlab Optimization.docx
Solving Optimization Problems using the Matlab Optimization.docxSolving Optimization Problems using the Matlab Optimization.docx
Solving Optimization Problems using the Matlab Optimization.docx
 
LP.ppt
LP.pptLP.ppt
LP.ppt
 
MATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi SharmaMATLAB Programs For Beginners. | Abhi Sharma
MATLAB Programs For Beginners. | Abhi Sharma
 
ANALYSIS-AND-DESIGN-OF-ALGORITHM.ppt
ANALYSIS-AND-DESIGN-OF-ALGORITHM.pptANALYSIS-AND-DESIGN-OF-ALGORITHM.ppt
ANALYSIS-AND-DESIGN-OF-ALGORITHM.ppt
 
UnitI (1).ppt
UnitI (1).pptUnitI (1).ppt
UnitI (1).ppt
 
Week1 programming challenges
Week1 programming challengesWeek1 programming challenges
Week1 programming challenges
 
Design & Analysis of Algorithm course .pptx
Design & Analysis of Algorithm course .pptxDesign & Analysis of Algorithm course .pptx
Design & Analysis of Algorithm course .pptx
 
Design and Analysis Algorithms.pdf
Design and Analysis Algorithms.pdfDesign and Analysis Algorithms.pdf
Design and Analysis Algorithms.pdf
 
Jay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIJay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AI
 
scilab
scilabscilab
scilab
 
EEDC Programming Models
EEDC Programming ModelsEEDC Programming Models
EEDC Programming Models
 
Convex optmization in communications
Convex optmization in communicationsConvex optmization in communications
Convex optmization in communications
 
lec26.pptx
lec26.pptxlec26.pptx
lec26.pptx
 
Packing Problems Using Gurobi
Packing Problems Using GurobiPacking Problems Using Gurobi
Packing Problems Using Gurobi
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Online learning, Vowpal Wabbit and Hadoop
Online learning, Vowpal Wabbit and HadoopOnline learning, Vowpal Wabbit and Hadoop
Online learning, Vowpal Wabbit and Hadoop
 
Dynamic pgmming
Dynamic pgmmingDynamic pgmming
Dynamic pgmming
 
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Dynamicpgmming
DynamicpgmmingDynamicpgmming
Dynamicpgmming
 

More from Scilab

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

More from Scilab (20)

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

Recently uploaded

Module 4: Mendelian Genetics and Punnett Square
Module 4:  Mendelian Genetics and Punnett SquareModule 4:  Mendelian Genetics and Punnett Square
Module 4: Mendelian Genetics and Punnett SquareIsiahStephanRadaza
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
Call Girls in Hauz Khas Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Hauz Khas Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Hauz Khas Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Hauz Khas Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxyaramohamed343013
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxFarihaAbdulRasheed
 
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tantaDashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tantaPraksha3
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRlizamodels9
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxpriyankatabhane
 
Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)DHURKADEVIBASKAR
 
Gas_Laws_powerpoint_notes.ppt for grade 10
Gas_Laws_powerpoint_notes.ppt for grade 10Gas_Laws_powerpoint_notes.ppt for grade 10
Gas_Laws_powerpoint_notes.ppt for grade 10ROLANARIBATO3
 
Temporomandibular joint Muscles of Mastication
Temporomandibular joint Muscles of MasticationTemporomandibular joint Muscles of Mastication
Temporomandibular joint Muscles of Masticationvidulajaib
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxmalonesandreagweneth
 
TOTAL CHOLESTEROL (lipid profile test).pptx
TOTAL CHOLESTEROL (lipid profile test).pptxTOTAL CHOLESTEROL (lipid profile test).pptx
TOTAL CHOLESTEROL (lipid profile test).pptxdharshini369nike
 
Forest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantForest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantadityabhardwaj282
 
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 

Recently uploaded (20)

Module 4: Mendelian Genetics and Punnett Square
Module 4:  Mendelian Genetics and Punnett SquareModule 4:  Mendelian Genetics and Punnett Square
Module 4: Mendelian Genetics and Punnett Square
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
Call Girls in Hauz Khas Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Hauz Khas Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Hauz Khas Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Hauz Khas Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docx
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
 
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tantaDashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
 
Engler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomyEngler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomy
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptx
 
Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)
 
Gas_Laws_powerpoint_notes.ppt for grade 10
Gas_Laws_powerpoint_notes.ppt for grade 10Gas_Laws_powerpoint_notes.ppt for grade 10
Gas_Laws_powerpoint_notes.ppt for grade 10
 
Temporomandibular joint Muscles of Mastication
Temporomandibular joint Muscles of MasticationTemporomandibular joint Muscles of Mastication
Temporomandibular joint Muscles of Mastication
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
 
TOTAL CHOLESTEROL (lipid profile test).pptx
TOTAL CHOLESTEROL (lipid profile test).pptxTOTAL CHOLESTEROL (lipid profile test).pptx
TOTAL CHOLESTEROL (lipid profile test).pptx
 
Forest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are importantForest laws, Indian forest laws, why they are important
Forest laws, Indian forest laws, why they are important
 
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 

Optimization in Scilab

  • 1. The free and open source software for numerical computation Optimization with Scilab June 29th 2011 Michaël BAUDIN & Vincent COUVERT Scilab Consortium
  • 2. The free and open source software for numerical computationThe free software for numerical computation Part 1 - What's new in Scilab 5 ? Focus on the Nelder-Mead component Part 2 - Optimization in Scilab: Matlab® compatibility Part 3 - OMD2 project: Scilab Platform Development Part 4 - Conclusion What is missing in Scilab ? Outline
  • 3. The free and open source software for numerical computationThe free software for numerical computation 1. Introduction 1.1 What's in Scilab ? 1.2 What's new in Scilab v5 ? 1.3 What's new on Atoms ? Part 1 – What's new in Scilab 5 ? 2. The Nelder-Mead Component 2.1 Introduction 2.2 The algorithm 2.3 Test cases 2.4 Conclusions
  • 4. The free and open source software for numerical computation Objective Bounds Equality Inequalities Size Gradient Needed Solver Linear yes linear linear medium - linpro Quadradic yes linear linear medium - quapro Quadratic yes linear linear large - qpsolve Quadratic yes linear linear medium - qld Non-Linear yes large yes optim Non-Linear small no fminsearch Non-Linear yes small no neldermead Non-Linear yes small no optim_ga Non-Linear small no optim_sa N.Li.Lea.Sq. large optional lsqrsolve N.Li.Lea.Sq. large optional leastsq Min-Max yes medium yes optim/nd Multi-Obj yes small no optim_moga Semi-Def. lin. (spectral) large no semidef L.M.I. lin. (spectral) lin. (spectral) large no lmisolve 1.1 What's in Scilab ?
  • 5. The free and open source software for numerical computation ● Genetic Algorithms: nonlinear objective, bounds, global optimization ● Simulated Annealing: nonlinear objective, global optimization ● The Nelder-Mead component: nonlinear objective, unconstrained, derivative-free, local optimization ● fminsearch: Matlab® compatible 1.2 What's new in Scilab 5 ?
  • 6. The free and open source software for numerical computation ● Optimization Solvers: – Quapro: linear or quadratic objective, linear constraints (full matrices), – SciIpopt: an interface to Ipopt. Nonlinear objective, nonlinear constraints (beta version), – Fmincon: nonlinear objective, nonlinear constraints (alpha version) – Matlab® compatible, – Other modules: Cobyla, Particle Swarm Optimization, Optkelley, … ● Test Problems: – Uncprb: 35 unconstrained optimization problems, – AMPL: load AMPL problems into Scilab, – And also: CUTEr. 1.3 What's new on ATOMS ?
  • 7. The free and open source software for numerical computationThe free software for numerical computation Outline 1. Introduction 1.1 What's in Scilab ? 1.2 What's new in Scilab v5 ? 1.3 What's new on Atoms ? 2. The Nelder-Mead Component 2.1 Introduction 2.2 The algorithm 2.3 Test cases 2.4 Conclusions
  • 8. The free and open source software for numerical computation John Ashworth Nelder (8 October 1924 – 7 August 2010) Source: http://www.guardian.co.uk/technology/2010/sep/23/john-nelder-obituary 2. The Nelder-Mead Component 2.1 Introduction
  • 9. The free and open source software for numerical computation ● We are interested in solving the unconstrained continuous optimization problem: Minimize f(x) with unbounded, real, multidimensional, variable x. ● A direct search algorithm: – Uses only function values (no gradient needed), – Does not approximate the gradient. ● « A simplex method for function minimization », John Nelder, Roger Mead, Computer Journal, vol. 7, no 4, 1965, p. 308-313 2. The Nelder-Mead Algorithm 2.1 Introduction
  • 10. The free and open source software for numerical computation 2. The Nelder-Mead Algorithm 2.1 Introduction Virginia Torczon (1989) writes: "Margaret Wright has stated that over fifty percent of the calls received by the support group for the NAG software library concerned the version of the Nelder-Mead simplex algorithm to be found in that library."
  • 11. The free and open source software for numerical computation A simplex: a set of n+1 vertices, in n dimensions. In 2 dimensions. In 3 dimensions. 2. The Nelder-Mead Algorithm 2.2 The algorithm
  • 12. The free and open source software for numerical computation ● Steps in the Nelder-Mead algorithm ● Inputs: – the n+1 vertices v(1), v(2), ..., v(n+1) of a nondegenerate simplex in n dimensions, – the associated function values f(1),...,f(n+1), – the coefficients ρ (reflection), χ (expansion), γ (contraction), and σ (shrinkage). ● Standard Nelder-Mead: ρ=1, χ=2, γ=1/2, and σ=1/2. 2. The Nelder-Mead Algorithm 2.2 The algorithm
  • 13. The free and open source software for numerical computation 2. The Nelder-Mead Algorithm 2.2 The algorithm
  • 14. The free and open source software for numerical computation f x1, x2=x1 2 x2 2 −x1 x2 function [ y , index ] = quadratic ( x , index ) y = x(1)^2 + x(2)^2 - x(1) * x(2); endfunction nm = neldermead_new (); nm = neldermead_configure(nm,"-numberofvariables",2); nm = neldermead_configure(nm,"-function",quadratic); nm = neldermead_configure(nm,"-x0",[2 2]'); nm = neldermead_search(nm); xopt = neldermead_get(nm,"-xopt"); nm = neldermead_destroy(nm); 2. The Nelder-Mead Algorithm 2.3 Test cases
  • 15. The free and open source software for numerical computation 2. The Nelder-Mead Algorithm 2.3 Test cases
  • 16. The free and open source software for numerical computation ● Mc Kinnon, « Convergence of the neldermead simplex method to a nonstationary point ». SIAM J. on Optimization, 1998 ● Failure by repeated inside contraction 2. The Nelder-Mead Algorithm 2.3 Test cases
  • 17. The free and open source software for numerical computation ● C. T. Kelley. « Detection and remediation of stagnation in the neldermead algorithm using a sufficient decrease condition » SIAM J. on Optimization, 1999 ● Restart the algorithm... 2. The Nelder-Mead Algorithm 2.3 Test cases
  • 18. The free and open source software for numerical computation ● Some general facts: – Memory requirement is O(n²) – Shrink steps are rare – Generally 1 or 2 function evaluations by iteration – Convergence is slow. Typical number of iterations is 100n, where n is the number of dimensions – Hundreds of iterations are not rare – Convergence can be even slower when n > 10 (Han & Neumann, 2006) – Restart the algorithm when in doubt for convergence (Kelley, 1999) – Convergence is guaranteed in 1 dimension (Lagarias et al., 1999) 2. The Nelder-Mead Algorithm 2.4 Conclusions
  • 19. The free and open source software for numerical computation ● We should not use this algorithm just because the gradient is not required: – For example, if f is smooth, Quasi-Newton methods (optim) with numerical derivatives converge much faster. ● We may use this algorithm when: – No other property of the problem can be used (e.g. non linear least squares can be solved by lsqrsolve), – The objective function is nonsmooth or "noisy" (Kelley, 1999), – We do not need too much accuracy (Torzcon, 1989), – The number of parameters is moderate (Han & Neumann, 2006). 2. The Nelder-Mead Algorithm 2.4 Conclusions
  • 20. The free and open source software for numerical computationThe free software for numerical computation 1. Introduction 2. Scilab Coverage 3. Overview Part 3 – Optimization in Scilab: Matlab® compatibility
  • 21. The free and open source software for numerical computation ● Matlab® has many functions for optimization: – Minimization, – Equation solving, – Datafitting and nonlinear least squares, – Global optimization. ● Scilab has often similar functions: let's see which ones. Matlab is a registered trademark of The Mathworks, Inc. 1. Introduction
  • 22. The free and open source software for numerical computation ● For each Matlab® function, we search: – Scilab function, if available, – Differences of features, differences of algorithms. ● (*) : Function will be reviewed at the end of the talk, ● For most functions, the match is not 100% identical, – But some other functions can do it : which ones ? ● We consider only Scilab Industrial Grade solvers: – Scilab internal modules, – ATOMS modules, – Portables on all OS, – Well documented, – Tested. 1. Introduction
  • 23. The free and open source software for numerical computation 1. Introduction Main differences ● Design: – Matlab®: problem oriented (may be with several solvers), – Scilab: solver oriented (may be several solvers). ● Function arguments: – Matlab® nearly always provides common options, – Scilab is less homogeneous. ● Management of the callbacks/extra-arguments: – Matlab®: M-file or @ – Scilab: list
  • 24. The free and open source software for numerical computation ● Minimization: – fminbnd Not 100% identical, But optim can do it. – fmincon ATOMS/fmincon (alpha version) – fminimax Not 100% identical, but optim/''nd'' is designed for it. – fminsearch fminsearch 90% identical in Scilab 5.3.2. fminsearch 99% identical in 5.4.0 2. Scilab Coverage
  • 25. The free and open source software for numerical computation – fminunc Not 100% identical, but optim/''qn'' or optim/''gc'' are designed for it. No sparsity pattern of Hessian in Scilab. No PCG in optim: L-BFGS instead. – linprog 100% for full matrices: karmarkar ATOMS/quapro: linpro No known solver for sparse matrices (*). – quadprog 100% for full matrices: qpsolve, qp_solve ATOMS/quapro: quapro No known solver for sparse matrices. 2. Scilab Coverage
  • 26. The free and open source software for numerical computation ● Equation Solving: – fsolve fsolve 100% for full matrices. No known solver with sparse Jacobian (*). – fzero No identical function. But fsolve can do it. ● Least Squares (Curve Fitting): – lsqcurvefit datafit – lsqnonlin lsqrsolve (leastsq) 2. Scilab Coverage
  • 27. The free and open source software for numerical computation ● Global Optimization Toolbox: ● Genetic Algorithm Not 100% identical, But optim_ga is built-in Scilab. No linear equality and inequality in Scilab, but bounds are managed. ● Simulated Annealing Not 100% identical, But optim_sa is built-in Scilab No bounds in Scilab SA, but user can customize the neighbour function. 2. Scilab Coverage
  • 28. The free and open source software for numerical computation Matlab Problem Scilab bintprog Binary Integer Programming - fgoalattain Multiobjective goal attainment - fminbd Single-variable, on interval optim fmincon Constrained, nonlinear, multivariable ATOMS/fmincon fminimax Minimax, constrained optim/''nd'' fminsearch Unconstrained, multivariable, derivative-free fminsearch (100%) fminunc Unconstrained, multivariable optim/''qn'',''gc'' fseminf Semi-infinitely constrained, multivariable, nonlinear - ktrlink Constrained or unconstrained, nonlinear, multivariable using Knitro - linprog Linear programming karmarkar, ATOMS/quapro quadprog Quadratic programming qpsolve, ATOMS/quapro 3. Overview
  • 29. The free and open source software for numerical computation Matlab Problem Scilab fsolve Solve systems of nonlinear equations fsolve fzero Root of continuous function of one variable - lsqcurvefi t Nonlinear least squares curve fitting datafit lsqlin Constrained linear least squares - lsqnonlin Nonlinear least-squares (nonlinear data-fitting) lsqrsolve, leastsq lsqnonneg Nonnegative least squares - optimtool GUI to select solvers, options and run problems - Global Search Solve GlobalSearch problems - Multi Start Solve MultiStart problems - Genetic Algorithm Genetic Algorithms optim_ga Direct Search Pattern Search - Simulated Annealing Simulated Annealing optim_sa 3. Overview
  • 30. The free and open source software for numerical computationThe free software for numerical computation Part 4 - OMD2 project: Scilab Platform Development 1. Overview 2. Modules 2.1 Data Management 2.2 Modeling 2.3 Optimization
  • 31. The free and open source software for numerical computation ● OMD2 / CSDL projects collaboration ● Will be available on Scilab forge: – http://forge.scilab.org/index.php/p/omd2/ – Private project up to first release. ● Scilab Optimization Platform: – Batch mode (script edition, large scale execution), – GUI mode (interactive edition, prototyping). ● Future Scilab external module available through ATOMS. Overview
  • 32. The free and open source software for numerical computation ● Project management (Save & Load working data as HDF5 files) ● Wrappers: – Scilab algorithms, – External tools, – Proactive. ● Mask complexity for users ● Modules: – Data Management, – Modeling, – Optimization, – Visualization. Main functionalities
  • 33. The free and open source software for numerical computation ● Factors / Parameters: – Load existing Design Of Experiments (Isight .db files, …) – Generate Design Of Experiments: ● DoE generator wrappers (LHS, …), ● DoE generator settings. ● Responses simulation using: – External tool (openFOAM, Catia, CCM+, …), – Scilab function. ● 2-D visualization: – Factor / Factor, – Response / Factor. Data Management Module (1/2)
  • 34. The free and open source software for numerical computation Data Management Module (2/2)
  • 35. The free and open source software for numerical computation ● Point selection: – Learning points used for modeling, – Validation points used to validate model, – Bad points (simulation issue, …). ● Modeler: – Selected among modeler wrappers (DACE, Lolimot, …), – Parameters configuration, – Multiple model management with best model user selection. ● Visualization: – 2-D models, – Cross correlation, – Sensibility analysis. Modeling module (1/2)
  • 36. The free and open source software for numerical computation Modeling module (2/2)
  • 37. The free and open source software for numerical computation ● Responses coefficients values setting ● Optimizer: – Selection among generic wrappers (optim, fmincon, genetic algorithms, …), – Optimizer configuration, – Enable two chained optimizers. ● Visualization: – Optimal point, – Paretos, – Robustness. Optimization Module (1/2)
  • 38. The free and open source software for numerical computation Optimization Module (2/2)
  • 39. The free and open source software for numerical computationThe free software for numerical computation 1. What is missing ? 2. Bibliography Part 4 - Conclusion
  • 40. The free and open source software for numerical computation ● High Performance Optimization: – Use BLAS/LAPACK within optim ? ● Sparse Linear Programming: – Update LIPSOL ? ● Non Linear Programming: – Improve fmincon ? ● Non Linear Programming Test Cases: – CUTEr requires a compiler on the test machine, – Connect the Hock-Schittkowski collection ? Conclusion 1. What is missing ?
  • 41. The free and open source software for numerical computation ● « Nelder-Mead User's Manual », Michaël Baudin, Consortium Scilab – DIGITEO, 2010 ● « Optimization in Scilab », Baudin, Couvert, Steer, Consortium Scilab - DIGITEO – INRIA, 2010 ● « Optimization with scilab, present and future », Michaël Baudin and Serge Steer, 2009 IEEE International Workshop on Open Source Software for Scientific Computation, pp.99-106, 18-20 Sept. 2009 ● « Introduction to Optimization with Scilab », Michaël Baudin, Consortium Scilab – DIGITEO, 2010 ● « Unconstrained Optimality Conditions with Scilab », Michaël Baudin, Consortium Scilab – DIGITEO, 2010 Conclusion 2. Bibliography
  • 42. The free and open source software for numerical computation Thanks for your attention www.scilab.org
  • 43. The free and open source software for numerical computation Some slides you won't see, unless you ask... Extra-Slides
  • 44. The free and open source software for numerical computation Some Historical References: ● Spendley, Hext, Himsworth (1962): fixed shape simplex algorithm ● Nelder, Mead (1965): variable shape algorithm ● Box (1965): simplex algo., with constraints ● O'Neill (1971): Fortran 77 implementation. ● Torczon (1989): Multi Directional Search. ● Mc Kinnon (1998): Counter examples of N-M. ● Lagarias, Reeds, Wright, Wright (1998): Proof of convergence in dimensions 1 and 2 for strictly convex functions. ● Han, Neumann (2006): More counter examples of N-M. The Nelder-Mead Algorithm
  • 45. The free and open source software for numerical computation In what softwares N-M can be found ? ● Matlab (fminsearch) ● NAG (E04CBF) ● Numerical Recipes (amoeba) ● IMSL (UMPOL) ● … and Scilab since v5.2.0 in 2009 ● … and R after Sébastien Bihorel's port of Scilab's source code. The Nelder-Mead Algorithm
  • 46. The free and open source software for numerical computation 1. Sort by function value. Order the vertices: f(1) ≤ · · · ≤ f(n) ≤ f(n+1) 2. Calculate centroid. B = (v(1)+...+v(n))/n 3. Reflection. Compute R = (1+ρ)B − ρv(n+1) and evaluate f(R). 4. Expansion. If f(R)<f(1), compute E=(1+ρχ)B − ρχv(n+1) and evaluate f(E). If f(E)<f(R), accept E, else accept R and goto 1. 5. Accept R. If f(1) ≤ f(R) < f(n), accept R and goto 1. 6. Outside Contraction. If f(n)≤f(R)<f(n+1), compute Co=(1+ργ)B − ργv(n+1) and evaluate f(Co). If f(Co)<f(R), then accept Co and goto 1 else, goto 8. 7. Inside Contraction. If f(n+1)≤f(R), compute Ci=(1-γ)B +γv(n+1) and evaluate f(Ci). If f(Ci)<f(n+1), then accept Ci and goto 1 else, goto 8. 8. Shrink. Compute the points v(i)=v(1)+σ(v(i)-v(1)) and evaluate f(i)=f(x(i)), for i=2,3,...,n+1. Goto 1. The Nelder-Mead Algorithm
  • 47. The free and open source software for numerical computation ● Lagarias, Reeds, Wright, Wright (1998) 1. In dimension 1, the Nelder-Mead method converges to a minimizer, and convergence is eventually M-step linear, when the reflection parameter ρ = 1. 2. In dimension 2, the function values at all simplex vertices in the standard Nelder-Mead algorithm converge to the same value. 3. In dimension 2, the simplices in the standard Nelder-Mead algorithm have diameters converging to zero. ● Note that Result 3 does not implies that the simplices converge to a single point x*. The Nelder-Mead Algorithm
  • 48. The free and open source software for numerical computation ● Minimization: – bintprog Solve binary integer programming problems – fgoalattain Solve multiobjective goal attainment problems – fminbnd Find minimum of single-variable function on fixed interval – fmincon Find minimum of constrained nonlinear multivariable function – fminimax Solve minimax constraint problem – fminsearch Find minimum of unconstrained multivariable function using derivative-free method What's in Matlab® ?
  • 49. The free and open source software for numerical computation – fminunc Find minimum of unconstrained multivariable function – fseminf Find minimum of semi-infinitely constrained multivariable nonlinear function – ktrlink Find minimum of constrained or unconstrained nonlinear multivariable function using KNITRO third-party libraries – linprog Solve linear programming problems – quadprog Quadratic programming What's in Matlab® ?
  • 50. The free and open source software for numerical computation ● Equation Solving: – fsolve Solve system of nonlinear equations – fzero Find root of continuous function of one variable ● Least Squares (Curve Fitting): – lsqcurvefit Solve nonlinear curve-fitting (data-fitting) problems in least-squares sense – lsqlin Solve constrained linear least-squares problems – lsqnonlin Solve nonlinear least-squares problems – lsqnonneg Solve nonnegative least-squares constraint problem What's in Matlab® ?
  • 51. The free and open source software for numerical computation ● Utilities: – optimtool GUI to select solver, optimization options, and run problems – optimget Optimization options values – optimset Create or edit optimization options structure What's in Matlab® ?
  • 52. The free and open source software for numerical computation ● Global Optimization Toolbox: – GlobalSearch Create and solve GlobalSearch problems – MultiStart Create and solve MultiStart problems – Genetic Algorithm Use genetic algorithm and Optimization Tool, and modify genetic algorithm options – Direct Search Use direct search and Optimization Tool, and modify pattern search options – Simulated Annealing Use simulated annealing and Optimization Tool, and modify simulated annealing options What's in Matlab® toolboxes ?