Expand Lindo Code with index variables and swap variables to be LHS values.