예제 #1
0
def solve(f, Df, x):
    lmData = limitedMemory.LmData(x.shape[0], parameters.memory)
    return regularization.genericMonotone(lmData, updateLmData, calculateStep,
                                          f, Df, x)
예제 #2
0
def solve(f, Df, x):
    """Monotone L-BFGS algorithm with Armijo line search."""
    lmData = limitedMemory.LmData(x.shape[0], parameters.memory)
    return linesearch.genericMonotone(lmData, updateLmData, inverseBFGS, armijo, f, Df, x)
예제 #3
0
def solveNonmonotone(f, Df, x):
    """Nonmonotone L-BFGS algorithm with Wolfe line search."""
    lmData = limitedMemory.LmData(x.shape[0], parameters.memory)
    return linesearch.genericNonmonotone(lmData, updateLmData, inverseBFGS, wolfe, f, Df, x)