S is an array 1-dimensional, for example 1 X 10, and mean(S) is the mean of
these 10 elements.
So, I want to do:
minimize mean(S) with 0 b_func(S) 800.
That is, there are some boundaries on S according the b_funct
The function apply an iterative convergent criterion:
f_1=g(S), f_2=g(f_1),
.
Ravi.
- Original Message -
From: domenico pestalozzi [EMAIL PROTECTED]
Date: Wednesday, July 4, 2007 11:26 am
Subject: Re: [R] how to solve a min problem
To: R-help r-help@stat.math.ethz.ch
S is an array 1-dimensional, for example 1 X 10, and mean(S) is the
mean of
these 10
Subject: Re: [R] how to solve a min problem
To: R-help r-help@stat.math.ethz.ch
S is an array 1-dimensional, for example 1 X 10, and mean(S) is the
mean of
these 10 elements.
So, I want to do:
minimize mean(S) with 0 b_func(S) 800.
That is, there are some boundaries on S according
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 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