Difference between revisions of "Non-linear programming"
Jump to navigation
Jump to search
Kevin Dunn (talk | contribs) m (Kevin Dunn moved page Non-linear programming (2015) to Non-linear programming) |
Kevin Dunn (talk | contribs) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{ClassSidebarYouTube | ||
| date = 04 February 2015 | | date = 04 February 2015 | ||
| dates_alt_text = | | dates_alt_text = | ||
| vimeoID1 = | | vimeoID1 = w91QogkPMxY | ||
| vimeoID2 = | | vimeoID2 = lKLCPwPFx4k | ||
| vimeoID3 = | | vimeoID3 = DXXc77TADGU | ||
| vimeoID4 = | | vimeoID4 = PqgV9uohNYE | ||
| vimeoID5 = | | vimeoID5 = 4RK36TnNptE | ||
| vimeoID6 = | | vimeoID6 = KPjQ5ubm36o | ||
| vimeoID7 = | | vimeoID7 = 03l748-yjg8 | ||
| vimeoID8 = | | vimeoID8 = 8h3PxFKxPKQ | ||
| vimeoID9 = | | vimeoID9 = gbVtbU4WSXM | ||
| vimeoID10 = | | vimeoID10 = Hy3D8qQFVUs | ||
| vimeoID11 = | | vimeoID11 = | ||
| course_notes_PDF = | | course_notes_PDF = |
Revision as of 17:36, 3 January 2017
Class date(s): | 04 February 2015 | ||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
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 |
|
Video | ||
09 February | 06A |
|
Video | ||
11 February | 06B |
|
Video | ||
16 to 27 February | 07 |
Reading week break and midterm | |||
02 March | 08A |
|
Video | ||
04 March | 08B |
|
Video |
Code used in class (see below) | |
09 March | 09A |
|
Video | ||
11 March | 09B |
Guest lecture |
Video | ||
16 March | 10A |
|
Handout from class (continued with handout 09A) |
Video | |
18 March | 10B |
|
Video | ||
23 March | 11A |
|
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];