필터 지우기
필터 지우기

mpsread - fixed variables

조회 수: 1 (최근 30일)
Lucrezia Manieri
Lucrezia Manieri 2021년 4월 12일
답변: Divija Aleti 2021년 4월 30일
Is there a way to retrieve the list of fixed variables of a MILP problem from its ".mps" file using the "mpsread" function?

답변 (1개)

Divija Aleti
Divija Aleti 2021년 4월 30일
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

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by