Enum Status
Estado
Estado de la solución. Antes de resolver un problema, el estado será NOT_SOLVED
. Luego, tomará cualquiera de los otros valores según si encontró una solución de forma correcta y si la solución es óptima.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
LinearOptimizationService.Status.OPTIMAL
.
Propiedades
Propiedad | Tipo | Descripción |
OPTIMAL | Enum | Estado cuando se encuentra una solución óptima. |
FEASIBLE | Enum | Es el estado que se muestra cuando se encuentra una solución factible (no necesariamente óptima). |
INFEASIBLE | Enum | Es el estado cuando el modelo actual no es viable (no tiene solución). |
UNBOUNDED | Enum | Es el estado cuando el modelo actual no está vinculado. |
ABNORMAL | Enum | Es el estado que se muestra cuando no se encuentra una solución por motivos inesperados. |
MODEL_INVALID | Enum | Es el estado cuando el modelo no es válido. |
NOT_SOLVED | Enum | Es el estado cuando aún no se llamó a LinearOptimizationEngine.solve() . |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-12-02 (UTC)
[null,null,["Última actualización: 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"]]