Skip to content
Back to formatted view

Raw Message

Message-ID: <9E18829C-3A08-49F7-B1BC-5B9F093F5463@xs4all.nl>
Date: 2012-10-27T09:04:39Z
From: Berend Hasselman
Subject: Optimization in R similar to MS Excel Solver
In-Reply-To: <1351280478484-4647596.post@n4.nabble.com>

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