Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: gurobi_proto_solver
Note: This documentation is automatically generated.
Solves the input request.
By default this function creates a new primary Gurobi environment, but an existing one can be passed as parameter. This can be useful with single-use Gurobi licenses since it is not possible to create a second environment if one already exists with those licenses.
Please note though that the provided environment should not be actively used by another thread at the same time.
[[["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\u003eSolves the optimization problem defined in an MPModelRequest protocol buffer.\u003c/p\u003e\n"],["\u003cp\u003eAllows the use of a pre-existing Gurobi environment, enabling efficient license usage and potential performance benefits in specific scenarios.\u003c/p\u003e\n"],["\u003cp\u003eThe function provides the solution in an MPSolutionResponse protocol buffer, along with an optional status indicating success or failure.\u003c/p\u003e\n"],["\u003cp\u003eUsers can fine-tune the solver's behavior by passing Gurobi-specific parameters through the \u003ccode\u003eSetSolverSpecificParameters\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eConcurrent usage of the provided Gurobi environment by multiple threads is discouraged to prevent potential conflicts.\u003c/p\u003e\n"]]],["The `GurobiSolveProto` function solves an input request, creating a new Gurobi environment by default, or using an existing one passed as a parameter, which is helpful for single-use licenses. The provided environment should not be used concurrently by another thread. `SetSolverSpecificParameters` function allows setting specific parameters for the Gurobi solver. The functions return an `absl::StatusOr\u003cMPSolutionResponse\u003e` and `absl::Status`, respectively. Both take a Gurobi environment `GRBenv` as an argument.\n"],null,["# gurobi_proto_solver\n\nC++ Reference: gurobi_proto_solver\n==================================\n\n\nNote: This documentation is automatically generated.\n\n\u003cbr /\u003e\n\nSolves the input request. \n\nBy default this function creates a new primary Gurobi environment, but an existing one can be passed as parameter. This can be useful with single-use Gurobi licenses since it is not possible to create a second environment if one already exists with those licenses. \n\nPlease note though that the provided environment should not be actively used by another thread at the same time.\n\n| Function | Type | Arguments | Comments |\n|-------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|-----------|----------|\n| [`GurobiSolveProto`](https://github.com/google/or-tools/blob/v9.4/ortools/linear_solver/gurobi_proto_solver.h#L35) | Return type: `absl::StatusOr\u003cMPSolutionResponse\u003e ` Arguments: ` const MPModelRequest& request, GRBenv* gurobi_env = nullptr` \u003cbr /\u003e |\n| [`SetSolverSpecificParameters`](https://github.com/google/or-tools/blob/v9.4/ortools/linear_solver/gurobi_proto_solver.h#L49) | Return type: `absl::Status ` Arguments: `const std::string& parameters, GRBenv* gurobi` \u003cbr /\u003e |"]]