État de la solution. Avant de résoudre un problème, l'état est NOT_SOLVED. Ensuite, il prend l'une des autres valeurs en fonction de la réussite de la recherche d'une solution et de son caractère optimal.
Pour appeler un énumération, vous devez appeler sa classe parente, son nom et sa propriété. Par exemple,
LinearOptimizationService.Status.OPTIMAL.
Propriétés
Propriété
Type
Description
OPTIMAL
Enum
État lorsque la solution optimale a été trouvée.
FEASIBLE
Enum
État lorsque qu'une solution réalisable (mais pas nécessairement optimale) a été trouvée.
INFEASIBLE
Enum
État lorsque le modèle actuel n'est pas réalisable (il n'a pas de solution).
UNBOUNDED
Enum
État lorsque le modèle actuel n'est pas lié.
ABNORMAL
Enum
État lorsque la solution n'a pas été trouvée pour des raisons inattendues.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/12/02 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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"]]