search for: lambdamatrix

Displaying 1 result from an estimated 1 matches for "lambdamatrix".

2009 Sep 17
0
lpSolve constraints don't seem to have an effect
...5)) F1 <- f1(seq(0,2,by=0.25)) F2 <- f2(seq(0,2,by=0.25)) con <- c(G1,G2,1) # slack variable included obj <- c(F1,F2) # Defining the constraints lambdasx2 <- diag(1,ncol=19,nrow=19) lambda1x2 <- c(rep(1,times=9),rep(0,times=9),0) lambda2x2 <- c(rep(0,times=9),rep(1,times=9),0) lambdamatrix <- rbind(lambda1x2,lambda2x2,lambdasx2) conlamb <- rbind(con,lambdamatrix) # Defining the right-hand side rightside <- c(6,1,1,rep(0,times=19)) # Defining the directions direc <- c("=","=","=",rep(">=",times=19)) # LP lp("max",obj,...