I have several sets of differential equations, and to reduce the time of implementation I try to implement each set of equations by for loop as below (just for example):
@variable (x(t))[1:n] (y(t))[1:n]
eq1 = [0 ~ D(x[i]) + x[i] - y[i] for i in 1:n]
eq2 = [0 ~ D(y[i]) + sin(x[i]) + x[i] - cos(y[i]) for i in 1:n]
To create an ODE system it is needed to add all sets of equations as one.
Please help me with how could I accumulate eq1 and eq2 into one set.
Thank you.