代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。