The EXTEND command allows you to append lines to the current model. It puts LINGO in model input mode just after the last line of the current model. When you use the EXTEND command, you’ll see LINGO’s question mark prompt. Start entering your new lines of model text. When you’re done, enter END at the prompt.

In the following sample session, we use the EXTEND command to append an additional constraint to a small model:

: LOOK ALL

 

  1]MAX 20*X + 30*Y;

  2]X <= 50;

  3]Y <= 60;

  4]X + 2*Y <=120;

 

: ! Use EXTEND to add another line

: EXTEND

? X >= 30;

? END

: LOOK ALL

 

  1]MAX 20*X + 30*Y;

  2]X <= 50;

  3]Y <= 60;

  4]X + 2*Y <=120;

  5]X >= 30;

 

: