-
Notifications
You must be signed in to change notification settings - Fork 1
Parse a Linear Problem
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,
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.
Now you have a linear problem ready for farther processing, see how you can solve a linear problem here.