LINGO CopilotLINGO Copilot is an extension of GitHub Copilot that can assist you with developing LINGO models from free form text descriptions of what you would like to do. This documentation describes how to get started, and gives examples. Use cases include generating a model from a detailed description in LaTeX, generating new model data, building on an existing model, asking about functions in LINGO, and changing the data source of a model. LINGO Copilot requires three software: LINGO, GitHub Copilot, and Microsoft Visual Studio. Getting LINGOThe Copilot extension does not require that LINGO is installed. However, having the latest version of LINGO 21 installed on your computer is highly recommended. Getting access to GitHub CopilotSign up for GitHub Copilot Free, or request access from your enterprise admin. To access GitHub Copilot, an active GitHub Copilot subscription is required. See: github.com/featuhttps://github.com/lindosystems/LINGO-Copilot/blob/main/res/copilot. Using LINGO CopilotStart Visual Studio, and then in Copilot chat view, open a LINGO .LNG file. To interact with LINGO Copilot in the chat view enter Generating ModelsIf you do not yet have a LINGO model to work on, LINGO Copilot can assist you with generating one. For the best quality model generation, have a detailed model statement, sets, attributes, objective, and constraints included in the initial prompt. ExampleStatement: The objective of this model is to minimize the production cost, such that the amount of each product produced is within the upper and lower limits of the factory producing it. Also, the demand for each product is met each month. Sets:
Model: $$ \min \sum\limits_{f \in F, m \in M} a_f z_{m,f} + c_f x_{m,f} $$ $$ x_{m,f} \le u_f z_{m,f} \quad \forall f \in F, m \in M $$ $$ x_{m,f} \ge l_f z_{m,f} \quad \forall f \in F, m \in M $$ $$ \sum\limits_{f\in F} x_{m,f} = d_m \quad \forall f \in F, m \in M $$ $$ z_{m,f} \in {0, 1} \quad \forall f \in F, m \in M. $$ Copy the generated model over to the blank .LNG file opened in Visual Studio code. Use the Run LINGO button to test your generated LINGO model. Generating Model dataLINGO Copilot can assist you with generating data to help test your models. In the generated factory model, we may want to add more factories which requires new upper and lower limits, unit costs, and fixed costs. Adding ConstraintsLINGO Copilot can assist you with adding constraints to an existing model. In the example factory model, we may want to make the variable $x_{m,f}$ an integer. Displaying Solution DataAsk LINGO copilot to assist with building a solution report. After solving the factory model, we may want a breakdown of production for each month at each factory. Documentation QuestionsLINGO Copilot can assist with learning about developing LINGO models. For example, you may not be sure what Documenting ModelsAsk LINGO copilot to add comments to your model. This may help you understand the LINGO modeling language better, and help others understand your model. Importing dataData for your LINGO model may come from external sources such as Excel, a text file, or a different programming language. You can ask copilot to assist you with converting your model to read and write data to these external sources. LINGO uses LINGO uses LINGO Copilot can even generate a file for you to test out: LINGO uses |