Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: model_exporter_swig_helper
Note: This documentation is automatically generated.
Function |
Type |
Arguments |
Comments |
ExportModelAsLpFormatReturnString | Return type: inline std::string Arguments: const MPModelProto& input_model, const MPModelExportOptions& options = MPModelExportOptions() |
ExportModelAsMpsFormatReturnString | Return type: inline std::string Arguments: const MPModelProto& input_model, const MPModelExportOptions& options = MPModelExportOptions() |
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."],[[["\u003cp\u003eThe \u003ccode\u003emodel_exporter_swig_helper\u003c/code\u003e provides functionalities to export mathematical optimization models.\u003c/p\u003e\n"],["\u003cp\u003eTwo primary functions, \u003ccode\u003eExportModelAsLpFormatReturnString\u003c/code\u003e and \u003ccode\u003eExportModelAsMpsFormatReturnString\u003c/code\u003e, facilitate exporting models in LP and MPS formats respectively, accepting an MPModelProto and optional export options.\u003c/p\u003e\n"],["\u003cp\u003eBoth functions return the exported model as a string.\u003c/p\u003e\n"]]],["The document outlines two functions for exporting a model in C++. `ExportModelAsLpFormatReturnString` takes an `MPModelProto` and `MPModelExportOptions` to return a model as a string in LP format. Similarly, `ExportModelAsMpsFormatReturnString` accepts the same input and returns the model as a string in MPS format. Both functions are inline and use `std::string` as their return type. The `MPModelExportOptions` is an optional argument with default values.\n"],null,["# model_exporter_swig_helper\n\nC++ Reference: model_exporter_swig_helper\n=========================================\n\n\nNote: This documentation is automatically generated.\n\n| Function | Type | Arguments | Comments |\n|---------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|----------|\n| [`ExportModelAsLpFormatReturnString`](https://github.com/google/or-tools/blob/v9.4/ortools/linear_solver/model_exporter_swig_helper.h#L24) | Return type: `inline std::string ` Arguments: ` const MPModelProto& input_model, const MPModelExportOptions& options = MPModelExportOptions()` \u003cbr /\u003e |\n| [`ExportModelAsMpsFormatReturnString`](https://github.com/google/or-tools/blob/v9.4/ortools/linear_solver/model_exporter_swig_helper.h#L31) | Return type: `inline std::string ` Arguments: ` const MPModelProto& input_model, const MPModelExportOptions& options = MPModelExportOptions()` \u003cbr /\u003e |"]]