Entropy Function
The elementwise entropy function, -xlog(x).
entr(x)
x |
An Expression, vector, or matrix. |
An Expression representing the entropy of the input.
x <- Variable(5) obj <- Maximize(sum(entr(x))) prob <- Problem(obj, list(sum(x) == 1)) result <- solve(prob) result$getValue(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.