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.
Function |
Type |
Arguments |
Comments |
PdlpSolveProto | Return type: absl::StatusOr<MPSolutionResponse> Arguments: const MPModelRequest& request, bool relax_integer_variables = false, const std::atomic<bool>* interrupt_solve = nullptr |
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.
[null,null,["Last updated 2024-08-06 UTC."],[],["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"]]