# 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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/quadratic/impls/gpcg/gpcg.c.html#TAOGPCG">src/tao/quadratic/impls/gpcg/gpcg.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/bound/tutorials/jbearing2.c.html">src/tao/bound/tutorials/jbearing2.c.html</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
