Enum VariableType
סוגהמשתנה
סוג המשתנים שנוצרו על ידי המנוע.
כדי לקרוא למאפיין enum, צריך לקרוא לכיתה ההורה, לשם ולנכס שלו. לדוגמה,
LinearOptimizationService.VariableType.INTEGER
.
מאפיינים
נכס | סוג | תיאור |
INTEGER | Enum | סוג משתנה שיכול לקבל רק ערכים שלמים. |
CONTINUOUS | Enum | סוג משתנה שיכול לקבל כל ערך אמיתי. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]