Optimization in R similar to MS Excel Solver
On 26-10-2012, at 21:41, Richard James wrote:
That solution works very well. The only issue is that 'rnorm' occasionally generates negative values which aren't logical in this situation.
Try another random generator. Lognormal, uniform, ...
Is there a way to set a lower limit of zero?
Truncated normal perhaps? Berend