[[["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."],[[["`MPObjective` is a C++ class used to define the objective function in linear programming problems."],["It provides methods to set the optimization direction (maximize or minimize) and to build the objective function using linear expressions."],["Users can manipulate the objective function by adding or setting coefficients for variables, and by defining a constant offset."],["The class offers access to information about the objective, such as its current value, best bound, and individual terms."]]],["The `MPObjective` class in C++ is designed for linear objectives. Key actions include: adding (`AddLinearExpr`), maximizing (`MaximizeLinearExpr`, `SetMaximization`), minimizing (`MinimizeLinearExpr`, `SetMinimization`), and optimizing (`OptimizeLinearExpr`) linear expressions. It supports setting and getting coefficients (`SetCoefficient`, `GetCoefficient`), managing a constant term (`SetOffset`, `offset`), clearing the objective (`Clear`), and retrieving the best bound (`BestBound`, `Value`). You can also query if the direction is set to minimize or maximize. Also it offers a method to get the terms (`terms`).\n"]]