מידע על OR-Tools
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
OR-Tools היא תוכנת קוד פתוח לאופטימיזציה משולבת, שמטרתה למצוא את הפתרון הטוב ביותר לבעיה מתוך קבוצה גדולה של פתרונות אפשריים. הנה כמה דוגמאות לבעיות ש-OR-Tools פותר:
- ניתוב כלי רכב: איתור מסלולים אופטימליים לצי הרכבים שאוספים ומוסרים חבילות בהתאם למגבלות (למשל "במשאית הזו לא יכולים לעמוד במשקל
יותר מ-10,000 ק"ג" או "יש לספק את כל המשלוחים בתוך שעתיים").
- תזמון: מוצאים את לוח הזמנים האופטימלי לקבוצה מורכבת של משימות, שאת חלק מהן צריך לבצע לפני אחרים, על גבי קבוצה קבועה של מחשבים או משאבים אחרים.
- סידור בקונטיינרים (bin packing): אריזות של כמה שיותר אובייקטים בגדלים שונים בקונטיינרים עם קיבולת מקסימלית.
ברוב המקרים, לבעיות כאלה יש מספר גדול של פתרונות אפשריים - יותר מדי ממחשבים לחיפוש.
כדי להתגבר על הבעיה הזו, המערכת של OR-Tools משתמשת באלגוריתמים מתקדמים כדי לצמצם את מערך החיפוש ולמצוא פתרון אופטימלי (או קרוב לאופטימלי).
OR-Tools כולל פתרונות עבור:
- אילוצים
- קבוצה של טכניקות למציאת פתרונות אפשריים לבעיה שמתבטאת כאילוצים (למשל, אי אפשר להשתמש בחדר לשני אירועים בו-זמנית, או שהמרחק בין היבשות חייב להיות נמוך מאורך הצינור, או שלא ניתן להקליט יותר מחמש תוכניות טלוויזיה בו-זמנית).
- הטמעה לינארית ושילוב של מספר שלם
- הכלי לאופטימציה של Glop מוצא את הערך האופטימלי של פונקציה אובייקטיבית לינארית, בהינתן קבוצה של אי-שוויון לינארי כאילוצים (למשל, הקצאת אנשים למשרות או מציאת ההקצאה הטובה ביותר של קבוצת משאבים תוך מזעור העלות). גם Glop ותוכנת התכנות המשולבת מספר שלם SCIP זמינות גם דרך שירות האופטימיזציה לסקריפטים של Google Apps.
- ניתוב רכב
- ספרייה מיוחדת לזיהוי המסלולים הכי טובים של כלי רכב בגלל מגבלות.
- אלגוריתמים של תרשים
- קוד לחיפוש המסלולים הקצרים ביותר בתרשימים, בתהליכי עלות מינימלית, בתהליכים מקסימליים ובהקצאות סכום לינארי.
בקטע הבא תוכלו להתחיל לעבוד במהירות עם OR-Tools.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-09 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-09 (שעון UTC)."],[[["\u003cp\u003eOR-Tools is an open source software that helps find the best solution among many possibilities for problems like vehicle routing, scheduling, and bin packing.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes advanced algorithms to efficiently search for optimal or near-optimal solutions without having to examine every single possibility.\u003c/p\u003e\n"],["\u003cp\u003eOR-Tools offers various solvers including constraint programming, linear and mixed-integer programming, vehicle routing, and graph algorithms for diverse problem-solving needs.\u003c/p\u003e\n"],["\u003cp\u003eThese solvers can tackle complex scenarios with limitations like resource capacities, scheduling dependencies, and route optimization.\u003c/p\u003e\n"]]],["OR-Tools tackles combinatorial optimization problems, aiming to find the best solution from numerous possibilities. It addresses challenges like vehicle routing, scheduling, and bin packing. The software uses advanced algorithms to efficiently narrow the search for optimal solutions. It features solvers for Constraint Programming, handling problems with constraints, Linear and Mixed-Integer Programming for optimizing linear functions, specialized Vehicle Routing, and Graph Algorithms for path and flow calculations. OR-Tools can help in the process of finding feasible or optimal solutions.\n"],null,["# About OR-Tools\n\nOR-Tools is open source software for *combinatorial optimization*, which seeks\nto find the best solution to a problem out of a very large set of possible\nsolutions. Here are some examples of problems that OR-Tools solves:\n\n- Vehicle routing: Find optimal routes for vehicle fleets that pick up and deliver packages given constraints (e.g., \"this truck can't hold more than 20,000 pounds\" or \"all deliveries must be made within a two-hour window\").\n- Scheduling: Find the optimal schedule for a complex set of tasks, some of which need to be performed before others, on a fixed set of machines, or other resources.\n- Bin packing: Pack as many objects of various sizes as possible into a fixed number of bins with maximum capacities.\n\nIn most cases, problems like these have a vast number of possible\nsolutions---too many for a computer to search them all.\nTo overcome this, OR-Tools uses state-of-the-art algorithms to narrow down the\nsearch set, in order to find an optimal (or close to optimal) solution.\n\nOR-Tools includes solvers for:\n\n[Constraint Programming](/optimization/cp)\n: A set of techniques for finding feasible solutions to a problem expressed as\n *constraints* (e.g., a room can't be used for two events simultaneously, or the\n distance to the crops must be less than the length of the hose, or no more than\n five TV shows can be recorded at once).\n\n[Linear and Mixed-Integer Programming](/optimization/lp)\n: The [Glop](/optimization/lp/glop) linear optimizer finds the optimal value of\n a linear objective function, given a set of linear inequalities as constraints\n (e.g., assigning people to jobs, or finding the best allocation of a set of\n resources while minimizing cost). Glop and the mixed-integer programming\n software [SCIP](http://scip.zib.de) are also available via the Google Apps\n Script [Optimization Service](/apps-script/reference/optimization).\n\n[Vehicle Routing](/optimization/routing)\n: A specialized library for identifying best vehicle routes given constraints.\n\n[Graph Algorithms](/optimization/flow)\n: Code for finding shortest paths in graphs, min-cost flows, max flows, and\n linear sum assignments.\n\nThe [next section](/optimization/introduction/get_started) will get you started\nusing OR-Tools quickly."]]