C++ Reference: class LinearExpr
Note: This documentation is automatically generated.
Method |
LinearExpr | |
LinearExpr | Arguments: double constant Possible implicit conversions are intentional.
|
LinearExpr | Arguments: const MPVariable* var |
NotVar | Return type: static LinearExpr Arguments: LinearExpr var |
offset | Return type: double |
SolutionValue | Return type: double |
terms | Return type: const absl::flat_hash_map<const MPVariable*, double>& |
ToString | Return type: std::string |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["`LinearExpr` in C++ represents a linear expression within the OR-Tools library and can be constructed from constants, variables, or other expressions."],["Several methods are available for interacting with `LinearExpr`, including accessing offset value, solution value, terms, and converting it to a string."],["It provides functionalities such as negation of variables using `NotVar` and accessing underlying terms and coefficients through the `terms` method."],["`LinearExpr` is essential for building and manipulating constraints and objectives in mathematical optimization models within the OR-Tools framework."]]],[]]