今天小編給大家分享一下matlab三維路徑規(guī)劃的方法是什么的相關(guān)知識點(diǎn),內(nèi)容詳細(xì),邏輯清晰,相信大部分人都還太了解這方面的知識,所以分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后有所收獲,下面我們一起來了解一下吧。
創(chuàng)新互聯(lián)專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于成都網(wǎng)站制作、網(wǎng)站建設(shè)、平輿網(wǎng)絡(luò)推廣、小程序制作、平輿網(wǎng)絡(luò)營銷、平輿企業(yè)策劃、平輿品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們最大的嘉獎;創(chuàng)新互聯(lián)為所有大學(xué)生創(chuàng)業(yè)者提供平輿建站搭建服務(wù),24小時服務(wù)熱線:13518219792,官方網(wǎng)址:muchs.cn
load HeightData HeightData%起點(diǎn)終點(diǎn)網(wǎng)格點(diǎn) pheromone=ones(21,21,21);[path,pheromone]=searchpath(PopNumber,LevelGrid,PortGrid,pheromone, ... HeightData,starty,starth,endy,endh); fitness=CacuFit(path); %適應(yīng)度計算[bestfitness,bestindex]=min(fitness); %最佳適應(yīng)度bestpath=path(bestindex,:); %最佳路徑BestFitness=[BestFitness;bestfitness]; %適應(yīng)度值記錄 pheromone(i,bestpath(i*2-1),bestpath(i*2))= ... (1-rou)*pheromone(i,bestpath(i*2-1),bestpath(i*2))+rou*cfit; [path,pheromone]=searchpath(PopNumber,LevelGrid,PortGrid,... pheromone,HeightData,starty,starth,endy,endh); [newbestfitness,newbestindex]=min(fitness); if newbestfitness<bestfitness bestfitness=newbestfitness; bestpath=path(newbestindex,:); BestFitness=[BestFitness;bestfitness]; pheromone(i,bestpath(i*2-1),bestpath(i*2))=(1-rou)* ... pheromone(i,bestpath(i*2-1),bestpath(i*2))+rou*cfit;plot3(k(1)',a(1,1)',a(1,2)'*200,'--o','LineWidth',2,... 'MarkerEdgeColor','k',... 'MarkerFaceColor','g',...plot3(k(21)',a(21,1)',a(21,2)'*200,'--o','LineWidth',2,... 'MarkerEdgeColor','k',... 'MarkerFaceColor','g',... text(k(1)',a(1,1)',a(1,2)'*200,'S');text(k(21)',a(21,1)',a(21,2)'*200,'T');xlabel('km','fontsize',12);ylabel('km','fontsize',12);zlabel('m','fontsize',12);title('三維路徑規(guī)劃空間','fontsize',12)set(gcf, 'Renderer', 'ZBuffer')plot3(k',a(:,1)',a(:,2)'*200,'--o')title('最佳個體適應(yīng)度變化趨勢')以上就是“matlab三維路徑規(guī)劃的方法是什么”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家閱讀完這篇文章都有很大的收獲,小編每天都會為大家更新不同的知識,如果還想學(xué)習(xí)更多的知識,請關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
文章題目:matlab三維路徑規(guī)劃的方法是什么
URL分享:http://muchs.cn/article6/iepeog.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信公眾號、移動網(wǎng)站建設(shè)、商城網(wǎng)站、網(wǎng)站內(nèi)鏈、網(wǎng)站制作、網(wǎng)站策劃
廣告
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源:
創(chuàng)新互聯(lián)