initState {KnapsackSampling} | R Documentation |
Generate an initial feasible solution by solving a linear programming with binary variables
Description
Generate an initial feasible solution by solving a linear programming with binary variables
Usage
initState(numVar, objVec = runif(numVar), constraints = NULL)
Arguments
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 |
Value
a binary vector containing a feasible solution
Examples
#see documentation for sampl.mcmc
[Package KnapsackSampling version 0.1.1 Index]