[[["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\u003eLinearExpr\u003c/code\u003e in C++ represents a linear expression within the OR-Tools library and can be constructed from constants, variables, or other expressions.\u003c/p\u003e\n"],["\u003cp\u003eSeveral methods are available for interacting with \u003ccode\u003eLinearExpr\u003c/code\u003e, including accessing offset value, solution value, terms, and converting it to a string.\u003c/p\u003e\n"],["\u003cp\u003eIt provides functionalities such as negation of variables using \u003ccode\u003eNotVar\u003c/code\u003e and accessing underlying terms and coefficients through the \u003ccode\u003eterms\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLinearExpr\u003c/code\u003e is essential for building and manipulating constraints and objectives in mathematical optimization models within the OR-Tools framework.\u003c/p\u003e\n"]]],["The `LinearExpr` class in C++ offers methods for linear expressions. `LinearExpr` constructors accept a constant (`double`) or an `MPVariable`. `NotVar` creates a `LinearExpr`. `offset` returns a `double`, `terms` returns a map of `MPVariable` to `double`, and `SolutionValue` also returns a `double`. `ToString` outputs a `std::string`. These methods allow for the construction, manipulation, and examination of linear expressions within the OR-Tools library.\n"],null,[]]