Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: cp_model_objective
Note: This documentation is automatically generated.
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."],[[["\u003cp\u003eThe \u003ccode\u003ecp_model_objective\u003c/code\u003e provides functionalities related to the objective function in a Constraint Programming (CP) model.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the \u003ccode\u003eEncodeObjectiveAsSingleVariable\u003c/code\u003e function, which transforms the objective expression into a single variable within the CP model.\u003c/p\u003e\n"]]],["The documentation describes the `EncodeObjectiveAsSingleVariable` function within the C++ `cp_model_objective` context. This function, which has a `void` return type, takes a `CpModelProto*` as an argument. Its purpose is to encode the objective of a Constraint Programming model as a single variable, as inferred by its name. No further details about the implementation or usage are given in the provided excerpt.\n"],null,["# cp_model_objective\n\nC++ Reference: cp_model_objective\n=================================\n\n\nNote: This documentation is automatically generated.\n\n| Function | Type | Arguments | Comments |\n|------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|-----------|----------|\n| [`EncodeObjectiveAsSingleVariable`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_objective.h#L35) | Return type: `void ` Arguments: `CpModelProto* cp_model` \u003cbr /\u003e |"]]