C++ Reference: class MPObjective
Note: This documentation is automatically generated.
A class to express a linear objective.Method | |
---|---|
AddLinearExpr | Return type: Arguments: Adds linear_expr to the current objective, does not change the direction. |
BestBound | Return type: |
Clear | Return type: |
GetCoefficient | Return type: Arguments: |
maximization | Return type: Is the optimization direction set to maximize? |
MaximizeLinearExpr | Return type: Arguments: Resets the current objective to maximize linear_expr. |
minimization | Return type: Is the optimization direction set to minimize? |
MinimizeLinearExpr | Return type: Arguments: Resets the current objective to minimize linear_expr. |
offset | Return type: Gets the constant term in the objective. |
OptimizeLinearExpr | Return type: Arguments: |
SetCoefficient | Return type: Arguments: |
SetMaximization | Return type: Sets the optimization direction to maximize. |
SetMinimization | Return type: Sets the optimization direction to minimize. |
SetOffset | Return type: Arguments: Sets the constant term in the objective. |
SetOptimizationDirection | Return type: Arguments: Sets the optimization direction (maximize: true or minimize: false). |
terms | Return type: |
Value | Return type: |