# 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:** 3

<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:** [April 25, 2022, 6:14am UTC](https://discourse.julialang.org/t/defining-constraint-using-jump-convert-string-to-expression-and-merge-quart-expr-and-nonlinear-expr/79967/3 "2022-04-25T06:14:29Z")

</div>

Hi there @Deena_20,

I’ve moved your question to the “Optimization (Mathematical)” section. If you have JuMP questions in future, that’s the place to put them 🙂

Since this is your first post, you should also take a read of: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757). It explains how you can format your code to make it easier to read.

What is the contents of `Book2.csv`? `df2[h,i,j,k,p]` is a vector, but it looks like it only has one element, so perhaps you meant `eval(Meta.parse(df[1,2]))`?

In general though, what are you trying to achieve? Storing nonlinear expressions as text and then trying to parse them into JuMP is quite tricky, and there are a number of things that could go wrong. There might be a different approach you could take that doesn’t involve using `eval`.

---

_[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)._
