# Error in constraint statement

**URL:** <https://discourse.julialang.org/t/error-in-constraint-statement/45088>\
**Category:** Optimization (Mathematical)\
**Created:** [August 17, 2020, 8:55am UTC](https://discourse.julialang.org/t/error-in-constraint-statement/45088 "2020-08-17T08:55:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mamo/32/25591_2.png) [@mamo](https://discourse.julialang.org/u/mamo)\
**Post date:** [August 17, 2020, 8:55am UTC](https://discourse.julialang.org/t/error-in-constraint-statement/45088/1 "2020-08-17T08:55:39Z")

</div>

I can not identify the reason for “LoadError: syntax: missing comma or ) in argument list  
in expression starting at” in the first line of this constraint:  
@constraint(problem1, raball[r in RAW, k in 1:interval:length(TIME), k\>=1+interval],  
INV[r,k]==INV[r,k-interval]-sum(PROD[o,f,p,j,t]\*demraw[p,r] for o in O, f in F, p in PRO[f], j in U, t in k-interval:interval:k-1 if o\<=23 && f\<=13 && p\<=45)+inv[r,k])  
Thanks in advance!  
Best,  
marco

---

<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 17, 2020, 9:53am UTC](https://discourse.julialang.org/t/error-in-constraint-statement/45088/2 "2020-08-17T09:53:40Z")

</div>

Please take the time to read the first post of [Please read: make it easier to help you - #81](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757/81). You should format your code properly, and provide a minimal working example.

---

<div class="post-metadata">

**Author:** ![mamo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mamo/32/25591_2.png) [@mamo](https://discourse.julialang.org/u/mamo)\
**Post date:** [August 17, 2020, 10:20am UTC](https://discourse.julialang.org/t/error-in-constraint-statement/45088/3 "2020-08-17T10:20:24Z")

</div>

Thanks odow. One bracket was missing in the lines above.
