{"id":74780,"date":"2026-02-10T15:49:15","date_gmt":"2026-02-10T07:49:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/74780.html"},"modified":"2026-02-10T15:49:15","modified_gmt":"2026-02-10T07:49:15","slug":"%e6%ad%a3%e5%90%91%e7%89%a9%e6%b5%81%e8%b7%af%e5%be%84%e8%a7%84%e5%88%92","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/74780.html","title":{"rendered":"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212"},"content":{"rendered":"<\/p>\n<h4>\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u4e00\u3001\u914d\u9001\u8def\u5f84\u4f18\u5316\u6a21\u578b\u6784\u5efa<\/li>\n<li>\n<ul>\n<li>1.\u6a21\u578b\u5047\u8bbe<\/li>\n<li>2.ortools\u6c42\u89e3\u8def\u5f84\u89c4\u5212<\/li>\n<li>OR-Tools \u5305\u542b\u4ee5\u4e0b\u89e3\u51b3\u65b9\u6848<\/li>\n<\/ul>\n<\/li>\n<li>\u4eff\u771f<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ul>\n<hr \/>\n<h2>\u524d\u8a00<\/h2>\n<p>\u4e0e\u4f20\u7edf\u7269\u6d41\u884c\u4e1a\u76f8\u540c&#xff0c;\u5f71\u54cd\u51b7\u94fe\u7269\u6d41\u4ea7\u54c1\u670d\u52a1\u8d28\u91cf\u7684\u6700\u5173\u952e\u56e0\u7d20\u5c31\u662f\u8fd0\u8f93\u8ddd \u79bb\u957f\u77ed&#xff0c;\u5408\u7406\u7684\u89c4\u5212\u914d\u9001\u8def\u7ebf&#xff0c;\u5bf9\u4f01\u4e1a\u6765\u8bb2&#xff0c;\u4e00\u65b9\u9762&#xff0c;\u53ef\u4ee5\u907f\u514d\u4e0d\u5408\u7406\u7684\u914d\u9001\u8def\u7ebf&#xff0c;\u907f\u514d\u589e\u52a0\u65e0\u6548\u914d\u9001\u65f6\u957f&#xff0c;\u63d0\u9ad8\u6548\u7387&#xff0c;\u964d\u4f4e\u8d27\u635f&#xff0c;\u964d\u4f4e\u6210\u672c &#xff1b;\u53e6\u4e00\u65b9\u9762&#xff0c;\u53ef\u4ee5\u4fdd\u8bc1\u4ea7\u54c1\u5728\u9001\u5230\u6d88\u8d39\u8005\u624b\u4e2d\u65f6\u7684\u5b8c\u6574\u7a0b\u5ea6\u3001\u65b0\u9c9c\u5ea6\u7b49&#xff0c;\u63d0\u9ad8\u5ba2\u6237\u5bf9\u51b7\u94fe\u7684\u63a5\u53d7\u7a0b\u5ea6&#xff0c;\u4fc3\u8fdb\u5176\u53d1\u5c55\u3002\u5bf9\u987e\u5ba2\u6765\u8bb2&#xff0c;\u4f18\u5316\u8def\u7ebf\u53ef\u4ee5\u4eab\u53d7\u66f4\u4f18\u8d28\u7684\u670d\u52a1&#xff0c;\u66f4\u613f\u610f\u9009\u62e9\u6b64\u79cd\u6d88\u8d39\u6a21\u5f0f\u3002<\/p>\n<h2>\u4e00\u3001\u914d\u9001\u8def\u5f84\u4f18\u5316\u6a21\u578b\u6784\u5efa<\/h2>\n<h3>1.\u6a21\u578b\u5047\u8bbe<\/h3>\n<p>\u4e3a\u6ee1\u8db3\u6a21\u578b\u6784\u5efa\u7684\u8981\u6c42&#xff0c;\u672c\u6587\u4f5c\u51fa\u4ee5\u4e0b\u5047\u8bbe &#xff1a; &#xff08;1&#xff09;\u4ed3\u5e93\u4e2d\u5fc3\u6709\u8db3\u591f\u591a\u7684\u540c\u79cd\u578b\u53f7\u7684\u914d\u9001\u8f66\u8f86\u548c\u53ef\u7528\u7684\u914d\u9001\u4eba\u5458\u3002 &#xff08;2&#xff09;\u8f66\u8f86\u5728\u53c2\u4e0e\u914d\u9001\u670d\u52a1\u65f6\u5747\u5904\u4e8e\u826f\u597d\u8fd0\u884c\u72b6\u6001\u3002 &#xff08;3&#xff09;\u914d\u9001\u8f66\u8f86\u53ea\u7528\u4f5c\u914d\u9001&#xff0c;\u4e0d\u7528\u505a\u5176\u4ed6\u7528\u9014\u3002 &#xff08;4&#xff09;\u6bcf\u4e2a\u96f6\u552e\u5546\u6bcf\u5929\u53ea\u4f1a\u5411\u4ed3\u5e93\u53d1\u9001\u4e00\u6b21\u8ba2\u5355\u7533\u8bf7\u3002 &#xff08;5&#xff09;\u5ba2\u6237\u7684\u65f6\u95f4\u7a97\u3001\u4f4d\u7f6e\u4ee5\u53ca\u9700\u6c42\u91cf\u7b49\u4fe1\u606f\u5df2\u77e5\u3002 &#xff08;6&#xff09;\u6bcf\u4f4d\u5ba2\u6237\u53ea\u63a5\u53d7\u4e00\u6b21\u914d\u9001\u670d\u52a1&#xff0c;\u5546\u54c1\u5fc5\u987b\u4e00\u6b21\u9001\u5230\u3002 &#xff08;7&#xff09;\u8fd0\u8f93\u8fc7\u7a0b\u4e2d\u4ea7\u54c1\u4e0d\u4f1a\u53d1\u751f\u53d8\u8d28\u3002 &#xff08;8&#xff09;\u6bcf\u6761\u914d\u9001\u8def\u5f84\u4e0a\u7684\u5404\u4e2a\u5ba2\u6237\u9700\u6c42\u91cf\u7684\u603b\u91cf\u4e0d\u80fd\u8d85\u8fc7\u914d\u9001\u8f66\u8f86\u7684\u6700\u5927\u88c5\u8f7d\u91cf\u3002 &#xff08;9&#xff09;\u8f66\u8f86\u5728\u914d\u9001\u9014\u4e2d\u59cb\u7ec8\u4fdd\u6301\u5300\u901f\u884c\u9a76\u4e14\u65e0\u7279\u6b8a\u60c5\u51b5\u53d1\u751f\u3002 &#xff08;10&#xff09;\u4e0d\u4f1a\u5b58\u5728\u96f6\u552e\u5546\u62d2\u7edd\u63a5\u53d7\u8d27\u7269\u7684\u60c5\u51b5\u3002 &#xff08;11&#xff09;\u8d27\u7269\u9001\u8fbe\u65f6\u88c5\u5378\u642c\u8fd0\u8d27\u7269\u4e0d\u4f1a\u4ea7\u751f\u989d\u5916\u8d39\u7528\u3002 &#xff08;12&#xff09;\u914d\u9001\u8f66\u8f86\u5747\u7531\u914d\u9001\u4e2d\u5fc3\u53d1\u51fa&#xff0c;\u5e76\u5728\u5b8c\u6210\u914d\u9001\u670d\u52a1\u540e\u8fd4\u56de\u914d\u9001\u4e2d\u5fc3\u3002&#xff08;13&#xff09;\u6240\u6709\u8f66\u8f86\u4e0d\u4f1a\u51fa\u73b0\u7a7a\u8f7d\u7684\u60c5\u51b5&#xff0c;\u5373\u6240\u6709\u8f66\u8f86\u90fd\u53c2\u52a0\u914d\u9001\u670d\u52a1\u3002<\/p>\n<h3>2.ortools\u6c42\u89e3\u8def\u5f84\u89c4\u5212<\/h3>\n<p>OR-Tools \u662f\u4e00\u79cd\u7528\u4e8e\u7ec4\u5408\u4f18\u5316\u7684\u5f00\u6e90\u8f6f\u4ef6&#xff0c;\u8be5\u8f6f\u4ef6\u529b\u6c42\u4ece\u4e00\u7ec4\u53ef\u80fd\u7684\u5927\u91cf \u89e3\u51b3\u65b9\u6848\u4e2d\u627e\u51fa\u67d0\u4e2a\u95ee\u9898\u7684\u6700\u4f73\u89e3\u51b3\u65b9\u6848\u3002\u4ee5\u4e0b\u662f OR \u5de5\u5177\u53ef\u4ee5\u89e3\u51b3\u7684\u4e00\u4e9b\u95ee \u9898\u793a\u4f8b&#xff1a; \u26ab \u8f66\u8f86\u8def\u7ebf&#xff1a;\u6839\u636e\u7ed9\u5b9a\u7684\u9650\u5236\u6761\u4ef6&#xff08;\u4f8b\u5982&#xff0c;\u201c\u8fd9\u8f86\u5361\u8f66\u627f\u8f7d\u7684\u91cd\u91cf\u4e0d\u80fd\u8d85 \u8fc7 20,000 \u78c5\u201d\u6216\u201c\u6240\u6709\u9001\u8d27\u90fd\u5fc5\u987b\u5728\u4e24\u5c0f\u65f6\u5185\u5b8c\u6210\u201d&#xff09;\u3002 \u26ab \u8c03\u5ea6&#xff1a;\u4e3a\u4e00\u7ec4\u590d\u6742\u7684\u4efb\u52a1\u627e\u5230\u6700\u4f73\u8c03\u5ea6&#xff0c;\u5176\u4e2d\u4e00\u4e9b\u4efb\u52a1\u9700\u8981\u5148\u5b8c\u6210&#xff0c;\u7136 \u540e\u624d\u80fd\u5728\u4e00\u7ec4\u56fa\u5b9a\u7684\u673a\u5668\u6216\u5176\u4ed6\u8d44\u6e90\u4e0a\u6267\u884c\u3002 \u26ab \u7bb1\u88c5&#xff1a;\u5c06\u5404\u79cd\u4e0d\u540c\u5c3a\u5bf8\u7684\u5bf9\u8c61\u88c5\u5165\u5177\u6709\u6700\u5927\u5bb9\u91cf\u7684\u56fa\u5b9a\u6570\u91cf\u7684\u7bb1\u4e2d\u3002 \u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b&#xff0c;\u6b64\u7c7b\u95ee\u9898\u5177\u6709\u5927\u91cf\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6848&#xff0c;\u8ba1\u7b97\u673a\u8fc7\u591a\u65e0\u6cd5\u641c\u7d22 \u6240\u6709\u89e3\u51b3\u65b9\u6848\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;OR-Tools \u4f7f\u7528\u4e86\u5148\u8fdb\u7684\u7b97\u6cd5\u6765\u7f29\u5c0f\u641c\u7d22\u96c6\u7684\u8303\u56f4&#xff0c;\u4ee5\u5bfb\u627e\u6700\u4f73&#xff08;\u6216\u6700\u63a5\u8fd1&#xff09;\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h3>OR-Tools \u5305\u542b\u4ee5\u4e0b\u89e3\u51b3\u65b9\u6848<\/h3>\n<p>&#xff08;1&#xff09;\u7ea6\u675f\u7f16\u7a0b \u7528\u4e8e\u5bfb\u627e\u53ef\u884c\u89e3\u7684\u65b9\u6cd5&#xff0c;\u7528\u4e8e\u89e3\u51b3\u4ee5\u7ea6\u675f\u6761\u4ef6\u8868\u793a\u7684\u95ee\u9898&#xff08;\u4f8b\u5982&#xff0c;\u65e0\u6cd5\u540c\u65f6 \u5c06\u623f\u95f4\u7528\u4e8e\u4e24\u4e2a\u4e8b\u4ef6&#xff0c;\u6216\u8005\u4e0e\u526a\u88c1\u5185\u5bb9\u7684\u8ddd\u79bb\u5fc5\u987b\u5c0f\u4e8e\u8f6f\u7ba1\u7684\u957f\u5ea6&#xff0c;\u6216\u8005\u4e00\u6b21\u6700 \u591a\u53ea\u80fd\u5f55\u5236\u4e94\u4e2a\u7535\u89c6\u8282\u76ee&#xff09;\u3002 &#xff08;2&#xff09;\u7ebf\u6027\u548c\u6df7\u5408\u6574\u6570\u7f16\u7a0b Glop \u7ebf\u6027\u4f18\u5316\u5668\u4f1a\u5728\u6307\u5b9a\u4e00\u7ec4\u7ebf\u6027\u4e0d\u7b49\u5f0f&#xff08;\u4f8b\u5982&#xff0c;\u4e3a\u4eba\u5458\u5206\u914d\u4f5c\u4e1a&#xff0c;\u6216\u5728 \u5c3d\u91cf\u964d\u4f4e\u8d39\u7528\u7684\u60c5\u51b5\u4e0b\u627e\u5230\u4e00\u7ec4\u8d44\u6e90\u7684\u6700\u4f73\u5206\u914d&#xff09;\u540e&#xff0c;\u627e\u51fa\u7ebf\u6027\u76ee\u6807\u51fd\u6570\u7684\u6700\u4f73 \u503c\u3002\u4e5f\u53ef\u4ee5\u901a\u8fc7 Google Apps \u811a\u672c\u4f18\u5316\u670d\u52a1\u4f7f\u7528 Glop \u548c\u6df7\u5408\u6574\u6570\u7f16\u7a0b\u8f6f \u4ef6 SCIP\u3002 &#xff08;3&#xff09;\u8f66\u8f86\u8def\u7ebf \u7528\u4e8e\u5728\u6ee1\u8db3\u6307\u5b9a\u9650\u5236\u6761\u4ef6\u7684\u60c5\u51b5\u4e0b\u786e\u5b9a\u6700\u4f73\u8f66\u8f86\u8def\u7ebf\u7684\u4e13\u7528\u5e93\u3002 &#xff08;4&#xff09;\u56fe\u8868\u7b97\u6cd5 \u6b64\u4ee3\u7801\u7528\u4e8e\u67e5\u627e\u56fe\u8868\u3001\u6700\u77ed\u8d39\u7528\u6d41\u3001\u6700\u5927\u6d41\u91cf\u548c\u7ebf\u6027\u603b\u548c\u5206\u914d\u4e2d\u7684\u6700\u77ed\u8def\u5f84\u3002<\/p>\n<h2>\u4eff\u771f<\/h2>\n<p>\u4ee5\u67d0\u5730\u524d\u7f6e\u4ed3A\u4ee5\u53ca\u5b83\u6240\u8d1f\u8d23\u768416\u4e2a\u96f6\u552e\u5546\u7814\u7a76\u5bf9\u8c61&#xff0c;\u5047\u8bbe\u524d\u4e00\u65e5\u63a5\u53d7\u8ba2\u5355\u5982\u4e0b\u8868\u6240\u793a&#xff08;\u622a\u53d6\u4e86\u90e8\u5206\u6570\u636e&#xff09;&#xff0c;\u901a\u8fc7\u6bd4\u8f83\u4f18\u5316\u524d\u4e0e\u4f18\u5316\u540e\u7684\u914d\u9001\u8def\u5f84\u3001 \u914d\u9001\u65f6\u95f4\u4ee5\u53ca\u7efc\u5408\u914d\u9001\u6210\u672c&#xff0c;\u9a8c\u8bc1\u672c\u6587\u6a21\u578b\u7684\u5408\u7406\u6027\u4e0e\u5b9e\u7528\u6027\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260210074913-698ae2f9c86d9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5728\u8be5\u516c\u53f8\u5f53\u524d\u65b9\u6848\u4e2d&#xff0c;\u4ed3\u5e93\u4e00\u5929\u9700\u6d3e\u51fa 4 \u8f86\u914d\u9001\u8f66\u8f86\u5373\u53ef\u5b9e\u73b0\u914d\u9001\u8303\u56f4\u8986 \u76d6&#xff0c; \u8f66\u8f86\u6700\u5927\u8f7d\u91cd\u5747\u4e3a1000kg&#xff0c; \u5728\u8fd0\u8f93\u65f6\u7684\u5e73\u5747\u5355\u4f4d\u8fd0\u8f93\u6210\u672c\u4e3a 0.9 \u5143 \/ \u516c \u91cc&#xff0c;\u4f7f\u7528ortool\u5bf9\u914d\u9001\u8def\u5f84\u8fdb\u884c\u4f18\u5316\u3002<\/p>\n<p><span class=\"token comment\"># [START solution_printer]<\/span><br \/>\n<span class=\"token keyword\">def<\/span> <span class=\"token function\">print_solution<\/span><span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">,<\/span> manager<span class=\"token punctuation\">,<\/span> routing<span class=\"token punctuation\">,<\/span> assignment<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;Prints assignment on console.&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;Objective: {}&#039;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>assignment<span class=\"token punctuation\">.<\/span>ObjectiveValue<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    total_distance <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> vehicle_id <span class=\"token keyword\">in<\/span> <span class=\"token builtin\">range<\/span><span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;num_vehicles&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        index <span class=\"token operator\">&#061;<\/span> routing<span class=\"token punctuation\">.<\/span>Start<span class=\"token punctuation\">(<\/span>vehicle_id<span class=\"token punctuation\">)<\/span><br \/>\n        plan_output <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;Route for vehicle {}:\\\\n&#039;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>vehicle_id<span class=\"token punctuation\">)<\/span><br \/>\n        route_distance <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><br \/>\n        <span class=\"token keyword\">while<\/span> <span class=\"token keyword\">not<\/span> routing<span class=\"token punctuation\">.<\/span>IsEnd<span class=\"token punctuation\">(<\/span>index<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            plan_output <span class=\"token operator\">&#043;&#061;<\/span> <span class=\"token string\">&#039; {} -&gt;&#039;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>manager<span class=\"token punctuation\">.<\/span>IndexToNode<span class=\"token punctuation\">(<\/span>index<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            previous_index <span class=\"token operator\">&#061;<\/span> index<br \/>\n            index <span class=\"token operator\">&#061;<\/span> assignment<span class=\"token punctuation\">.<\/span>Value<span class=\"token punctuation\">(<\/span>routing<span class=\"token punctuation\">.<\/span>NextVar<span class=\"token punctuation\">(<\/span>index<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            route_distance <span class=\"token operator\">&#043;&#061;<\/span> routing<span class=\"token punctuation\">.<\/span>GetArcCostForVehicle<span class=\"token punctuation\">(<\/span><br \/>\n                previous_index<span class=\"token punctuation\">,<\/span> index<span class=\"token punctuation\">,<\/span> vehicle_id<span class=\"token punctuation\">)<\/span><br \/>\n        plan_output <span class=\"token operator\">&#043;&#061;<\/span> <span class=\"token string\">&#039; {}\\\\n&#039;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>manager<span class=\"token punctuation\">.<\/span>IndexToNode<span class=\"token punctuation\">(<\/span>index<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        plan_output <span class=\"token operator\">&#043;&#061;<\/span> <span class=\"token string\">&#039;Distance of the route: {}m\\\\n&#039;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>route_distance<span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>plan_output<span class=\"token punctuation\">)<\/span><br \/>\n        total_distance <span class=\"token operator\">&#043;&#061;<\/span> route_distance<br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;Total Distance of all routes: {}m&#039;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>total_distance<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token comment\"># [END solution_printer]<\/span><\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u672c\u6587\u805a\u7126\u51b7\u94fe\u7269\u6d41\u914d\u9001\u8def\u5f84\u4f18\u5316\u95ee\u9898&#xff0c;\u7ed3\u5408\u884c\u4e1a\u53d1\u5c55\u80cc\u666f\u5c55\u5f00\u7814\u7a76\u3002\u6211\u56fd\u51b7\u94fe\u7269\u6d41\u5e02\u573a\u89c4\u6a21 2017-2021 \u5e74\u589e\u5e45\u8fbe 187.18%&#xff0c;\u5f53\u524d\u4e3b\u8981\u5b58\u5728\u4f20\u7edf\u6279\u53d1\u5e02\u573a\u6838\u5fc3\u6a21\u5f0f\u4e0e B2C \u7535\u5546\u6a21\u5f0f&#xff0c;\u540c\u65f6\u9762\u4e34\u914d\u9001\u6807\u51c6\u7f3a\u5931\u3001\u8bbe\u5907\u4e0d\u5b8c\u5584\u3001\u8d27\u635f\u7387\u9ad8\u3001\u8def\u5f84\u89c4\u5212\u4e0d\u5408\u7406\u3001\u8f66\u8f86\u7a7a\u7f6e\u7387\u9ad8\u7b49\u95ee\u9898\u3002\u4e3a\u89e3\u51b3\u4e0a\u8ff0\u95ee\u9898&#xff0c;\u672c\u6587\u9488\u5bf9\u5355\u914d\u9001\u4e2d\u5fc3\u5411\u591a\u96f6\u552e\u5546\u4f9b\u8d27\u573a\u666f&#xff0c;\u8bbe\u5b9a 13 \u9879\u5047\u8bbe\u6761\u4ef6&#xff0c;\u5b9a\u4e49\u76f8\u5173\u53d8\u91cf\u4e0e\u53c2\u6570&#xff0c;\u6784\u5efa\u57fa\u4e8e\u5e7f\u4e49\u8fd0\u8f93\u6210\u672c\u7684\u914d\u9001\u8def\u5f84\u4f18\u5316\u6a21\u578b&#xff0c;\u5e76\u91c7\u7528 OR-Tools \u5f00\u6e90\u8f6f\u4ef6\u6c42\u89e3\u6700\u4f18\u8def\u5f84\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212\u524d\u8a00\u4e00\u3001\u914d\u9001\u8def\u5f84\u4f18\u5316\u6a21\u578b\u6784\u5efa1.\u6a21\u578b\u5047\u8bbe2.ortools\u6c42\u89e3\u8def\u5f84\u89c4\u5212OR-Tools \u5305\u542b\u4ee5\u4e0b\u89e3\u51b3\u65b9\u6848\u4eff\u771f\u603b\u7ed3\u524d\u8a00<br \/>\n\u4e0e\u4f20\u7edf\u7269\u6d41\u884c\u4e1a\u76f8\u540c&#xff0c;\u5f71\u54cd\u51b7\u94fe\u7269\u6d41\u4ea7\u54c1\u670d\u52a1\u8d28\u91cf\u7684\u6700\u5173\u952e\u56e0\u7d20\u5c31\u662f\u8fd0\u8f93\u8ddd \u79bb\u957f\u77ed&#xff0c;\u5408\u7406\u7684\u89c4\u5212\u914d\u9001\u8def\u7ebf&#xff0c;\u5bf9\u4f01\u4e1a\u6765\u8bb2&#xff0c;\u4e00\u65b9\u9762&#xff0c;\u53ef\u4ee5\u907f\u514d\u4e0d\u5408\u7406\u7684\u914d\u9001\u8def\u7ebf&#xff0c;\u907f\u514d\u589e\u52a0\u65e0\u6548\u914d\u9001\u65f6\u957f&#xff0c;\u63d0\u9ad8\u6548\u7387&#xff0c;\u964d\u4f4e\u8d27\u635f&#xff0c;\u964d\u4f4e\u6210\u672c &#xff1b;\u53e6\u4e00\u65b9\u9762<\/p>\n","protected":false},"author":2,"featured_media":74779,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7643,81,56],"topic":[],"class_list":["post-74780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-7643","tag-python","tag-56"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/74780.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212\u524d\u8a00\u4e00\u3001\u914d\u9001\u8def\u5f84\u4f18\u5316\u6a21\u578b\u6784\u5efa1.\u6a21\u578b\u5047\u8bbe2.ortools\u6c42\u89e3\u8def\u5f84\u89c4\u5212OR-Tools \u5305\u542b\u4ee5\u4e0b\u89e3\u51b3\u65b9\u6848\u4eff\u771f\u603b\u7ed3\u524d\u8a00 \u4e0e\u4f20\u7edf\u7269\u6d41\u884c\u4e1a\u76f8\u540c&#xff0c;\u5f71\u54cd\u51b7\u94fe\u7269\u6d41\u4ea7\u54c1\u670d\u52a1\u8d28\u91cf\u7684\u6700\u5173\u952e\u56e0\u7d20\u5c31\u662f\u8fd0\u8f93\u8ddd \u79bb\u957f\u77ed&#xff0c;\u5408\u7406\u7684\u89c4\u5212\u914d\u9001\u8def\u7ebf&#xff0c;\u5bf9\u4f01\u4e1a\u6765\u8bb2&#xff0c;\u4e00\u65b9\u9762&#xff0c;\u53ef\u4ee5\u907f\u514d\u4e0d\u5408\u7406\u7684\u914d\u9001\u8def\u7ebf&#xff0c;\u907f\u514d\u589e\u52a0\u65e0\u6548\u914d\u9001\u65f6\u957f&#xff0c;\u63d0\u9ad8\u6548\u7387&#xff0c;\u964d\u4f4e\u8d27\u635f&#xff0c;\u964d\u4f4e\u6210\u672c &#xff1b;\u53e6\u4e00\u65b9\u9762\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/74780.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-10T07:49:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260210074913-698ae2f9c86d9.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/74780.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/74780.html\",\"name\":\"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-10T07:49:15+00:00\",\"dateModified\":\"2026-02-10T07:49:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/74780.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/74780.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/74780.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/74780.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212\u524d\u8a00\u4e00\u3001\u914d\u9001\u8def\u5f84\u4f18\u5316\u6a21\u578b\u6784\u5efa1.\u6a21\u578b\u5047\u8bbe2.ortools\u6c42\u89e3\u8def\u5f84\u89c4\u5212OR-Tools \u5305\u542b\u4ee5\u4e0b\u89e3\u51b3\u65b9\u6848\u4eff\u771f\u603b\u7ed3\u524d\u8a00 \u4e0e\u4f20\u7edf\u7269\u6d41\u884c\u4e1a\u76f8\u540c&#xff0c;\u5f71\u54cd\u51b7\u94fe\u7269\u6d41\u4ea7\u54c1\u670d\u52a1\u8d28\u91cf\u7684\u6700\u5173\u952e\u56e0\u7d20\u5c31\u662f\u8fd0\u8f93\u8ddd \u79bb\u957f\u77ed&#xff0c;\u5408\u7406\u7684\u89c4\u5212\u914d\u9001\u8def\u7ebf&#xff0c;\u5bf9\u4f01\u4e1a\u6765\u8bb2&#xff0c;\u4e00\u65b9\u9762&#xff0c;\u53ef\u4ee5\u907f\u514d\u4e0d\u5408\u7406\u7684\u914d\u9001\u8def\u7ebf&#xff0c;\u907f\u514d\u589e\u52a0\u65e0\u6548\u914d\u9001\u65f6\u957f&#xff0c;\u63d0\u9ad8\u6548\u7387&#xff0c;\u964d\u4f4e\u8d27\u635f&#xff0c;\u964d\u4f4e\u6210\u672c &#xff1b;\u53e6\u4e00\u65b9\u9762","og_url":"https:\/\/www.wsisp.com\/helps\/74780.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-10T07:49:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260210074913-698ae2f9c86d9.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/74780.html","url":"https:\/\/www.wsisp.com\/helps\/74780.html","name":"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-10T07:49:15+00:00","dateModified":"2026-02-10T07:49:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/74780.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/74780.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/74780.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6b63\u5411\u7269\u6d41\u8def\u5f84\u89c4\u5212"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/74780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=74780"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/74780\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/74779"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=74780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=74780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=74780"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=74780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}