# For loop error

**URL:** <https://discourse.julialang.org/t/for-loop-error/26210>\
**Category:** Optimization (Mathematical)\
**Created:** [July 10, 2019, 6:58am UTC](https://discourse.julialang.org/t/for-loop-error/26210 "2019-07-10T06:58:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 10, 2019, 7:06am UTC](https://discourse.julialang.org/t/for-loop-error/26210/2 "2019-07-10T07:06:24Z")

</div>

It would be great if you could provide an [MWE](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757) - the error is telling you that for the type of variables you’re using, a subtraction operation is not defined, but without more context it’s hard to say where these types come from and why (if at all) you’d need them.

---

_[View the full topic](https://discourse.julialang.org/t/for-loop-error/26210)._
