# MatPartitioningPTScotchSetImbalance
Sets the value of the load imbalance ratio to be used during strategy selection. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatPartitioningPTScotchSetImbalance(MatPartitioning part, PetscReal imb)
```
Collective


## Input Parameters

- ***part -*** the partitioning context
- ***imb  -*** the load imbalance ratio



## Options Database Key

- ***-mat_partitioning_ptscotch_imbalance <imb> -*** set load imbalance ratio



## Note
Must be in the range [0,1]. The default value is 0.01.




## See Also
 `MATPARTITIONINGSCOTCH`, `MatPartitioningPTScotchSetStrategy()`, `MatPartitioningPTScotchGetImbalance()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/scotch/scotch.c.html#MatPartitioningPTScotchSetImbalance">src/mat/partition/impls/scotch/scotch.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/scotch/scotch.c.html#MatPartitioningPTScotchSetImbalance_PTScotch">MatPartitioningPTScotchSetImbalance_PTScotch in src/mat/partition/impls/scotch/scotch.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/partition/impls/scotch/scotch.c)


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