[[["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\u003e\u003ccode\u003eMPObjective\u003c/code\u003e is a C++ class used to define the objective function in linear programming problems.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to set the optimization direction (maximize or minimize) and to build the objective function using linear expressions.\u003c/p\u003e\n"],["\u003cp\u003eUsers can manipulate the objective function by adding or setting coefficients for variables, and by defining a constant offset.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers access to information about the objective, such as its current value, best bound, and individual terms.\u003c/p\u003e\n"]]],["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"],null,[]]