| Line 5: |
Line 5: |
| | *Reflecting different domains like Engineering, Statistics, Medicine, etc. | | *Reflecting different domains like Engineering, Statistics, Medicine, etc. |
| | *Testing how we can make better solutions to the standard problems compared to other software.<br><br> | | *Testing how we can make better solutions to the standard problems compared to other software.<br><br> |
| | + | |
| | + | **The lp-format input syntax is a set of algebraic expressions and "free", "int", "bin", "sec", "sos" |
| | + | declarations in the following order: |
| | + | |
| | + | <objective function> |
| | + | <constraint>* |
| | + | <declaration>* |
| | + | |
| | + | where: |
| | + | *<objective function> is a linear combination of optional variables and constants, ending with a semicolon, optionally preceded by "max: " or "min: " |
| | + | to indicate whether you want it to be minimized or maximized. The case is not important, "Max:" or "MAX:" will work as well. Maximization is the default. |
| | + | Alternatives are minimise, minimize, maximise, Maximize. The objective function is required, but can be empty. |
| | + | |
| | + | *<constraint> is an optional constraint name followed by a colon plus a linear combination of variables and constants or (just one) constraint name followed |
| | + | by a colon (a range) or (just one) variable name without a colon (a bound), followed by a relational operator, followed again by a linear combination of |
| | + | variables and constants, ending with a semicolon. The relational operator can be any of the following: "<" "<=" "=" ">" ">=". There is no semantic difference |
| | + | between "<" and "<=" nor between ">" and ">=" (even for integer variables!). |
| | | | |
| | ==Examples== | | ==Examples== |