R中的优化任务(整数值,SImplex)

时间:2015-05-06 09:55:00

标签: r optimization integer simplex

我有一个优化任务。我使用simples方法,但我唯一的问题是如何制作X2,X4,X5 - 整数和X1,X3,X6,X7 - 任何实数?

我目前的代码如下:

    library(boot)
    a =c(6,10,2,1,6,7,1)
    A11= c(1,2,-15,12,-4,16,-6)
    A12 = c(-1,8,7,1,8,-1,1)
    A13 = c(4,-6,5,-3,5,5,2)
    A14 = c(3,5,2,-3,1,2,1)
    A15 = c(6,4,-5,3,5,3,5)
    A16 = c(-4,5,-4,5,4,5,4)
    b1 = c(150,100,110,157,166,140)
    A1 = rbind(A11, A12, A13,A14,A15,A16)
    simplex(a, A1, b1, maxi = TRUE)

0 个答案:

没有答案