Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class RoutingGlopWrapper
Note: This documentation is automatically generated.
Method |
AddMaximumConstraint | Return type: void Arguments: int /*max_var*/,
std::vector<int> /*vars*/ |
AddObjectiveConstraint | Return type: void |
AddProductConstraint | Return type: void Arguments: int /*product_var*/,
std::vector<int> /*vars*/ |
Clear | Return type: void |
ClearObjective | Return type: void |
CreateNewConstraint | Return type: int Arguments: int64_t lower_bound, int64_t upper_bound |
CreateNewPositiveVariable | Return type: int |
GetObjectiveCoefficient | Return type: double Arguments: int index |
GetObjectiveValue | Return type: int64_t |
GetValue | Return type: double Arguments: int index |
GetVariableLowerBound | Return type: int64_t Arguments: int index |
GetVariableUpperBound | Return type: int64_t Arguments: int index |
IsCPSATSolver | Return type: bool |
NumVariables | Return type: int |
RoutingGlopWrapper | Arguments: bool is_relaxation, const glop::GlopParameters& parameters |
SetCoefficient | Return type: void Arguments: int ct, int index, double coefficient |
SetEnforcementLiteral | Return type: void Arguments: int /*ct*/, int /*condition*/ |
SetObjectiveCoefficient | Return type: void Arguments: int index, double coefficient |
SetParameters | Return type: void Arguments: const std::string& parameters |
SetVariableBounds | Return type: bool Arguments: int index, int64_t lower_bound,
int64_t upper_bound |
SetVariableDisjointBounds | Return type: void Arguments: int index, const std::vector<int64_t>& starts,
const std::vector<int64_t>& ends |
SetVariableName | Return type: void Arguments: int index, absl::string_view name |
SolutionIsInteger | Return type: bool |
Solve | Return type: DimensionSchedulingStatus Arguments: absl::Duration duration_limit |
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 2024-08-06 UTC.
[[["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\u003eRoutingGlopWrapper\u003c/code\u003e is a C++ class that provides an interface to the GLOP linear programming solver.\u003c/p\u003e\n"],["\u003cp\u003eIt allows creating and managing variables, constraints, and objectives for optimization problems.\u003c/p\u003e\n"],["\u003cp\u003eUsers can set coefficients, bounds, and names for variables, as well as define constraints and objectives.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods for solving the LP problem and retrieving the solution and objective value.\u003c/p\u003e\n"],["\u003cp\u003eIt can be used for both relaxation and integer solutions in routing and scheduling contexts.\u003c/p\u003e\n"]]],["The `RoutingGlopWrapper` class facilitates constraint management and solving. Key actions include adding constraints (`AddMaximumConstraint`, `AddObjectiveConstraint`, `AddProductConstraint`), creating variables/constraints (`CreateNewConstraint`, `CreateNewPositiveVariable`), and manipulating variables (`SetVariableBounds`, `SetVariableName`). It also handles objective functions (`Set/GetObjectiveCoefficient`, `ClearObjective`) and allows retrieving values/bounds (`GetValue`, `GetVariableLowerBound`). Other capabilities include clearing data, checking solver type, and solving with time limits (`Solve`).\n"],null,["# RoutingGlopWrapper\n\nC++ Reference: class RoutingGlopWrapper\n=======================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [`AddMaximumConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L360) | Return type: `void ` Arguments: `int /*max_var*/, std::vector\u003cint\u003e /*vars*/` \u003cbr /\u003e |\n| [`AddObjectiveConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L334) | Return type: `void ` \u003cbr /\u003e |\n| [`AddProductConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L362) | Return type: `void ` Arguments: `int /*product_var*/, std::vector\u003cint\u003e /*vars*/` \u003cbr /\u003e |\n| [`Clear`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L257) | Return type: `void ` \u003cbr /\u003e |\n| [`ClearObjective`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L311) | Return type: `void ` \u003cbr /\u003e |\n| [`CreateNewConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L319) | Return type: `int ` Arguments: `int64_t lower_bound, int64_t upper_bound` \u003cbr /\u003e |\n| [`CreateNewPositiveVariable`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L262) | Return type: `int ` \u003cbr /\u003e |\n| [`GetObjectiveCoefficient`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L308) | Return type: `double ` Arguments: `int index` \u003cbr /\u003e |\n| [`GetObjectiveValue`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L399) | Return type: `int64_t ` \u003cbr /\u003e |\n| [`GetValue`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L402) | Return type: `double ` Arguments: `int index` \u003cbr /\u003e |\n| [`GetVariableLowerBound`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L295) | Return type: `int64_t ` Arguments: `int index` \u003cbr /\u003e |\n| [`GetVariableUpperBound`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L298) | Return type: `int64_t ` Arguments: `int index` \u003cbr /\u003e |\n| [`IsCPSATSolver`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L333) | Return type: `bool ` \u003cbr /\u003e |\n| [`NumVariables`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L316) | Return type: `int ` \u003cbr /\u003e |\n| [`RoutingGlopWrapper`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L252) | \u003cbr /\u003e Arguments: `bool is_relaxation, const glop::GlopParameters& parameters` \u003cbr /\u003e |\n| [`SetCoefficient`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L329) | Return type: `void ` Arguments: `int ct, int index, double coefficient` \u003cbr /\u003e |\n| [`SetEnforcementLiteral`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L364) | Return type: `void ` Arguments: `int /*ct*/, int /*condition*/` \u003cbr /\u003e |\n| [`SetObjectiveCoefficient`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L305) | Return type: `void ` Arguments: `int index, double coefficient` \u003cbr /\u003e |\n| [`SetParameters`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L410) | Return type: `void ` Arguments: `const std::string& parameters` \u003cbr /\u003e |\n| [`SetVariableBounds`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L268) | Return type: `bool ` Arguments: `int index, int64_t lower_bound, int64_t upper_bound` \u003cbr /\u003e |\n| [`SetVariableDisjointBounds`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L286) | Return type: `void ` Arguments: `int index, const std::vector\u003cint64_t\u003e& starts, const std::vector\u003cint64_t\u003e& ends` \u003cbr /\u003e |\n| [`SetVariableName`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L265) | Return type: `void ` Arguments: `int index, absl::string_view name` \u003cbr /\u003e |\n| [`SolutionIsInteger`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L405) | Return type: `bool ` \u003cbr /\u003e |\n| [`Solve`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing_lp_scheduling.h#L365) | Return type: `DimensionSchedulingStatus ` Arguments: `absl::Duration duration_limit` \u003cbr /\u003e |"]]