用lingo求线性规划,条件中还有条件怎么编程图中令d=8.7;编程为min=(3*n^2-3*n+1);(3*(n-1)^2-3*(n-1)+1)*48*5+(3*n^2-3*n+1-(3*(n-1)^2-3*(n-1)+1))*51*5>=1000;n*d>=40,n=2*a; 这行和下一行有问题,这两个条件怎么
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/04 11:08:49
![用lingo求线性规划,条件中还有条件怎么编程图中令d=8.7;编程为min=(3*n^2-3*n+1);(3*(n-1)^2-3*(n-1)+1)*48*5+(3*n^2-3*n+1-(3*(n-1)^2-3*(n-1)+1))*51*5>=1000;n*d>=40,n=2*a; 这行和下一行有问题,这两个条件怎么](/uploads/image/z/11666466-18-6.jpg?t=%E7%94%A8lingo%E6%B1%82%E7%BA%BF%E6%80%A7%E8%A7%84%E5%88%92%2C%E6%9D%A1%E4%BB%B6%E4%B8%AD%E8%BF%98%E6%9C%89%E6%9D%A1%E4%BB%B6%E6%80%8E%E4%B9%88%E7%BC%96%E7%A8%8B%E5%9B%BE%E4%B8%AD%E4%BB%A4d%3D8.7%EF%BC%9B%E7%BC%96%E7%A8%8B%E4%B8%BAmin%3D%283%2An%5E2-3%2An%2B1%29%3B%283%2A%28n-1%29%5E2-3%2A%28n-1%29%2B1%29%2A48%2A5%2B%283%2An%5E2-3%2An%2B1-%283%2A%28n-1%29%5E2-3%2A%28n-1%29%2B1%29%29%2A51%2A5%26gt%3B%3D1000%3Bn%2Ad%26gt%3B%3D40%2Cn%3D2%2Aa%3B+++++%E8%BF%99%E8%A1%8C%E5%92%8C%E4%B8%8B%E4%B8%80%E8%A1%8C%E6%9C%89%E9%97%AE%E9%A2%98%2C%E8%BF%99%E4%B8%A4%E4%B8%AA%E6%9D%A1%E4%BB%B6%E6%80%8E%E4%B9%88)
用lingo求线性规划,条件中还有条件怎么编程图中令d=8.7;编程为min=(3*n^2-3*n+1);(3*(n-1)^2-3*(n-1)+1)*48*5+(3*n^2-3*n+1-(3*(n-1)^2-3*(n-1)+1))*51*5>=1000;n*d>=40,n=2*a; 这行和下一行有问题,这两个条件怎么
用lingo求线性规划,条件中还有条件怎么编程
图中令d=8.7;
编程为
min=(3*n^2-3*n+1);
(3*(n-1)^2-3*(n-1)+1)*48*5+(3*n^2-3*n+1-(3*(n-1)^2-3*(n-1)+1))*51*5>=1000;
n*d>=40,n=2*a; 这行和下一行有问题,这两个条件怎么编?
n^2+n+1>=(40/d)^2,n=2*a+1;?
d=8.7;
@GIN(n);
用lingo求线性规划,条件中还有条件怎么编程图中令d=8.7;编程为min=(3*n^2-3*n+1);(3*(n-1)^2-3*(n-1)+1)*48*5+(3*n^2-3*n+1-(3*(n-1)^2-3*(n-1)+1))*51*5>=1000;n*d>=40,n=2*a; 这行和下一行有问题,这两个条件怎么
似乎可以用@mod()来实现,我尝试了一下,没有最优
MODEL:
MIN=3*N^2-3*N+1;
(3*(N-1)^2-3*(N-1)+1)*48*5+((3*N^2-3*N+1)-(3*(N-1)^2-3*(N-1)+1))*51*5>1000;
@GIN(N);
KL=@IF(@MOD(N,2)#EQ#0,N*D,@SQRT(N^2+N+1)*D);
KL>40;
D=8.7;
END
你可以再试试.