Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16240

Import Data from Excel into GAMS that contain Zeros

$
0
0

This might seems simple question.but I don't why I cannot know how to fix this problem.

I have a matrix in a Excell sheet that contain zero values.

enter image description here

But this what is shown is gdxenter image description here

How to transport the same matrix from Excel (with the zeros) in GAMS?

     Sets     h hours /1*24/     d days /day1*day2/     Parameter SR(h,d);     $Call gdxxrw.exe MyMatrix.xlsx par=SR rng=sheet1!B2:C25 output=MyMatrix.gdx      $GDXIN MyMatrix.gdx     $LOAD SR = SR     $GDXIN     display SR;

Viewing all articles
Browse latest Browse all 16240

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>