x1x2
must be equal to zero.
E
or e
, alone or followed by other valid symbols, or followed by another E
or e
, should be avoided as this notation is reserved for exponential entries. Thus, variables can not be named e9
, E-24
, E8cats
, or other names that could be interpreted as an exponent. Even variable names such as eels
or example
can cause a read error, depending on their placement in an input line.
x2
with a return.
obj
.
c1
, c2
, c3
, etc.
x5 = 5.6
is equivalent to 5.6 <= x5 <= 5.6
.
+infinity
, -infinity
, +inf
, -inf
.
free
, in any mix of upper- and lower-case characters, with a space separating the variable name and the word free
. For example, x7 free
is equivalent to - infinity <= x7 <= + infinity
.
x4
is a general integer:
*
). For example, [4x*y]
indicates that the coefficients of both of the off-diagonal terms of Q, corresponding to the variables x
and y
in the model are 2, since 4x*y
equals 2x*y + 2x*y
. Each pair of off-diagonal terms of Q is specified only once. ILOG CPLEX automatically creates both off-diagonal entries of Q. Diagonal terms in Q (that is, terms with an exponent of 2) are indicated by the carat (^
) followed by 2. For example, 4x^2
indicates that the coefficient of the diagonal term of Q corresponding to the variable x
in the model is 4.
Minimize | ||||||||||
a | + | b | + | 1/2 | (a2 | + | 4ab | + | 7b2) | |
subject to | ||||||||||
a | + | b | 10 | |||||||
a, | b | 0 |