Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matlab R2023b when use it return sedumi is not properly installed #86

Open
guchiyama-max opened this issue Nov 7, 2024 · 1 comment

Comments

@guchiyama-max
Copy link

guchiyama-max commented Nov 7, 2024

Hello, I am a student in Japan!
I am a student in Japan. When I try to use SeDuMi in Matlab2023b for my research, I get the following message. Please let me know how to solve this problem.

>> install_sedumi

---------------------------------------------------------------------------
SeDuMi installation script
Directory: C:\hoge\sedumi-master
Matlab 23.2.0.2459199 (R2023b) Update 5 on PCWIN64
---------------------------------------------------------------------------
Attempting to recompile the SeDuMi binaries:.
Template: mex -O -largeArrayDims %s -L'C:\\Program Files\\\MATLAB\\R2023b\\extern\lib\win64\microsoft' -lmwblas
bwblkslv.mexw64: bwblkslv.c sdmauxFill.c sdmauxRdot.c
choltmpsiz.mexw64: choltmpsiz.c
cholsplit.mexw64: cholsplit.c
dpr1fact.mexw64: dpr1fact.c auxfwdpr1.c sdmauxCone.c sdmauxCmp.c sdmauxFill.c sdmauxScalarmul.c sdmauxRdot.c blkaux.c
symfctmex.mexw64: symfctmex.c symfct.c
ordmmdmex.mexw64: ordmmdmex.c ordmmd.c
quadadd.mexw64: quadadd.c
sqrtinv.mexw64: sqrtinv.c sdmauxCone.c
givensrot.mexw64: givensrot.c auxgivens.c sdmauxCone.c
urotorder.mexw64: urotorder.c auxgivens.c sdmauxCone.c sdmauxTriu.c sdmauxRdot.c
psdframeit.mexw64: psdframeit.c reflect.c sdmauxCone.c sdmauxRdot.c sdmauxTriu.c sdmauxScalarmul.c
psdinvjmul.mexw64: psdinvjmul.c reflect.c sdmauxCone.c sdmauxRdot.c sdmauxTriu.c sdmauxScalarmul.c blkaux.c
bwdpr1.mexw64: bwdpr1.c sdmauxCone.c sdmauxRdot.c
fwdpr1.mexw64: fwdpr1.c auxfwdpr1.c sdmauxCone.c sdmauxScalarmul.c
fwblkslv.mexw64: fwblkslv.c sdmauxScalarmul.c
qblkmul.mexw64: qblkmul.c sdmauxScalarmul.c
blkchol.mexw64: blkchol.c blkchol2.c sdmauxFill.c sdmauxScalarmul.c
vecsym.mexw64: vecsym.c sdmauxCone.c
qrK.mexw64: qrK.c sdmauxCone.c sdmauxRdot.c sdmauxScalarmul.c
finsymbden.mexw64: finsymbden.c sdmauxCmp.c
symbfwblk.mexw64: symbfwblk.c
ddot.mexw64: ddot.c sdmauxCone.c sdmauxRdot.c sdmauxScalarmul.c
partitA.mexw64: partitA.c sdmauxCmp.c
getada1.mexw64: getada1.c sdmauxFill.c
getada2.mexw64: getada2.c sdmauxCone.c sdmauxRdot.c sdmauxFill.c
getada3.mexw64: getada3.c spscale.c sdmauxCone.c sdmauxRdot.c sdmauxScalarmul.c sdmauxCmp.c
adendotd.mexw64: adendotd.c sdmauxCone.c
adenscale.mexw64: adenscale.c
extractA.mexw64: extractA.c
sortnnz.mexw64: sortnnz.c sdmauxCmp.c
iswnbr.mexw64: iswnbr.c
incorder.mexw64: incorder.c
findblks.mexw64: findblks.c sdmauxCone.c sdmauxCmp.c
invcholfac.mexw64: invcholfac.c triuaux.c sdmauxCone.c sdmauxRdot.c sdmauxTriu.c sdmauxScalarmul.c blkaux.c
Error while using: install_sedumi
---------------------------------------------------------------------------
SeDuMi was not successfully installed.
Please attempt to correct the errors and try again.

For example, try setting the compilation command: install_sedumi -rebuild

install_sedumi -rebuild ' mex -O -largeArrayDims %s -L'C:\\Program Files\\MATLAB\\R2023b\\extern\lib\\win64\\microsoft' -lmwblas'
@siko1056
Copy link
Member

siko1056 commented Nov 10, 2024

Hello @guchiyama-max -san,

There are pre-compiled binaries for SeDuMi available in the release page:

Does this work for you?

I tried the following in Matlab online (Linux) without need to compile the mex-files:

>> ls
sedumi.zip  untitled.m

>> unzip sedumi.zip
>> cd sedumi/
>> install_sedumi

---------------------------------------------------------------------------
SeDuMi installation script
   Directory: /MATLAB Drive/sedumi
   Matlab 24.2.0.2754538 (R2024b) Update 1 on GLNXA64
---------------------------------------------------------------------------
Looking for existing binaries...found!
   If for some reason you need to rebuild the binaries, use this command:
      install_sedumi -rebuild
---------------------------------------------------------------------------
Adding SeDuMi to the search path:
   Base directory...       added.
   Conversion directory... added.
   Examples directory...   added.
---------------------------------------------------------------------------
SeDuMi has been successfully installed.
For more information, type "help sedumi" or see the user guide.
---------------------------------------------------------------------------

>> cd examples/
>> test_sedumi

---------------------------------------------------------------------------
SeDuMi installation script
   Directory: /MATLAB Drive/sedumi
   Matlab 24.2.0.2754538 (R2024b) Update 1 on GLNXA64
---------------------------------------------------------------------------
Looking for existing binaries...found!
   If for some reason you need to rebuild the binaries, use this command:
      install_sedumi -rebuild
---------------------------------------------------------------------------
Adding SeDuMi to the search path:
   Base directory...       already there.
   Conversion directory... already there.
   Examples directory...   already there.
---------------------------------------------------------------------------
SeDuMi has been successfully installed.
For more information, type "help sedumi" or see the user guide.
---------------------------------------------------------------------------

---------------------------------------------------------------------------
-- Test 'arch0.mat' ( 1/ 6)
---------------------------------------------------------------------------

SeDuMi 1.3.7 by AdvOL, 2005-2008 and Jos F. Sturm, 1998-2003.
Alg = 2: xz-corrector, Adaptive Step-Differentiation, theta = 0.250, beta = 0.500
Detected 1 diagonal SDP block(s) with 174 linear variables
eqs m = 174, order n = 336, dim = 26096, blocks = 2
nnz(A) = 3030 + 0, nnz(ADA) = 30276, nnz(L) = 15225
 it :     b*y       gap    delta  rate   t/tP*  t/tD*   feas cg cg  prec
  0 :            7.21E+05 0.000
  1 :  -1.06E-01 1.65E+05 0.000 0.2289 0.9000 0.9000  -2.46  1  1  4.1E+04
  2 :  -3.02E-01 3.17E+04 0.000 0.1920 0.9000 0.9000  -0.33  1  1  1.5E+04

[skip rest of test output]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants