Description Usage Arguments Value Examples

View source: R/knapsackSampling.R

Generate an initial feasible solution by solving a linear programming with binary variables

1 |

`numVar` |
- number of variables |

`objVec` |
- objective function as a numeric vector |

`constraints` |
- a list of list of constraints with constr.mat, constr.dir, constr.rhs in each sublist |

a binary vector containing a feasible solution

1 | ```
#see documentation for sampl.mcmc
``` |

KnapsackSampling documentation built on May 19, 2017, 1:39 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.