Stay organized with collections
Save and categorize content based on your preferences.
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."],[],["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,[]]