You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across your excellent repository, and what I am looking for is a parser from Java String to math expression, like the one shown in the photo. This is a part of my thesis, which is an optimization problem for solving the value of all variables in the expression. After looking into your documentation and some examples, I could not find a solution.
In the photo, as you see, I have an Array variable x. The first expression "x0/(x0+x1+x4)" needs to be transformed into x[0]/(x[0]+x[1]+x[4]). The other String should be transformed in the same way, and I can guarantee they are all valid math expressions without any missing brackets, etc. The returned expression is a variable synthesis (type Double), which will be used as input for an optimizer, which calculates the value of x[0] to x[4].
I know you must be very busy so I appreciate any hints you can give! Thank you!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear Mr. Uklimaschewski,
I came across your excellent repository, and what I am looking for is a parser from Java String to math expression, like the one shown in the photo. This is a part of my thesis, which is an optimization problem for solving the value of all variables in the expression. After looking into your documentation and some examples, I could not find a solution.
In the photo, as you see, I have an Array variable x. The first expression "x0/(x0+x1+x4)" needs to be transformed into x[0]/(x[0]+x[1]+x[4]). The other String should be transformed in the same way, and I can guarantee they are all valid math expressions without any missing brackets, etc. The returned expression is a variable synthesis (type Double), which will be used as input for an optimizer, which calculates the value of x[0] to x[4].
I know you must be very busy so I appreciate any hints you can give! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions