A vector x which verifies the constraints constr(x) <= 0.
Arguments
constr
Constraint function
nvars
Number of variables
LB
Lower bound
UB
Upper bound
...
further arguments to pass to constr function.
echo
a logical to plot traces.
method
the distribution to draw random variates, either "unif",
"norm", "normcap".
control
a named list containing the mean and the standard deviation
of the normal distribution used if method!="unif".
Author
Christophe Dutang
Details
Draw random variates x until all the components of constr(x) are negative. The distribution
to draw random variates can be the uniform distribution on the hypercube defined by LB and UB,
the normal distribution centered in (LB + UB)/2 and standard deviation (UB - LB) / (4*1.9600)
and the capped normal distribution (intended for debug use).