[[["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\u003eModel\u003c/code\u003e class in C++ provides a way to manage and interact with optimization models.\u003c/p\u003e\n"],["\u003cp\u003eIt offers methods for adding, creating, getting, and modifying model components.\u003c/p\u003e\n"],["\u003cp\u003eUsers can register and take ownership of elements within the model.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for initialization and a destructor.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003eAdd\u003c/code\u003e, \u003ccode\u003eGet\u003c/code\u003e, and \u003ccode\u003eMutable\u003c/code\u003e allow flexible manipulation of model data.\u003c/p\u003e\n"]]],["The `Model` class in C++ provides methods for managing data and objects. Key actions include: `Add` to add data using a function; `Create` and `GetOrCreate` to manage object creation; `Get` to retrieve data or const pointers; `Mutable` to retrieve mutable pointers; `Register` to register objects; `TakeOwnership` to transfer ownership. It also supports constructor (`Model`), destructor (`~Model`), and the ability to set and retrieve a name via the `Name` method.\n"],null,["# Model\n\nC++ Reference: class Model\n==========================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|------------------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| [`Add`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L85) | Return type: `T ` Arguments: `std::function\u003cT(Model*)\u003e f` \u003cbr /\u003e |\n| [`Create`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L163) | Return type: `T* ` \u003cbr /\u003e |\n| [`Get`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L91) | Return type: `T ` Arguments: `std::function\u003cT(const Model&)\u003e f` \u003cbr /\u003e |\n| [`Get`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L131) | Return type: `const T* ` \u003cbr /\u003e |\n| [`GetOrCreate`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L110) | Return type: `T* ` \u003cbr /\u003e |\n| [`Model`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L44) | \u003cbr /\u003e |\n| [`~Model`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L46) | \u003cbr /\u003e |\n| [`Model`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L58) | Return type: `explicit ` Arguments: `std::string name` \u003cbr /\u003e |\n| [`Mutable`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L141) | Return type: `T* ` \u003cbr /\u003e |\n| [`Name`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L181) | Return type: `const std::string& ` \u003cbr /\u003e |\n| [`Register`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L175) | Return type: `void ` Arguments: `T* non_owned_class` \u003cbr /\u003e |\n| [`TakeOwnership`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/model.h#L152) | Return type: `T* ` Arguments: `T* t` \u003cbr /\u003e |"]]