Skip to content

Parse a Linear Problem

Akis Papadopoulos edited this page Dec 8, 2016 · 6 revisions

In order to parse a linear problem you have first create a linear problem script opening a new editor. so please select from the menu bar File > New or press the shortcut ctrl-n. Now a new blank editor shows up, try to type a linear problem in textual form following the syntax rules,

img-3.png

then in order to parse the linear problem script select from the menu bar Build > Parse or press ctrl-p. If parsing completed without syntax errors you will see in the output area ant in the problem tab the parameters of linear problem indicating that the linear problem is stored into the clipboard for farther processing by the application. The minmax value indicates -1 for min and 1 for max, the c[n] array contains the cost factors of the objective function, the A[m][n] array contains the factors in the left part of the inequalities (constraints), the b[m] array contains the constants in right part of the inequalities and finally the eqin[m] array contains the type of inequalities -1 for <= and 1 for >=. You can find plenty of example in the data folder into the repository.

img-4.png

Now you have a linear problem ready for farther processing, see how you can solve a linear problem here.

Clone this wiki locally