mirror of
https://github.com/xibyte/jsketcher
synced 2026-01-25 17:44:03 +01:00
export bfgs fmin
This commit is contained in:
parent
b4bd21c4af
commit
38eb5ecee4
1 changed files with 1 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue