dzeke / Blended-Near-Optimal-Tools

Generation, visualization, and interaction tools to find preferred near-optimal alternatives
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

underscore between Fig and Gen the FigGenForNearOptPaper? #1

Closed amabdallah closed 8 years ago

amabdallah commented 8 years ago

At point (d) in the instructions on the ReadMe homepage, when I execute this the function FigGenForNearOptPaper, Matlab suggests to me a slightly different below which includes an underscore between Fig and Gen. Is that correct?
Then when I hit enter to the suggested function, Figure 1 and 2 pop up just fine but these error lines below appear which obviously prevent the rest of Figures from showing up. I'm using Matlab R2015a. Any suggestions to fix these errors? Thanks

FigGenForNearOptPaper Undefined function or variable 'FigGenForNearOptPaper'.

Did you mean:

Fig_GenForNearOptPaper

Error using rgdx File 'WQNE_outG6.gdx' not found!

Error in LoadEchoGamsResultsMGAComp (line 181) vScalarVals(i) = cell2mat(PrintGamsSo(rgdx(GDXFile,sScalar)));

Error in Fig_GenForNearOptPaper (line 108) [mResult nObjs vParams] = LoadEchoGamsResultsMGAComp('WQNE_outG6.gdx',3,2500,0,[2 0 50]);

dzeke commented 8 years ago

Yes, the underscore is omitted in the documentation. Now fixed.

To fix the error related to rgdx, first switch the Matlab directory to the directory where you downloaded the file WQNE_outG6.gdx: /4-EchoReservoirApplication. Then rerun the script.

David