How to install Surrogate Toolbox 3.0 by Dr. Viana?

9 views (last 30 days)
I am trying to Install Surrogate Toolbox 3.0 by Dr. Viana in 64 bit machine with Windows 10. It seems to be very easy, but somehow I am getting the error while installing.
I am getting:
---------------------------------------------------------------------------
What would you like to do? 2
Building with 'Microsoft Visual C++ 2013 Professional (C)'.
MEX completed successfully.
Error using fileparts
Too many output arguments.
Error in srgtsSVMGunnFiles>srgtsCompileSVMGunn (line 101)
[pathstr, name, ext, versn] = fileparts(file_source);
Error in srgtsSVMGunnFiles (line 61)
[file_source filename] = srgtsCompileSVMGunn(srgtsRootDir, interpreter);
Error in srgtsInstall (line 75)
srgtsSVMGunnFiles(srgtsRootDir, hostname, interpreter);

Accepted Answer

Walter Roberson
Walter Roberson on 11 Nov 2016
You need to change the code from
[pathstr, name, ext, versn] = fileparts(file_source);
to
versn = '';
[pathstr, name, ext] = fileparts(file_source);
  4 Comments
Adarsh Vasa
Adarsh Vasa on 4 Mar 2020
Edited: Adarsh Vasa on 4 Mar 2020
Once everything is sorted, the command window script should look like this:
+----------------------------------------------+
| SURROGATES Toolbox |
| Working at full speed!!! |
+----------------------------------------------+
Installing SURROGATES Toolbox 3.0
Checking compatibility with your system...
Hostname : COMPUTER (PCWIN64)
Interpreter : MATLAB 9.7 (R2019b)
System is compatible with toolbox.
Creating folder: ../system/MATLAB/IEFM-COMPUTER1/surrogates/svm
Folder ../system/MATLAB/IEFM-COMPUTER1/surrogates/svm already exists.
The SURROGATES toolbox uses the SVM toolbox by Gunn (1997).
The SVM toolbox uses a compiled ("mex") optimizer to fit
the support vector models.
To contiue the installation, you need to choose between:
[1] copying a pre-compiled file (I have tested it with MATLAB 7.0
and OCTAVE 3.2.4); or
[2] compiling the code for your machine (preferable, but may
require you to chose a compiler --- this is the default option).
If you need help, check the documentation.
What would you like to do? 2
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
Creating folder: ../system/MATLAB/IEFM-COMPUTER1/surrogates/gp
Folder ../system/MATLAB/IEFM-COMPUTER1/surrogates/gp already exists.
The SURROGATES toolbox uses the GPML toolbox by Rasmussen and Williams (2007).
The GPML toolbox has a function that computes a matrix of all pairwise squared
distances between two sets of vectors.
To contiue the installation, you need to choose between:
[1] copying a pre-compiled file (I have tested it with MATLAB 7.0
and OCTAVE 3.2.4), or
[2] compiling the code for your machine (preferable, but may
require you to chose a compiler --- this is the default option), or
[3] copying the MATLAB/OCTAVE version of this function.
The compiled versions are potentially faster than the MATLAB/OCTAVE one.
If you need help, check the documentation.
What would you like to do? 2
Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.
Adding directories to search path...
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/does
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/matlabbooster/does
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/matlabbooster/surrogates/rbnn
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/matlabbooster/surrogates/svm
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/matlabbooster/surrogates/svm/svmgunn
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/sbdo
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/sbdo/criteria
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/sbdo/utils
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/tools
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/gp
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/gp/gpml
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/krg
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/krg/dace
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/prs
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/rbf
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/rbf/rbftlbx
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/shep
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/shep/vtechshepard
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/surrogates/was
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/system
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/system/MATLAB/IEFM-COMPUTER1
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/system/MATLAB/IEFM-COMPUTER1/surrogates/gp/
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/system/MATLAB/IEFM-COMPUTER1/surrogates/svm/
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/tools/conservative
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/tools/gsa
C:\Users\HP\Downloads\SRGTSToolbox\SRGTSToolbox/tools/optm
Saving search path...
Saving system information...
SURROGATES Toolbox 3.0 Release (5) was successfully installed
HAVE A LOT OF FUN!!!
>>
浩 陈
浩 陈 on 23 Mar 2021
Thank you so much !
It was a great help!

Sign in to comment.

More Answers (2)

yueyue
yueyue on 5 Apr 2022
It is very helpful,thank you!

Kun Wang
Kun Wang on 23 Apr 2024
good!

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!