[[["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\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 |"]]