powered by
Generate an initial feasible solution by solving a linear programming with binary variables
initState(numVar, objVec = runif(numVar), constraints = NULL)
a binary vector containing a feasible solution
- number of variables
- objective function as a numeric vector
- a list of list of constraints with constr.mat, constr.dir, constr.rhs in each sublist
#see documentation for sampl.mcmc
Run the code above in your browser using DataLab