Đối tượng lưu trữ một quy tắc ràng buộc tuyến tính ở dạng lowerBound ≤ Sum(a(i) x(i)) ≤ upperBound, trong đó lowerBound và upperBound là hằng số, a(i) là hệ số hằng số và x(i) là biến (biến chưa xác định).
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-12-03 UTC."],[[["The Linear Optimization Service enables the modeling and resolution of linear and mixed-integer linear programs within Apps Script."],["It provides classes like `LinearOptimizationConstraint`, `LinearOptimizationEngine`, and `LinearOptimizationSolution` to define, solve, and retrieve optimization results."],["`LinearOptimizationEngine` allows adding variables, constraints, setting objective functions (maximization or minimization), and solving the linear program."],["Solutions can be evaluated using methods like `getObjectiveValue`, `getStatus`, and `getVariableValue` to understand the optimization outcome."],["The service utilizes various statuses (e.g., `OPTIMAL`, `FEASIBLE`, `INFEASIBLE`) and variable types (`INTEGER`, `CONTINUOUS`) to represent the solution state and variable characteristics."]]],["The linear optimization service models and solves linear and mixed-integer linear programs. Key actions include: creating an engine (`LinearOptimizationEngine`), adding variables with bounds and types, adding constraints to the model, setting the objective function's direction (maximize or minimize), and setting coefficients for variables in the objective function and constraints. The `solve()` method then computes the solution. The `LinearOptimizationSolution` object contains methods to determine solution status, objective value, and variable values.\n"]]