! Piece-wise function with the LOOKUP object ! create the csv file File m.csv input, y[1], y[2] 1, 2, 4 3, 4, 6 5, -5, -7 -1, 1, 0.5 End File ! define lookup object m Objects m = lookup End Objects ! connect m properties with model parameters Connections x = m.input y[1] = m.y[1] y[2] = m.y[2] End Connections ! simple model Model n Parameters x = 1 y[1] y[2] End Parameters Variables y End Variables Equations y = y[1]+y[2] End Equations End Model