অ্যাসাইনমেন্ট
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সবচেয়ে সুপরিচিত কম্বিনেটরিয়াল অপ্টিমাইজেশান সমস্যাগুলির মধ্যে একটি হল অ্যাসাইনমেন্ট সমস্যা । এখানে একটি উদাহরণ দেওয়া হল: ধরুন একদল কর্মীদের একটি সেট কাজ সম্পাদন করতে হবে, এবং প্রতিটি কর্মী এবং কাজের জন্য, কর্মীকে কাজের জন্য অর্পণ করার জন্য একটি খরচ আছে। সমস্যা হল প্রতিটি কর্মীকে সর্বাধিক একটি কাজের জন্য বরাদ্দ করা, যেখানে কোনও দুইজন কর্মী একই কাজ সম্পাদন করে না, মোট খরচ কমিয়ে দেয়।
আপনি নীচের গ্রাফ দ্বারা এই সমস্যাটি কল্পনা করতে পারেন, যেখানে চারজন কর্মী এবং চারটি কাজ রয়েছে। প্রান্তগুলি কাজগুলিতে কর্মীদের বরাদ্দ করার সমস্ত সম্ভাব্য উপায় উপস্থাপন করে। প্রান্তের লেবেলগুলি হল শ্রমিকদের কাজের জন্য বরাদ্দ করার খরচ।

একটি অ্যাসাইনমেন্ট প্রান্তগুলির একটি উপসেটের সাথে মিলে যায়, যেখানে প্রতিটি শ্রমিকের সর্বাধিক একটি প্রান্ত থাকে এবং একই কাজ করার জন্য কোন দুই শ্রমিকের প্রান্ত থাকে না। একটি সম্ভাব্য অ্যাসাইনমেন্ট নীচে দেখানো হয়েছে.

অ্যাসাইনমেন্টের মোট খরচ হল 70 + 55 + 95 + 45 = 265
পরবর্তী বিভাগটি দেখায় কিভাবে এমআইপি সল্ভার এবং সিপি-স্যাট সলভার ব্যবহার করে একটি অ্যাসাইনমেন্ট সমস্যা সমাধান করা যায়।
OR-Tools অ্যাসাইনমেন্ট সমস্যা সমাধানের জন্য আরও কয়েকটি সরঞ্জাম সরবরাহ করে, যা MIP বা CP সমাধানকারীদের চেয়ে দ্রুত হতে পারে:
যাইহোক, এই সরঞ্জামগুলি কেবলমাত্র সাধারণ ধরণের অ্যাসাইনমেন্ট সমস্যার সমাধান করতে পারে। তাই সাধারণ সমাধানকারীদের জন্য যারা বিভিন্ন ধরণের সমস্যা পরিচালনা করতে পারে (এবং বেশিরভাগ অ্যাপ্লিকেশনের জন্য যথেষ্ট দ্রুত), আমরা MIP এবং CP-SAT সমাধানকারীদের সুপারিশ করি।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-08-09 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-08-09 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe assignment problem focuses on optimally assigning workers to tasks to minimize the total cost, where each worker is assigned at most one task and no task is assigned to multiple workers.\u003c/p\u003e\n"],["\u003cp\u003eThis problem can be visualized using a graph where edges represent worker-task assignments and edge labels represent the cost of each assignment.\u003c/p\u003e\n"],["\u003cp\u003eOR-Tools offers various solvers like MIP, CP-SAT, Linear Sum Assignment, and Minimum Cost Flow, but MIP and CP-SAT are recommended for their versatility and efficiency in handling a broader range of assignment problems.\u003c/p\u003e\n"]]],["The content describes the assignment problem, a combinatorial optimization challenge where workers are assigned to tasks to minimize total cost. Each worker is assigned to at most one task, and each task is done by at most one worker. The example shows how the problem can be represented graphically, with edges representing possible assignments and their costs. The total cost is calculated by adding up the costs of the assigned edges. OR-Tools offer multiple tools to solve such problems, among which the MIP and CP-SAT are the most general.\n"],null,["# Assignment\n\nOne of the most well-known combinatorial optimization problems is the\n[*assignment problem*](https://en.wikipedia.org/wiki/Assignment_problem). Here's an example: suppose a group of workers needs to perform a set of tasks, and for\neach worker and task, there is a cost for assigning the worker to the task.\nThe problem is to assign each worker to at most one task, with no two workers\nperforming the same task, while minimizing the total cost.\n\nYou can visualize this problem by the graph below, in which there are four\nworkers and four tasks. The edges represent all possible ways to assign workers\nto tasks. The labels on the edges are the costs of assigning workers to tasks.\n\nAn assignment corresponds to a subset of the edges, in which each worker has at\nmost one edge leading out, and no two workers have edges leading to the same\ntask. One possible assignment is shown below.\n\nThe total cost of the assignment is `70 + 55 + 95 + 45 = 265`.\n\nThe [next section](/optimization/assignment/assignment_example) shows how solve\nan assignment problem, using both the MIP solver and the CP-SAT solver.\n\n### Other tools for solving assignment problems\n\nOR-Tools also provides a couple of other tools for solving assignment problems,\nwhich can be faster than the MIP or CP solvers:\n\n- [Linear sum assignment solver](/optimization/assignment/linear_assignment)\n- [Minimum cost flow solver](/optimization/flow/assignment_min_cost_flow)\n\nHowever, these tools can only solve simple types of assignment problems.\nSo for general solvers that can handle a wide variety of problems (and are fast\nenough for most applications), we recommend the MIP and CP-SAT solvers."]]