Dear Professor Loftberg,
I have a set of constraints that I have attached with this email in which x(it) and y(t) are decision variables and t|l means t divides l. I am trying to solve this problem with YALMIP. Since I cannot use the same for loops for the first component and the second component of the constraints, I need to save them separately somewhere and while doing so I am getting NaN values for them. It will be very kind of you to help me out with this problem.

Thank you very much in advance.
Ali