Enum VariableType
变量类型
引擎创建的变量的类型。
如需调用枚举,您可以调用其父类、名称和属性。例如
LinearOptimizationService.VariableType.INTEGER
。
属性
属性 | 类型 | 说明 |
INTEGER | Enum | 只能采用整数值的变量类型。 |
CONTINUOUS | Enum | 可接受任何实值的变量类型。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):2024-12-02。"],[[["`VariableType` determines the kind of variables used in the Linear Optimization service."],["To specify a variable type, use the format: `LinearOptimizationService.VariableType.{property}`, for example, `LinearOptimizationService.VariableType.INTEGER` for integer variables."],["Two variable types are available: `INTEGER` for whole numbers and `CONTINUOUS` for any real number."]]],["The `VariableType` defines the nature of variables used within the engine. It can be accessed via `LinearOptimizationService.VariableType`. It offers two properties: `INTEGER`, representing variables limited to integer values, and `CONTINUOUS`, representing variables that can assume any real value. Both `INTEGER` and `CONTINUOUS` are enumerated types.\n"]]