Optimization: principles and algorithms, by Michel Bierlaire
|
Algorithm 17.1: projected gradient Implementation of algorithm 17.1 of [1]. More...
Go to the source code of this file.
Functions | |
function | projectedGradient (in obj, in A, in b, in x0, in eps, in gamma) |
Applies the projected gradient method to solve ![]() ![]() | |
Algorithm 17.1: projected gradient Implementation of algorithm 17.1 of [1].
Definition in file projectedGradient.m.
function projectedGradient | ( | in | obj, |
in | A, | ||
in | b, | ||
in | x0, | ||
in | eps, | ||
in | gamma | ||
) |
Applies the projected gradient method to solve subject to
.
obj | the name of the Octave function defining ![]() ![]() |
A | matrix of the constraint |
b | right-hand side of the constraint |
x0 | starting point |
eps | algorithm stops if ![]() |
gamma | parameter > 0 (default: 1) |
maxiter | maximum number of iterations (default: 100) |