Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class MPVariable
Note: This documentation is automatically generated.
The class for variables of a Mathematical Programming (MP) model.
Method |
basis_status | Return type: MPSolver::BasisStatus |
branching_priority | Return type: int |
index | Return type: int Returns the index of the variable in the MPSolver::variables_.
|
integer | Return type: bool Returns the integrality requirement of the variable.
|
lb | Return type: double Returns the lower bound.
|
name | Return type: const std::string& Returns the name of the variable.
|
reduced_cost | Return type: double |
SetBounds | Return type: void Arguments: double lb, double ub Sets both the lower and upper bounds.
|
SetBranchingPriority | Return type: void Arguments: int priority |
SetInteger | Return type: void Arguments: bool integer Sets the integrality requirement of the variable.
|
SetLB | Return type: void Arguments: double lb Sets the lower bound.
|
SetUB | Return type: void Arguments: double ub Sets the upper bound.
|
solution_value | Return type: double |
ub | Return type: double Returns the upper bound.
|
unrounded_solution_value | Return type: double |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-09-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]