[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["`LinearExpr` represents a linear expression in the CP-SAT solver, which can be constructed from variables, constants, or combinations thereof."],["It provides methods for accessing the coefficients, variables, and constant term of the expression."],["Static methods like `Sum`, `Term`, and `WeightedSum` offer convenient ways to build complex linear expressions."],["`LinearExpr` objects can be converted to and from their protocol buffer representation using `FromProto` and `DebugString`."],["You can check if an expression is constant using `IsConstant`."]]],["The `LinearExpr` class in C++ provides methods to construct and manipulate linear expressions. Key actions include constructing expressions from Boolean or integer variables, constants, or their proto representations. It supports calculating sums and weighted sums of variables and retrieving coefficients, the constant term, and variable indices. Methods are available to check if an expression is constant. It can also create expressions based on a variable times a coefficient and return a debug string.\n"]]