Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: pdlp_proto_solver
Note: This documentation is automatically generated.
Uses pdlp::PrimalDualHybridGradient to solve the problem specified by the MPModelRequest. Users of this interface should be aware of the size limitations of MPModelProto (see, e.g., large_linear_program.proto).
The optional interrupt_solve can be used to interrupt the solve early. The solver will periodically check its value and stop if it holds true.
If relax_integer_variables is true, integrality constraints are relaxed before solving. If false, integrality constraints result in an error. The solver_specific_info field in the MPSolutionResponse contains a serialized SolveLog.
Returns an error if the conversion from MPModelProto to pdlp::QuadraticProgram fails. The lack of an error does not imply success. Check the SolveLog's termination_reason for more refined status details.
[[["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."],[[["Utilizes the PrimalDualHybridGradient algorithm to address optimization problems defined in MPModelRequest, but users should be mindful of MPModelProto's size constraints."],["Offers an optional interrupt mechanism through `interrupt_solve`, allowing early termination of the solving process."],["Enables relaxation of integrality constraints via `relax_integer_variables` or triggers an error if they are enforced; the solution includes a serialized SolveLog for detailed analysis."],["Returns an error if the problem conversion fails, and even without errors, the SolveLog's `termination_reason` should be checked for success verification."]]],["The `PdlpSolveProto` function utilizes `pdlp::PrimalDualHybridGradient` to solve an `MPModelRequest`. It can optionally relax integer constraints and be interrupted using `interrupt_solve`. The solution status is detailed in the `SolveLog` within the `MPSolutionResponse`. Errors occur if conversion from `MPModelProto` to `pdlp::QuadraticProgram` fails, and success is not implied by the absence of errors, so the `SolveLog` termination reason should be checked.\n"]]