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."],[[["Solves the optimization problem defined in an MPModelRequest protocol buffer."],["Allows the use of a pre-existing Gurobi environment, enabling efficient license usage and potential performance benefits in specific scenarios."],["The function provides the solution in an MPSolutionResponse protocol buffer, along with an optional status indicating success or failure."],["Users can fine-tune the solver's behavior by passing Gurobi-specific parameters through the `SetSolverSpecificParameters` function."],["Concurrent usage of the provided Gurobi environment by multiple threads is discouraged to prevent potential conflicts."]]],["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"]]