Hooman Toosi
 Total activity 20
 Last activity
 Member since
 Following 0 users
 Followed by 0 users
 Votes 4
 Subscriptions 3
Activity overview
Latest activity by Hooman Toosi
Hooman Toosi commented,
Thank you Eli for your response. It was very helpful. P.S: For others that might see this post later, it is important to note the difference between X and x in the above codes.

Hooman Toosi created a post,
Tupledict to array
OngoingHello,What is a quick way to convert the variable values of optimization (tupledict) to a regular array?Thank you

Hooman Toosi commented,
Hello Sonja,Thanks for your helpful answer. 1. Does a regular for loop in Gurobi act exactly in the same way as when we incorporate it into a constraint? For example, are the below cases exactly th...

Hooman Toosi created a post,
aTan(bx)
AnsweredHello,I have a nonlinear constraint that can be written as below, where a and b are constants.y1[i] = a * tan(b * x[i]) for i in range (m)I am aware that there is a " addGenConstrTan" method with ...

Hooman Toosi commented,
Hello Eli, Here is the content of my .ilp file. Obviously, SC[11] is a decimal value and it cannot satisfy R423. It is also not possible to relax SE[11]. At most I can change the value of SE[11] wh...

Hooman Toosi commented,
Dear Eli,I found the problem using the method you suggested. The problem is that SE and consequently SC take float values. While on the righthand side of constraint5, it only takes integer values....

Hooman Toosi commented,
Thank you Eli, it was modified. Now, constraints 5,6,7 cause the infeasibility.

Hooman Toosi commented,
Dear Eli,Your comment was very helpful. I changed my code and modified the typos of the below code. The error was resolved. However, now constraints 47 have made the problem infeasible. Even if I ...

Hooman Toosi commented,
Dear Eli,Thank you very much for your reply. As you mentioned, since the relationship between SC and K in my code is nonlinear and cannot be included as a constraint, I think I have to take one of ...

Hooman Toosi commented,
Thanks again and your explanation was very helpful. However, when I implement the way you mentioned, I get an error saying : TypeError: unhashable type: 'tupledict' That's probably because i is a...