:orphan:
# TAOGPCG
gradient projected conjugate gradient algorithm is an active-set conjugate-gradient based method for bound-constrained minimization
## Options Database Keys
- ***-tao_gpcg_maxpgits -*** maximum number of gradient projections for GPCG iterate
- ***-tao_subset_type -*** "subvec","mask","matrix-free", strategies for handling active-sets
## Level
beginner
## Location
src/tao/quadratic/impls/gpcg/gpcg.c
## Examples
src/tao/bound/tutorials/jbearing2.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/quadratic/impls/gpcg/gpcg.c)
[Index of all Tao routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)