suppose i have system of linear equations having n variables,
equations are in the form of

X(i,i,1)=bX(i,i+1,k)+∑c X(i,j,k)
i[0,N] and in summation k[0,i]

i[0,N-1] ,j[0,i]

i have not mentioned all the equations over here but the system of equation
is all like that.
i want to optimize one variable and I can't expand the equations and solve so
can any one tell me how can i proceed with solving the equations.