Displaying 1 result from an estimated 1 matches for "dadosinput_componente1".
2005 Oct 14
0
arguments of lpSolve
...um of columns/variables, constrained to
>=1. Each column/variables has its weight - given by values at f.obj.
The matrix for numeric constraint coefficients is given by "DadosM" (from my
Dados file).
Here is what I have done:
>
Dados<-read.table("C:/SARA/PhD/Analise-GRAPHs/DadosInput_Componente1.txt",he
ad=T)
> DadosM=as.matrix(Dados)
> f.obj<-c(1,2,2,2,2,2,2,2,4,4,4,4,4,4,4,4,6,6,6,6,8,8,8)
> f.dir<-array(c(">="),dim=c(1,379))
>
> f.rhs<-array(1,dim=c(1,23))
> lp ("min", f.obj, DadosM, f.dir, f.rhs, transpose.constraints = TRUE,
p...