# Defining constraint using JuMP convert String to Expression and Merge Quart Expr and nonlinear Expr

**URL:** <https://discourse.julialang.org/t/defining-constraint-using-jump-convert-string-to-expression-and-merge-quart-expr-and-nonlinear-expr/79967>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, dataframes\
**Created:** [April 25, 2022, 4:31am UTC](https://discourse.julialang.org/t/defining-constraint-using-jump-convert-string-to-expression-and-merge-quart-expr-and-nonlinear-expr/79967 "2022-04-25T04:31:03Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [May 2, 2022, 4:40am UTC](https://discourse.julialang.org/t/defining-constraint-using-jump-convert-string-to-expression-and-merge-quart-expr-and-nonlinear-expr/79967/12 "2022-05-02T04:40:22Z")

</div>

Please take the time to read [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757). It’s easier to help if you format your code and include a minimal working example.

Your issue is likely that you have

```julia
sum(df[1,:Hold1]*x[h,i,j,k,l]) for h in 1:1

```

instead of

```nohighlight
sum(df[1,:Hold1]*x[h,i,j,k,l] for h in 1:1

```

Note the second parenthesis `)`.

---

_[View the full topic](https://discourse.julialang.org/t/defining-constraint-using-jump-convert-string-to-expression-and-merge-quart-expr-and-nonlinear-expr/79967)._
