# TaoSetStateDesignIS
Indicate to the Tao which variables in the solution vector are state variables and which are design.  Only applies to PDE-constrained optimization. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoSetStateDesignIS(Tao tao, IS s_is, IS d_is)
```
Logically Collective on Tao


## Input Parameters

- ***tao  -*** The Tao context
- ***s_is -*** the index set corresponding to the state variables
- ***d_is -*** the index set corresponding to the design variables





## See Also
 `Tao`, `TaoSetJacobianStateRoutine()`, `TaoSetJacobianDesignRoutine()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver_hj.c.html#TaoSetStateDesignIS">src/tao/interface/taosolver_hj.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/pde_constrained/tutorials/elliptic.c.html">src/tao/pde_constrained/tutorials/elliptic.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/pde_constrained/tutorials/hyperbolic.c.html">src/tao/pde_constrained/tutorials/hyperbolic.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/pde_constrained/tutorials/parabolic.c.html">src/tao/pde_constrained/tutorials/parabolic.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver_hj.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)  
