1: #include <../src/tao/bound/impls/bqnk/bqnk.h>
3: /*MC
4: TAOBQNKLS - Bounded Quasi-Newton-Krylov Line Search method for nonlinear minimization with
5: bound constraints. This method approximates the Hessian-vector product using a
6: limited-memory quasi-Newton formula, and iteratively inverts the Hessian with a
7: Krylov solver. The quasi-Newton matrix and its settings can be accessed via the
8: prefix `-tao_bqnk_`. For options database, see `TAOBNK`
10: Level: beginner
12: Notes:
13: The base class for this method is `TAOBNK`
15: The various algorithmic factors can only be supplied via the options database
17: .seealso: `Tao`, `TaoType`, `TAOBNK`, `TAOBQNKTR`, `TAOBQNKTL`, `TaoCreate()`
18: M*/
19: PETSC_EXTERN PetscErrorCode TaoCreate_BQNKLS(Tao tao)
20: {
21: TAO_BNK *bnk;
22: TAO_BQNK *bqnk;
24: PetscFunctionBegin;
25: PetscCall(TaoCreate_BQNK(tao));
26: bnk = (TAO_BNK *)tao->data;
27: bnk->update_type = BNK_UPDATE_STEP;
28: bqnk = (TAO_BQNK *)bnk->ctx;
29: bqnk->solve = TaoSolve_BNLS;
30: PetscFunctionReturn(PETSC_SUCCESS);
31: }