代码搜索:bfgs
找到约 171 项符合「bfgs」的源代码
代码结果 171
www.eeworm.com/read/363380/9952946
txt bfgs.txt
syms x1 x2;
f=50*(x2-x1^2)^2+(1-x1)^2;
v=[x1,x2];
df=jacobian(f,v);
df=df.';
epson=1e-12;x0=[0,0]';g1=subs(df,{x1,x2},{x0(1,1),x0(2,1)});k=0;H0=[1,0;0,1];mul_count=0;sum_count=0;
mul_count=mul_c
www.eeworm.com/read/161189/10440092
m bfgs.m
%
% xstar=bfgs(func,delf,x0,tol,maxiter)
%
% Use steepest descent to minimize a function f(x).
%
% func name of the function f(x)
% delf name of the gradient del f(x)
% x0
www.eeworm.com/read/417673/10980829
m bfgs.m
www.eeworm.com/read/467198/7020051
m bfgs.m
www.eeworm.com/read/455033/7378992
hpp bfgs.hpp
#ifndef BFGS_HH
#define BFGS_HH
#include "Optima.hpp"
#include "defs.hpp"
// BFGS Quasi-Newton Optimization Method
/* At the present version, you must use the CubicLineSearch
procedure */
// Ne
www.eeworm.com/read/145450/12723747
doc bfgs.doc
www.eeworm.com/read/143498/12870479
m bfgs.m
www.eeworm.com/read/315328/13545848
m bfgs.m
% Program: bfgs.m
% Title: Quasi_Newton BFGS algorithm
% Description: Implements the quasi-Newton algorithm
% with the Broyden-Fletcher-Goldfarb-Shanno (BFGS)
% updating formula described in Algor
www.eeworm.com/read/326178/6356444
txt bfgs.txt
function [x,y,value]=BFGSMethod(f,x0)
% 功能:BFGS方法
% 说明:待优化的函数f是关于二元变量(xi,yi)的符号表达式
% 时间:2007.4.13 23:15
% 测试用例:
%syms xi yi
%f=(xi-1)^2+100*(yi-xi^2)^2;
%x0=[-2,4];
% 测试结果:
%times=38
%va
www.eeworm.com/read/493505/6394580
cpp bfgs.cpp
#include
#include
#include
#define N 50
void CALF(int n,double x[N],double &f){
double u,v;
f=0.0;
for(int i=0;i