Enum Status
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
स्टेटस
समस्या के हल की स्थिति. किसी समस्या को हल करने से पहले, उसका स्टेटस NOT_SOLVED
होगा. इसके बाद, यह किसी भी दूसरी वैल्यू पर सेट हो सकता है. यह इस बात पर निर्भर करता है कि समस्या हल हो गई है या नहीं और उसका समाधान सही है या नहीं.
किसी एनम को कॉल करने के लिए, उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल किया जाता है. उदाहरण के लिए,
LinearOptimizationService.Status.OPTIMAL
.
प्रॉपर्टी
प्रॉपर्टी | टाइप | ब्यौरा |
OPTIMAL | Enum | सबसे सही समाधान मिलने पर स्टेटस. |
FEASIBLE | Enum | जब कोई समाधान मिल जाता है, तो यह स्टेटस दिखता है. हालांकि, यह ज़रूरी नहीं है कि यह सबसे सही समाधान हो. |
INFEASIBLE | Enum | जब मौजूदा मॉडल काम न कर रहा हो (इसका कोई समाधान न हो), तो स्थिति. |
UNBOUNDED | Enum | मौजूदा मॉडल अनबाउंड होने पर स्टेटस. |
ABNORMAL | Enum | जब किसी अनचाहे कारण से समस्या का हल नहीं मिल पाता है, तब स्टेटस. |
MODEL_INVALID | Enum | मॉडल अमान्य होने पर स्टेटस. |
NOT_SOLVED | Enum | जब LinearOptimizationEngine.solve() को अब तक कॉल नहीं किया गया है, तब का स्टेटस. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003eStatus\u003c/code\u003e property indicates the state of a Linear Optimization solution, initially set to \u003ccode\u003eNOT_SOLVED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAfter attempting to solve the problem, the status changes to reflect if a solution was found and if it is optimal (\u003ccode\u003eOPTIMAL\u003c/code\u003e, \u003ccode\u003eFEASIBLE\u003c/code\u003e, \u003ccode\u003eINFEASIBLE\u003c/code\u003e, \u003ccode\u003eUNBOUNDED\u003c/code\u003e, \u003ccode\u003eABNORMAL\u003c/code\u003e, \u003ccode\u003eMODEL_INVALID\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eAccessing the status enum values is done using the format: \u003ccode\u003eLinearOptimizationService.Status.[property name]\u003c/code\u003e, such as \u003ccode\u003eLinearOptimizationService.Status.OPTIMAL\u003c/code\u003e.\u003c/p\u003e\n"]]],["The document outlines the `Status` of a solution within a system, initially `NOT_SOLVED` before any problem-solving attempt. After solving, the status changes to reflect the outcome. Possible statuses include `OPTIMAL` (best solution found), `FEASIBLE` (a solution exists, but may not be the best), `INFEASIBLE` (no solution), `UNBOUNDED` (model is unlimited), `ABNORMAL` (failed for unexpected reasons), and `MODEL_INVALID` (invalid model). Enums are accessed using `ParentClass.Name.Property`, like `LinearOptimizationService.Status.OPTIMAL`.\n"],null,["# Enum Status\n\nStatus\n\nStatus of the solution. Before solving a problem the status will be `NOT_SOLVED`;\nafterwards it will take any of the other values depending if it successfully found a solution and\nif the solution is optimal.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nLinearOptimizationService.Status.OPTIMAL`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------------|--------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `OPTIMAL` | `Enum` | Status when an optimal solution has been found. |\n| `FEASIBLE` | `Enum` | Status when a feasible (not necessarily optimal) solution has been found. |\n| `INFEASIBLE` | `Enum` | Status when the current model is unfeasible (has no solution). |\n| `UNBOUNDED` | `Enum` | Status when the current model is unbound. |\n| `ABNORMAL` | `Enum` | Status when it failed to find a solution for unexpected reasons. |\n| `MODEL_INVALID` | `Enum` | Status when the model is invalid. |\n| `NOT_SOLVED` | `Enum` | Status when [LinearOptimizationEngine.solve()](/apps-script/reference/optimization/linear-optimization-engine#solve()) has not been called yet. |"]]