User Tools

Site Tools


solver:how_much_memory_ram_does_my_gams_run_require

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
solver:how_much_memory_ram_does_my_gams_run_require [2007/10/26 13:10]
Franz Nelissen
solver:how_much_memory_ram_does_my_gams_run_require [2007/11/07 14:45]
Franz Nelissen
Line 18: Line 18:
 ---   2,726 rows  6,570 columns ​ 39,489 non-zeroes ---   2,726 rows  6,570 columns ​ 39,489 non-zeroes
 </​code>​ </​code>​
 +
  
  
Line 54: Line 55:
 <​code>​ <​code>​
 @echo off @echo off
 +set XX1PID=
 +set pid=_pid
 +tasklist /v /nh /fo csv | grep memlist.cmd | cut -d, -f2 >%pid%
 +for /F "​Tokens=1"​ %%I in (%pid%) do set XX1PID=%%I
 +echo taskkill /PID %XX1PID% >​killcmd.cmd
 +echo rm -f _pid             >>​killcmd.cmd
 rm -f solver.txt rm -f solver.txt
 :start :start
-tasklist /V /nh |grep -E "​gms[_|a-z]*.exe"​ |awk "​{print $1 \" ​ \" $5 $6}" ​>> solver.txt +tasklist /V /nh |grep -E "​gms[_|a-z]*.exe"​ |awk "​{print $1 \" ​ \" $5 $6}" ​| tee -solver.txt
-tail -n1 solver.txt ​+
 sleep 1 sleep 1
-goto start +goto start
 </​code>​ </​code>​
 Just copy the lines above to a file called ''​memlist.cmd''​ into your working directory. Now you have to add a few lines to your model code right before the solve statement: Just copy the lines above to a file called ''​memlist.cmd''​ into your working directory. Now you have to add a few lines to your model code right before the solve statement:
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY solver/how_much_memory_ram_does_my_gams_run_require.txt · Last modified: 2007/11/07 14:45 by Franz Nelissen