9. Input and Output¶
This chapter introduces the various data file formats that MindOpt can input or output. Using MindOpt related APIs, you can easily write various memory data to files, and you can also recreate models in new processes to read these files.
When reading and writing files, MindOpt completely determines the content and format of the file based on the file name provided by the user.
For example: foo.mps indicates that the file is model data stored in mps format. foo.prm indicates that the file is a parameter file representing a set of parameter settings with multiple key-value pairs.
Currently, MindOpt supports reading and writing three types of data:
Model data. That is, the model itself, supporting various popular data formats including lp or mps;
Solution-related data. Such as the solution of each variable in the model;
Other data. Such as a set of parameter settings used to solve a certain special structured problem.
For how to read and write files, please refer to the relevant documentation of each language SDK (API section).