[[["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."],[[["\u003cp\u003e\u003ccode\u003eDoubleLinearExpr\u003c/code\u003e in C++ allows the construction and manipulation of linear expressions involving both integer and boolean variables with double-precision coefficients.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to add terms (\u003ccode\u003eAddTerm\u003c/code\u003e) or other linear expressions (\u003ccode\u003eAddExpression\u003c/code\u003e) to the current expression, building complex expressions.\u003c/p\u003e\n"],["\u003cp\u003eIt supports creating expressions from single \u003ccode\u003eBoolVar\u003c/code\u003e, \u003ccode\u003eIntVar\u003c/code\u003e, or a constant (\u003ccode\u003eDoubleLinearExpr\u003c/code\u003e constructors), as well as constructing sums or weighted sums of variables with the static \u003ccode\u003eSum\u003c/code\u003e and \u003ccode\u003eWeightedSum\u003c/code\u003e methods.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows the inspection of the expression through methods like \u003ccode\u003ecoefficients\u003c/code\u003e, \u003ccode\u003econstant\u003c/code\u003e, \u003ccode\u003evariables\u003c/code\u003e, and \u003ccode\u003eIsConstant\u003c/code\u003e, which respectively return the coefficients, the constant term, the vector of variables indexes and check if the expression has no variable.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDebugString\u003c/code\u003e method allows the user to get a debug string of the current instance, providing a means of error checking.\u003c/p\u003e\n"]]],["The `DoubleLinearExpr` class in C++ allows the construction and manipulation of linear expressions. Key actions include adding terms or expressions using `AddTerm` and `AddExpression`. You can construct expressions from `BoolVar`, `IntVar`, or constants. `Sum` and `WeightedSum` methods enable creating expressions from lists of variables. The class provides access to coefficients via `coefficients`, variable indices via `variables`, and the constant term via `constant`. It also determines if an expression has variables with `IsConstant`.\n"],null,[]]