Description Usage Arguments Value Examples
View source: R/lpsolve_over_eta.R
Minimize linear program of the form
t(objective_vector) * log(theta)
over theta in the convex polytope of log(theta)
such that log(theta_l) - log(theta_k) <= log(etak,l)
and such that sum_k log (theta_k) = 0.
Employs the lpSolveAPI
package.
1 | lpsolve_over_eta_log(eta, objective_vector)
|
eta |
A matrix of dimension K x K describing a convex polytope. |
objective_vector |
a vector giving coefficient of linear function (of log theta) to minimize. |
Evaluation of the objective function at its minimum.
1 2 3 4 5 | ## Not run:
eta <- rejection_sampler(c(1,0,3,2))$etas
lpsolve_over_eta_log(eta, c(1,0,0,0))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.