جریان های شبکه
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
بسیاری از مشکلات در علوم کامپیوتر را می توان با یک نمودار متشکل از گره ها و پیوندهای بین آنها نشان داد. به عنوان مثال مشکلات جریان شبکه ، که شامل حمل و نقل کالا یا مواد در سراسر یک شبکه، مانند یک سیستم راه آهن است.
شما می توانید یک جریان شبکه را با یک نمودار نشان دهید که گره های آن شهرها و قوس های آن خطوط ریلی بین آنها هستند. (آنها را جریان می نامند زیرا خواص آنها شبیه به آبی است که از طریق شبکه ای از لوله ها جریان می یابد.)
یک محدودیت کلیدی در جریان شبکه این است که هر قوس دارای ظرفیت است - حداکثر مقداری که می تواند در یک دوره زمانی ثابت در سراسر قوس منتقل شود.
مشکل حداکثر جریان ، تعیین حداکثر مقدار کل است که می تواند در تمام قوس های شبکه منتقل شود، با توجه به محدودیت های ظرفیت.
اولین کسی که این مسئله را بررسی کرد، ریاضیدان روسی آن. تولستوی در دهه 1930 بود. نقشه زیر شبکه راه آهن واقعی را نشان می دهد که او می خواست حداکثر جریان را برای آن پیدا کند.

OR-Tools چندین حل کننده برای مشکلات جریان شبکه در کتابخانه های گراف خود فراهم می کند.
بخش های زیر نمونه هایی از مشکلات جریان شبکه را ارائه می دهند و نحوه حل آنها را نشان می دهند:
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-08-09 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-08-09 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eNetwork flow problems, like transporting goods across a railway system, can be represented by graphs with nodes and links, where links have capacity limits.\u003c/p\u003e\n"],["\u003cp\u003eThe maximum flow problem aims to find the maximum transportable amount across a network, respecting capacity constraints.\u003c/p\u003e\n"],["\u003cp\u003eOR-Tools offers various solvers in its graph libraries to address network flow problems like maximum flows and minimum cost flows.\u003c/p\u003e\n"],["\u003cp\u003eExample applications of network flows include assignments with individual workers or teams, solvable using OR-Tools.\u003c/p\u003e\n"]]],["Computer science utilizes graphs to model problems like network flow, where goods are transported across a network (e.g., railway). Each link (arc) in the network has a capacity, limiting transport volume. The maximum flow problem determines the highest total transport volume across all arcs, respecting these capacity constraints. This problem, first studied by A.N. Tolstoi, can be solved using solvers from the OR-Tools graph libraries, which are useful for problems such as maximum flows, minimum cost flows, and assignment problems.\n"],null,["# Network Flows\n\nMany problems in computer science can be represented by a graph consisting of\nnodes and links between them. Examples are **network flow** problems, which\ninvolve transporting goods or material across a network, such as a railway system.\n\nYou can represent a network flow by a graph whose nodes are cities and whose\narcs are rail lines between them. (They're called **flows** because their\nproperties are similar to those of water flowing through a network of pipes.)\n\nA key constraint in network flows is that each arc has a **capacity** ---\nthe maximum amount that can be transported across the arc in a fixed period of\ntime.\n\nThe **maximum flow problem** is to determine the maximum total amount that can\nbe transported across all arcs in the network, subject to the capacity\nconstraints.\n\nThe first person to study this problem was the Russian mathematician A.N.\nTolstoi, in the 1930s. The map below shows the actual railway network for which\nhe wanted to find a maximum flow.\n\nOR-Tools provides several solvers for network flow problems in its\n[graph](/optimization/reference/graph) libraries.\n\nThe following sections present examples of network flow problems and show how to\nsolve them:\n\n- [Maximum Flows](/optimization/flow/maxflow)\n- [Minimum Cost Flows](/optimization/flow/mincostflow)\n- [Assignment as a Minimum Cost Flows](/optimization/flow/assignment_min_cost_flow#example)\n- [Assignment with Teams of Workers](/optimization/flow/assignment_min_cost_flow#teams-workers)"]]