Optimization Techniques for System Design

Optimization Techniques for System Design
Slide Note
Embed
Share

Introduction to optimization in system design, focusing on maximizing or minimizing objective functions. Explore types of optimization - unconstrained and constrained, with practical examples. Learn about computational methods for solving optimization problems and discover the implementation of optimization in Matlab. Dive into unconstrained optimization using the Method of Steepest Descent.

  • Optimization
  • System Design
  • Unconstrained Optimization
  • Constrained Optimization
  • Computational Methods

Uploaded on Mar 12, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. EEE 244-8: Optimization techniques for System Design

  2. Introduction to optimization Objective of optimization is to maximize or minimize some function, called the object function f General examples of optimization are: o Maximize profit for a company (object function: profit) o Minimize production costs of a company (object function: production costs) Engineering examples of optimization are: o Maximize gain of an amplifier (object function: gain) o Minimize resistive loss in power line from generator to load (object function: resistive loss)

  3. Types of optimization Optimization is mainly of two types: o Unconstrained optimization o Constrained optimization Example of unconstrained optimization: o Minimize or maximize y = 2x2 3x => dy/dx = 4x 3 = 0 => x = 3/4 gives position of minimum or maximum Example of constrained optimization: o Minimize or maximize y = 2x2 3x in the range of x = 3,5 o Solution x = 3/4 will not satisfy this constraint

  4. Practical optimization The object function f may be dependent of many control variables x1, x2, x3 .xn Constrained optimization is generally more complex than unconstrained optimization Computational methods are very useful in solving constrained optimization problems

  5. Matlab solution by plotting function Solve the constrained optimization below : Minimize or maximize y = 2x2 3x in the range of x = 3,5; % Matlab program to plot function clear x=3:.01:5 y=2*x.^2-3*x; plot(x,y); verify maximum and minimum values from plot

  6. Unconstrained optimization Given an object function f that is dependent on control variables x1, x2, x3 .xn; the minimum or maximum at point P is given by the condition: Practical implementation of this formula is called Method of Steepest Descent o Solution moves iteratively from point to point until optimum point is reached

  7. Matlab/Python commands for unconstrained optimization Given an object function f(x), and starting value x0, the point at which the function reaches a minimum is given by the following commands: Matlab Python clear f=@(x) f(x) [xmin fmin]=fminunc(f,x0) import numpy as np fromscipyimport optimize def f(x): return f(x) [x1,x2,] = optimize.fmin(f, x0) x can be vector of variables x = [x1 x2 .xn] 7

  8. Matlab/Python commands for unconstrained maximization Given an object function f(x), and starting value x0, the point at which the function reaches a maximum is given by the following commands: Matlab Python clear f1=@(x) -f(x) [xmax fmax] = fminunc(f1,x0) fmax=-fmax import numpy as np fromscipyimportoptimize def f1(x): return -f(x) xmax = optimize.fmin(f1, x0) fmax=-fmax 8

  9. Unconstrained optimization with 2 variables Minimize the function f(x,y) = 2x +3y + x2 + y2 -9, given the initial condition x0 = 2, y0 = 3 clear f = @ (x) 2*x(1) + 3*x(2) + x(1)^2 + x(2)^2 -9; x0 = [2 3]; [xmin fmin] = fminunc(f,x0) 9

  10. Conditions for constrained optimization Given an object function f that is dependent on control variables x1, x2, x3 .xn; find the minimum or maximum at point P In addition, we have the inequality constraints or, A*X <= B 10

  11. Matlab/Python commands for constrained optimization Given an object function f(x), and starting value x0, the point at which the function reaches a minimum, with the inequality constraints are A*x <=B, is given by the following commands (Note: for Python use A*x >=B): Matlab clear f=@(x) f(x) xmin = fmincon(f,x0,A,B) Python import numpy as np fromscipyimportoptimize def f(x): return f(x) cons = ({'type': 'ineq', 'fun' : lambda x: np.array()}, xmin = optimize.minimize(f, x0,constraints =cons) 11

  12. Matlab example for constrained optimization Minimize the function f(x,y) = 2x +3y + x2 + y2 -9, given the initial condition x0 = 2, y0 = 3, and the constraints: x +y <= 3; 2x 3y <= -5 clear f = @ (x) 2*x(1) + 3*x(2) + x(1)^2 + x(2)^2 -9; A=[1 1; 2 -3]; B=[3;-5]; x0 = [2 3]; [xmin fmin] = fmincon(f,x0,A,B) 12

Related


More Related Content