📄 newton.m
字号:
function [p, r, lambda, betak, term] = Newton(ffunc,cfunc,X,f,c,params)
%Call: [p r lambda betak term] = Newton('ffunc','cfunc',X);
%Compute p, the search direction from Newtons method
%MORE to come
%
G=hessian(ffunc,X,f,params)
%Compute a Lagrange vector estimate lambda
%
lambda=ones(length(c),1);
%This hessian computation only works for equality constrained problems.
%For ineq-prob. Aset and Abounds should be supplied
H=hessian(cfunc,X,lambda,params)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -