Enum VariableType
ประเภทตัวแปร
ประเภทตัวแปรที่เครื่องมือสร้าง
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
LinearOptimizationService.VariableType.INTEGER
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
INTEGER | Enum | ประเภทตัวแปรที่รับเฉพาะค่าจำนวนเต็ม |
CONTINUOUS | Enum | ประเภทตัวแปรที่รับค่าจริงได้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-02 UTC
[null,null,["อัปเดตล่าสุด 2024-12-02 UTC"],[[["`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"]]