Description Usage Arguments Value Examples
View source: R/lpsolve_over_eta.R
Minimize linear program of the form
t(objective_vector) * theta
over theta in the convex polytope of theta included in the simplex
and such that theta_l / theta_k <= etak,l.
Employs the lpSolveAPI
package.
1 | lpsolve_over_eta(eta, objective_vector)
|
eta |
A matrix of dimension K x K describing a convex polytope. |
objective_vector |
a vector giving coefficient of linear function 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(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.