export bfgs fmin

This commit is contained in:
Val Erastov 2017-10-06 21:18:44 -07:00
parent b4bd21c4af
commit 38eb5ecee4

View file

@ -2,7 +2,7 @@ import numeric from 'numeric';
import {_vec, _matrix} from './math'
//Added strong wolfe condition to numeric's uncmin
var bfgs_ = function(f,x0,tol,gradient,maxit,callback,options) {
export function fmin_bfgs(f,x0,tol,gradient,maxit,callback,options) {
var grad = numeric.gradient;
if(typeof options === "undefined") { options = {}; }
if(typeof tol === "undefined") { tol = 1e-8; }