Enum Status
Stato
Stato della soluzione. Prima di risolvere un problema, lo stato sarà NOT_SOLVED
;
in seguito assumerà uno degli altri valori a seconda che sia stata trovata una soluzione e se la soluzione è ottimale.
Per chiamare un enum, devi chiamare la relativa classe, il nome e la proprietà di base. Ad esempio,
LinearOptimizationService.Status.OPTIMAL
.
Proprietà
Proprietà | Tipo | Descrizione |
OPTIMAL | Enum | Stato quando è stata trovata una soluzione ottimale. |
FEASIBLE | Enum | Stato quando è stata trovata una soluzione praticabile (non necessariamente ottimale). |
INFEASIBLE | Enum | Stato quando il modello corrente non è fattibile (non ha soluzione). |
UNBOUNDED | Enum | Stato quando il modello corrente non è vincolato. |
ABNORMAL | Enum | Stato quando non è stato possibile trovare una soluzione per motivi imprevisti. |
MODEL_INVALID | Enum | Stato quando il modello non è valido. |
NOT_SOLVED | Enum | Stato quando LinearOptimizationEngine.solve() non è stato ancora chiamato. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-12-02 UTC.
[null,null,["Ultimo aggiornamento 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"]]