# TSAdaptDSPSetPID
Set the PID controller parameters 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSAdaptDSPSetPID(TSAdapt adapt, PetscReal kkI, PetscReal kkP, PetscReal kkD)
```

## Input Parameters

- ***adapt -*** adaptive controller context
- ***kkI -*** Integral parameter
- ***kkP -*** Proportional parameter
- ***kkD -*** Derivative parameter



## Options Database Key

- ***-ts_adapt_dsp_pid <kkI,kkP,kkD> -*** Sets PID controller parameters





## References

- **** -*** http://dx.doi.org/10.1016/j.cam.2005.03.008



## See Also
 [](chapter_ts), `TS`, `TSAdapt`, `TSGetAdapt()`, `TSAdaptDSPSetFilter()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/adapt/impls/dsp/adaptdsp.c.html#TSAdaptDSPSetPID">src/ts/adapt/impls/dsp/adaptdsp.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/adapt/impls/dsp/adaptdsp.c.html#TSAdaptDSPSetPID_DSP">TSAdaptDSPSetPID_DSP in src/ts/adapt/impls/dsp/adaptdsp.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/adapt/impls/dsp/adaptdsp.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
