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() 尚未呼叫時的狀態。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-02 (世界標準時間)。
[null,null,["上次更新時間:2024-12-02 (世界標準時間)。"],[[["The `Status` property indicates the state of a Linear Optimization solution, initially set to `NOT_SOLVED`."],["After attempting to solve the problem, the status changes to reflect if a solution was found and if it is optimal (`OPTIMAL`, `FEASIBLE`, `INFEASIBLE`, `UNBOUNDED`, `ABNORMAL`, `MODEL_INVALID`)."],["Accessing the status enum values is done using the format: `LinearOptimizationService.Status.[property name]`, such as `LinearOptimizationService.Status.OPTIMAL`."]]],[]]