1 Star 2 Fork 0

xuelanghanbao / 汽车制造涂装-总装缓存调序区调度优化建模

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
m23_findBestCode2.m 731 Bytes
一键复制 编辑 原始数据 按行查看 历史
function code = m23_findBestCode2(u,v,R,data)
C = 318;
if size(u,2)>=2
code = floor(R(u(1),end)/10);
return;
end
out = m24_getOutput(R);
scoreV = zeros(1,size(v,2));
%% 获得V输出序列评分
for i=1:size(v,2)
outv = [out v(i)];
[powerList, driveList] = m25_getList(outv,data);
scoreV(i) = m0_fun1(powerList)+m0_fun2(driveList);
end
scoreVmax = max(scoreV);
tv = [v;scoreV]';
tv = sortrows(tv,2); % 根据到达时间排序
v = tv(:,1)';
%% 获得U输出序列评分
outv = [out u(1)];
[powerList, driveList] = m25_getList(outv,data);
score = m0_fun1(powerList)+m0_fun2(driveList);
if scoreVmax>score && size(out,2)-C>20
code = floor(R(u(1),end)/10) + 6;
else
code = floor(R(u(1),end)/10);
end
end
Matlab
1
https://gitee.com/xuelanghanbao/PBS-Optimization-Modeling.git
git@gitee.com:xuelanghanbao/PBS-Optimization-Modeling.git
xuelanghanbao
PBS-Optimization-Modeling
汽车制造涂装-总装缓存调序区调度优化建模
master

搜索帮助