# Check for Total Unimodularity of a Matrix

**URL:** <https://discourse.julialang.org/t/check-for-total-unimodularity-of-a-matrix/102908>\
**Category:** Optimization (Mathematical)\
**Created:** [August 17, 2023, 2:42pm UTC](https://discourse.julialang.org/t/check-for-total-unimodularity-of-a-matrix/102908 "2023-08-17T14:42:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TBuConst](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@TBuConst](https://discourse.julialang.org/u/TBuConst)\
**Post date:** [August 17, 2023, 2:42pm UTC](https://discourse.julialang.org/t/check-for-total-unimodularity-of-a-matrix/102908/1 "2023-08-17T14:42:59Z")

</div>

Hi everyone,

I’m wondering whether a specif function exists in Julia or in a package. Say, I have a matrix M and I want to find out, whether it is totally unimodular or not. Is there any ready-to-use function comparable to this R-function: [is\_totally\_unimodular: Test for total unimodularity of a matrix. in lintools: Manipulation of Linear Systems of (in)Equalities](https://rdrr.io/cran/lintools/man/is_totally_unimodular.html)

Thanks in advance.

Regards,

Thomas

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [August 18, 2023, 5:25am UTC](https://discourse.julialang.org/t/check-for-total-unimodularity-of-a-matrix/102908/2 "2023-08-18T05:25:16Z")

</div>

I haven’t seen anything for checking total unimodularity. You’d probably need to write something yourself. What’s the application?

---

<div class="post-metadata">

**Author:** ![TBuConst](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@TBuConst](https://discourse.julialang.org/u/TBuConst)\
**Post date:** [August 19, 2023, 5:55am UTC](https://discourse.julialang.org/t/check-for-total-unimodularity-of-a-matrix/102908/3 "2023-08-19T05:55:43Z")

</div>

Hi @odow,

thanks for the reply. There is no immediate direct application, I basically had educational purposes in mind.

Then I think I’ll go on and implement some algorithms myself.

Regards,

Thomas
