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() がまだ呼び出されていない場合のステータス。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-02 UTC。
[null,null,["最終更新日 2024-12-02 UTC。"],[[["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`."]]],["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"]]