Difference between revisions of "Non-linear programming"

From Optimization for Chemical Engineering: 4G3
Jump to navigation Jump to search
Line 19: Line 19:
| assignment_instructions =  
| assignment_instructions =  
| assignment_solutions =  
| assignment_solutions =  
| video_download_link_MP4 = https://www.dropbox.com/s/psk1vl672cyrv8g/2015-4G3-Class-05A.mp4?dl=1
| video_download_link_MP4 = https://drive.google.com/file/d/0B9qiArsxgE8YU3FrNVBtMFdaWEk
| video_download_link_MP4_size = 433 M
| video_download_link_MP4_size = 433 M
| video_notes1 =
| video_notes1 =
| video_download_link2_MP4 = https://www.dropbox.com/s/9r9g72vdz411yrb/2015-4G3-Class-06A.mp4?dl=1
| video_download_link2_MP4 = https://drive.google.com/open?id=0B9qiArsxgE8YV096aTdBSjVtYVk&authuser=0
| video_download_link2_MP4_size = 797 M
| video_download_link2_MP4_size = 797 M
| video_notes2 =
| video_notes2 =
| video_download_link3_MP4 = https://www.dropbox.com/s/gwfgdhrxs370hqh/2015-4G3-Class-06B.mp4?dl=1
| video_download_link3_MP4 = https://drive.google.com/open?id=0B9qiArsxgE8YODBHOTNvZ1BwSVk&authuser=0
| video_download_link3_MP4_size = 820 M
| video_download_link3_MP4_size = 820 M
| video_notes3 =
| video_notes3 =
| video_download_link4_MP4 = https://www.dropbox.com/s/m2v00dfowuzrbo8/2015-4G3-Class-08A.mp4?dl=1
| video_download_link4_MP4 = https://drive.google.com/open?id=0B9qiArsxgE8YSTBxdmowVTRoRW8&authuser=0
| video_download_link4_MP4_size = 640 M
| video_download_link4_MP4_size = 640 M
| video_notes4 =
| video_notes4 =
| video_download_link5_MP4 = https://www.dropbox.com/s/ieteak2gpshre4t/2015-4G3-Class-08B.mp4?dl=1
| video_download_link5_MP4 = https://drive.google.com/open?id=0B9qiArsxgE8YSDBfWG5FeElDWGs&authuser=0
| video_download_link5_MP4_size = 923 M
| video_download_link5_MP4_size = 923 M
| video_notes5 =
| video_notes5 =
| video_download_link6_MP4 = https://www.dropbox.com/s/jo8wv7bb4rr0yt3/2015-4G3-Class-09A.mp4?dl=1
| video_download_link6_MP4 = https://drive.google.com/open?id=0B9qiArsxgE8YRV9YX3hyM0luOW8&authuser=0
| video_download_link6_MP4_size = 943 M
| video_download_link6_MP4_size = 943 M
| video_notes6 =
| video_notes6 =
Line 75: Line 75:
| align="left" colspan="1"|
| align="left" colspan="1"|
[https://docs.google.com/document/d/1NozRUYfdIw2RLnU0DExOzF-RH-mx5VbjgQU35zxKLCU  Handout from class]
[https://docs.google.com/document/d/1NozRUYfdIw2RLnU0DExOzF-RH-mx5VbjgQU35zxKLCU  Handout from class]
| [https://www.dropbox.com/s/psk1vl672cyrv8g/2015-4G3-Class-05A.mp4?dl=1 Video]  
| [https://drive.google.com/file/d/0B9qiArsxgE8YU3FrNVBtMFdaWEk Video]  
|align="left" colspan="1"|
|align="left" colspan="1"|
|-
|-
Line 86: Line 86:
| align="left" colspan="1"|
| align="left" colspan="1"|
[https://docs.google.com/document/d/10oe_laMhtPl5roJGa3C44YlsSvdbHvUAjt6uRMf9q4k  Handout from class]
[https://docs.google.com/document/d/10oe_laMhtPl5roJGa3C44YlsSvdbHvUAjt6uRMf9q4k  Handout from class]
| [https://www.dropbox.com/s/9r9g72vdz411yrb/2015-4G3-Class-06A.mp4?dl=1 Video]  
| [https://drive.google.com/open?id=0B9qiArsxgE8YV096aTdBSjVtYVk&authuser=0 Video]  
|align="left" colspan="1"|
|align="left" colspan="1"|
|-
|-
Line 97: Line 97:
| align="left" colspan="1"|
| align="left" colspan="1"|
[https://docs.google.com/document/d/1h9qLQbzeeqtQjf3l9Rmwx-5UKZF-ac2ZqMioupda8cs  Handout from class]
[https://docs.google.com/document/d/1h9qLQbzeeqtQjf3l9Rmwx-5UKZF-ac2ZqMioupda8cs  Handout from class]
| [https://www.dropbox.com/s/gwfgdhrxs370hqh/2015-4G3-Class-06B.mp4?dl=1 Video]  
| [https://drive.google.com/open?id=0B9qiArsxgE8YODBHOTNvZ1BwSVk&authuser=0 Video]  
|align="left" colspan="1"|
|align="left" colspan="1"|
|-
|-
Line 113: Line 113:
| align="left" colspan="1"|
| align="left" colspan="1"|
[https://docs.google.com/document/d/1vg7ffZUjSSmh1pL1EgeCGJtQnCSC652UWaBanfmqXr0 Handout from class]
[https://docs.google.com/document/d/1vg7ffZUjSSmh1pL1EgeCGJtQnCSC652UWaBanfmqXr0 Handout from class]
| [https://www.dropbox.com/s/m2v00dfowuzrbo8/2015-4G3-Class-08A.mp4?dl=1 Video]
| [https://drive.google.com/open?id=0B9qiArsxgE8YSTBxdmowVTRoRW8&authuser=0 Video]
|align="left" colspan="1"|
|align="left" colspan="1"|
|-
|-
Line 124: Line 124:
| align="left" colspan="1"|
| align="left" colspan="1"|
[https://docs.google.com/document/d/1tISkFj7nYa3RV7G8LF4S_nD7dMzb7_ATwY0z4gslDT0 Handout from class]
[https://docs.google.com/document/d/1tISkFj7nYa3RV7G8LF4S_nD7dMzb7_ATwY0z4gslDT0 Handout from class]
| [https://www.dropbox.com/s/ieteak2gpshre4t/2015-4G3-Class-08B.mp4?dl=1 Video]
| [https://drive.google.com/open?id=0B9qiArsxgE8YSDBfWG5FeElDWGs&authuser=0 Video]
|align="left" colspan="1"|
|align="left" colspan="1"|
Code used in class (see below)
Code used in class (see below)
Line 135: Line 135:
| align="left" colspan="1"|
| align="left" colspan="1"|
[https://docs.google.com/document/d/1tHekhHdPWEPhPm_lGVP5cws_2-NsTw_6JpVhhLSlgmo Handout from class]  
[https://docs.google.com/document/d/1tHekhHdPWEPhPm_lGVP5cws_2-NsTw_6JpVhhLSlgmo Handout from class]  
|[https://www.dropbox.com/s/jo8wv7bb4rr0yt3/2015-4G3-Class-09A.mp4?dl=1 Video]  
|[https://drive.google.com/open?id=0B9qiArsxgE8YRV9YX3hyM0luOW8&authuser=0 Video]  
|align="left" colspan="1"|
|align="left" colspan="1"|
|-
|-

Revision as of 14:27, 13 April 2015

Class date(s): 04 February 2015
Download video: Link [433 M]

Download video: Link [797 M]

Download video: Link [820 M]

Download video: Link [640 M]

Download video: Link [923 M]

Download video: Link [943 M]

Download video: Link [667 M]

Download video: Link [948 M]

Download video: Link [935 M]

Resources

Scroll down, if necessary, to see the resources.

Date Class number Topic Slides/handouts for class Video file References and Notes
04 February 05A
  • Why consider unconstrained, single-variable problems
  • Newton's method review to solve these problems

Handout from class

Video
09 February 06A
  • Newton's method reviewed again for unconstrained, single-variable problems
  • Using finite differences instead in Newton's method
  • Multivariate unconstrained optimization

Handout from class

Video
11 February 06B
  • Unconstrained single-variable optimization using gradient search
  • Unconstrained multivariate optimization using gradient search
  • Understanding the line search problem

Handout from class

Video
16 to 27 February 07

Reading week break and midterm

02 March 08A
  • Unconstrained optimization in two variables review
  • Contrasting it back to the single variable case
  • Extending to the multidimensional Newton's method

Handout from class

Video
04 March 08B
  • Examples on the multidimensional Newton's method
  • Quasi Newton method in multiple dimensions
  • Positive and negative definiteness of the Hessian

Handout from class

Video

Code used in class (see below)

09 March 09A
  • Constrained nonlinear optimization introduction
  • Model formulation (convert a problem to mathematics)

Handout from class

Video
11 March 09B

Guest lecture

Handout from class

Video
16 March 10A
  • Convexity, concavity
  • Guarantees on when problems are globally optimal

Handout from class

Video
18 March 10B
  • Lagrange multiplier method for constrained optimization
  • Interpretation of the Lagrange multiplier constraints

Handout from class

Video
23 March 11A
  • The Nelder-Mead method (several of you are using it in your projects)
  • Practice with using the Nelder Mead method. Optimize this system: http://yint.org/nm

Handout from class

Video



Taking full Newton's steps to solve the class example

clear all;
close all;
clc;
[X1,X2] = meshgrid(-0.5:0.1:6, 0:0.01:9);
Z = func(X1,X2);
contour(X1, X2, Z)
hold on
grid on

x = [1,3]';
plot(x(1), x(2), 'o')
text(x(1)+0.2, x(2), '0')

for k = 1:10
   slope = -first_deriv(x)
   step = hessian(x)\slope;   % Solves the Ax=b problem, as x = A\b
   x = x + step;
   plot(x(1), x(2), '*')
   text(x(1)+0.1, x(2), num2str(k))
end

func.m

function y = func(x1,x2)
  y = 4.*x1.*x2 - 5.*(x1-2).^4 - 3.*(x2-5).^4;

first_deriv.m

function y = first_deriv(x)
  y = [4*x(2) - 20*(x(1)-2)^3; 
       4*x(1) - 12*(x(2)-5)^3];

hessian.m

function y = hessian(x)
  y = [-60*(x(1)-2)^2, 4; 
        4, -36*(x(2)-5)^2];