[R] how to solve a min problem
spencer.graves at pdf.com
Tue Jul 3 21:06:30 CEST 2007
Do you mean
minimize mu with 0 < b_func(S+mu) < 800?
For this kind of problem, I'd first want to know the nature of
"b_func". Without knowing more, I might try to plot b_func(S+mu) vs.
mu, then maybe use 'optimize'.
If this is not what you mean, please be more specific: I'm
Hope this helps.
domenico pestalozzi wrote:
> I know it's possible to solve max e min problems by using these functions:
> nlm, optimize, optim
> but I don't know how to use them (...if possible...) to solve this problem.
> I have a personal function called b_func(S) where S is an input array (1 X
> n) and I'd like:
> minimize mean(S) with 0 < b_funct < 800.
> I know that the solution exists, but It's possible to calculate it in R?
> The b_func is non linear and it calculates a particular value using S as
> input and applying a convergent iterative algorithm.
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help