mpsread - fixed variables

2 vues (au cours des 30 derniers jours)
Lucrezia Manieri
Lucrezia Manieri le 12 Avr 2021
Is there a way to retrieve the list of fixed variables of a MILP problem from its ".mps" file using the "mpsread" function?

Réponses (1)

Divija Aleti
Divija Aleti le 30 Avr 2021
Hi Lucrezia,
The following syntax will read data for LP and MILP problems from the MPS file 'file.mps' and return the data in a structure. One of the fields of the structure is 'variableNames', which is a string array containing variable names from the MPS file.
problem = mpsread('file.mps','ReturnNames',true)
For an example on the usage of the 'mpsread' function, refer to this link : mpsread
Hope this helps!
Regards,
Divija

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by