Extract solution from CPLEX .sol file

Reads a CPLEX .sol xml file and extracts the solution.

You are now following this Submission

Reads a CPLEX .sol xml file and extracts the solution. Returned is the solution in form of a column vector x. The cplex solution file can be created with the WRITE command in cplex.

Together with the MPS export utility it is possible to export and import linear programming problems and solutions to and from CPLEX.

Cite As

Thomas Trötscher (2026). Extract solution from CPLEX .sol file (https://www.mathworks.com/matlabcentral/fileexchange/25216-extract-solution-from-cplex-sol-file), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: MPS format exporting tool

Categories

Find more on MATLAB Mobile in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0