On Wed, May 23, 2012 at 10:56:43PM -0700, kylmala wrote:
> Hi,
>
> and thanks for replying this. Yes, you are right that the term
> min(24/bb,26/cc) is actually min(bb/24,cc/26) - my mistake. But still I
> don't get it. If the objective function is
>
> #min(m1,m2,m3)
> f.obj <- c(1, 1, 1)
>
> #
Hi,
and thanks for replying this. Yes, you are right that the term
min(24/bb,26/cc) is actually min(bb/24,cc/26) - my mistake. But still I
don't get it. If the objective function is
#min(m1,m2,m3)
f.obj <- c(1, 1, 1)
#and we now that
# a+aa<=15
# b+bb+bbb<=35
# cc+ccc<=40
# so
# 1a + 0b +
On Wed, May 23, 2012 at 12:35:31AM -0700, kylmala wrote:
> Hi,
>
> I have a problem with R optimization. I try to copy excel solver acts to R.
> Solver has some problems with nonlinear optimisation.
>
> Suppose we have resources: (X,Y,Z)=(20, 30, 25) and services:
> matrix(10,11,0, 13,12,10, 0,24
I'have tried to do something like that staring values:
pars=c(x1=1,x2=1,x3=1,x4=1,x5=1,x6=1,x7=1)
and the function
f=function(pars){
min(pars[1]/10,pars[2]/11)+min(pars[3]/20,pars[4]/22,pars[5]/25)+min(pars[6]/36,pars[7]/28)
}
optim(pars,f)
but how can I get the constraints in there also?
--
Hi,
I have a problem with R optimization. I try to copy excel solver acts to R.
Solver has some problems with nonlinear optimisation.
Suppose we have resources: (X,Y,Z)=(20, 30, 25) and services:
matrix(10,11,0, 13,12,10, 0,24,26), nrow=3.
Now we should optimize the problem: max( min(a/10,b/11)
5 matches
Mail list logo