| Line 7: |
Line 7: |
| | | | |
| | *The lp-format input syntax is a set of algebraic expressions and "free", "int", "bin", "sec", "sos" declarations in the following order: | | *The lp-format input syntax is a set of algebraic expressions and "free", "int", "bin", "sec", "sos" declarations in the following order: |
| − | -<objective function>
| + | <objective function> |
| − | -<constraint>*
| + | <constraint>* |
| − | -<declaration>*
| + | <declaration>* |
| | | | |
| | where: | | where: |
| − | *<objective function> is a linear combination of optional variables and constants, ending with a semicolon, optionally preceded by "max: " or "min: "
| + | <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. | | 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. | | 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
| + | <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 | | 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 | | variables and constants, ending with a semicolon. The relational operator can be any of the following: "<" "<=" "=" ">" ">=". There is no semantic difference |