Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: scip_proto_solver
Note: This documentation is automatically generated.
Note, here we do not override any of SCIP default parameters. This behavior
*differs* from `MPSolver::Solve()` which sets the feasibility tolerance to 1e-7, and the gap limit to 0.0001 (whereas SCIP defaults are 1e-6 and 0,
[[["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\u003eThis documentation outlines the usage of the \u003ccode\u003escip_proto_solver\u003c/code\u003e in C++, focusing on how it interfaces with SCIP for solving optimization problems.\u003c/p\u003e\n"],["\u003cp\u003eUnlike \u003ccode\u003eMPSolver::Solve()\u003c/code\u003e, \u003ccode\u003escip_proto_solver\u003c/code\u003e utilizes SCIP's default parameter settings for feasibility tolerance (1e-6) and gap limit (0).\u003c/p\u003e\n"],["\u003cp\u003eTwo primary functions are provided: \u003ccode\u003eFindErrorInMPModelForScip\u003c/code\u003e for model validation and \u003ccode\u003eScipSolveProto\u003c/code\u003e for solving the optimization problem using the given model.\u003c/p\u003e\n"]]],["The core content details two C++ functions within the `scip_proto_solver` for interacting with the SCIP solver. `ScipSolveProto` takes an `MPModelRequest` and returns an `MPSolutionResponse` or an error status. `FindErrorInMPModelForScip` takes an `MPModelProto` and a `SCIP*` pointer, returning a string describing potential errors. Unlike `MPSolver::Solve()`, these functions do not override default SCIP parameters like feasibility tolerance and gap limit.\n"],null,["# scip_proto_solver\n\nC++ Reference: scip_proto_solver\n================================\n\n\nNote: This documentation is automatically generated.\n\n\u003cbr /\u003e\n\nNote, here we do not override any of SCIP default parameters. This behavior \n\\*differs\\* from \\`MPSolver::Solve()\\` which sets the feasibility tolerance to 1e-7, and the gap limit to 0.0001 (whereas SCIP defaults are 1e-6 and 0, \n\nrespectively, and they are being used here).\n\n| Function | Type | Arguments | Comments |\n|---------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|-----------|----------|\n| [`FindErrorInMPModelForScip`](https://github.com/google/or-tools/blob/v9.4/ortools/linear_solver/scip_proto_solver.h#L32) | Return type: `std::string ` Arguments: `const MPModelProto& model, SCIP* scip` \u003cbr /\u003e |\n| [`ScipSolveProto`](https://github.com/google/or-tools/blob/v9.4/ortools/linear_solver/scip_proto_solver.h#L29) | Return type: `absl::StatusOr\u003cMPSolutionResponse\u003e ` Arguments: ` const MPModelRequest& request` \u003cbr /\u003e |"]]