The MREGEN parameter controls the frequency with which LINGO regenerates a model. With MREGEN set to 0, LINGO regenerates a model only when a change has been made to the model’s text since the last generation took place. When MREGEN is 1, LINGO regenerates whenever a change is made to the model text or if it contains references to external data sources (e.g., text files, databases, or spreadsheets). If MREGEN is 2, then LINGO always regenerates the model each time information regarding the generated model is needed. Commands that will trigger a model generation are GO, GEN, STATS, SHOWNL, RMPS, FRMPS, SMPS, and PICTURE. LINGO defaults to a MREGEN value of 2.