Effacer les filtres
Effacer les filtres

Issue installing the SDPNAPLUS library to MATLAB (2021a)

1 vue (au cours des 30 derniers jours)
Gorbz
Gorbz le 16 Nov 2021
Commenté : Yizhan le 19 Mar 2024
I am trying to install the following library https://blog.nus.edu.sg/mattohkc/softwares/sdpnalplus/ and I am trying to follow the steps required.
After storing the downloaded directory in my Desktop folder, I opened MATLAB (2021a) within the directory. Then I am supposed to check if the installation was completed by running:
>> SDPNALplus_Demo
but being a newbie in MATLAB I cannot figure out how. Specifically I do not know how to run commands in the command line of MATLAB. I can write script and run it but it would be useful to know how to run something directly from the command line of MATLAB.
Additionally, I tried running the following as script:
>> [blk,At,C,b] = read_sdpa('theta4.dat-s');
>> [obj,X,y,Z] = sdpnalp(blk,At,C,b);
but again I get the error:
Unrecognized function or variable 'read_sdpa'.
I am not sure then how to install correctly this library. Any help would be appreciated.

Réponses (1)

Anjaneyulu Bairi
Anjaneyulu Bairi le 15 Fév 2024
Modifié(e) : Anjaneyulu Bairi le 15 Fév 2024
Hi,
To install SDPNAPLUS library in MATLAB 2021a , follow below steps
  • Visit the following URL to obtain the library: SDPNALPLUS Download.
  • Once downloaded, extract the contents of the ZIP file to a convenient location on your computer.
  • Proceed to launch MATLAB, ensuring that the current directory is set to the location where you extracted the library files.
  • In the MATLAB command window, enter SDPNALplus_Demo to initiate the library's demonstration script which returns the output in command window( refer the attached image ).
  • By following above installation steps , you can read SDP data file by using "read_sdpa" command (refer the second picture).
I hope this helps to resolve your query.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by