[[["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\u003ePseudo costs in C++ represent the average change in objective bounds per unit change in variable bounds, aiding in optimization decisions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePseudoCosts\u003c/code\u003e class helps manage and update these costs, providing methods to retrieve the variable with the best pseudo cost (\u003ccode\u003eGetBestDecisionVar\u003c/code\u003e) and update costs based on bound changes (\u003ccode\u003eUpdateCost\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eWhile primarily used internally, methods like \u003ccode\u003eGetCost\u003c/code\u003e and \u003ccode\u003eGetRecordings\u003c/code\u003e offer insights into individual variable pseudo costs and recording frequency, useful for testing and analysis.\u003c/p\u003e\n"]]],["The `PseudoCosts` class in C++ calculates the pseudo cost of variables, defined as the average change in objective bounds per unit change in variable bounds. Key actions include: `UpdateCost`, which updates pseudo costs based on variable bound changes and objective bound improvement. `GetBestDecisionVar` retrieves the unfixed variable with the best reliable pseudo cost. `GetCost` and `GetRecordings` provide access to a variable's pseudo cost and recording count, respectively, used primarily for testing.\n"],null,["# PseudoCosts\n\nC++ Reference: class PseudoCosts\n================================\n\n\nNote: This documentation is automatically generated.\nPseudo cost of a variable is measured as average observed change in the objective bounds per unit change in the variable bounds.\n\n| Method ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`GetBestDecisionVar`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/pseudo_costs.h#L48) | Return type: `IntegerVariable ` Returns the variable with best reliable pseudo cost that is not fixed. |\n| [`GetCost`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/pseudo_costs.h#L51) | Return type: `double ` Arguments: `IntegerVariable var` Returns the pseudo cost of given variable. Currently used for testing only. |\n| [`GetRecordings`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/pseudo_costs.h#L58) | Return type: `int ` Arguments: `IntegerVariable var` Returns the number of recordings of given variable. Currently used for testing only. |\n| [`PseudoCosts`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/pseudo_costs.h#L41) | Return type: `explicit ` Arguments: `Model* model` \u003cbr /\u003e |\n| [`UpdateCost`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/pseudo_costs.h#L44) | Return type: `void ` Arguments: `const std::vector\u003cVariableBoundChange\u003e& bound_changes, IntegerValue obj_bound_improvement` Updates the pseudo costs for the given decision. |"]]