Dear Prof. Matthias Fripp and other members for constructing SWITCH,
Sorry that I have asked for another problem. I have tried to run the SWITCH model with the data that I have already collected by the glpk solver just now, and I have encountered the following error which called "ApplicationError: Solver (glpk) did not exit normally". The following figures has shown the whole content in my terminal when I run the SWITCH model. Could you please help me to solve this error? Prior to this error, there were some errors regarding the data, and I have solved them successfully. But I really don't know how to solve this current error anymore. By the way, in the second figure, I have marked a piece of text that appeared in the terminal with a red rectangle. It has told me that 452 generation projects have data in variable_capacity_factors.csv for timepoints when they are not operable, either before construction is possible or after retirement. I wonder that will this hinder the operation of the model? I really hope that I could run the SWITCH model with the data collected by myself successfully. So please help me, and I would appreciate to you so much! Hope that you could have a nice day! Good luck! I am looking forward to your reply!
Yours sincerely,
Wang Chen
















Dear Chen,
These look to me like VS Code is crashing in the middle of running your model. This is an unusual situation that I have not seen on my own computers.
Anyway, it seems pretty clear VS Code is crashing because your clips from the terminal pane show the solver running correctly, then suddenly that stops and you get the Microsoft Windows message, which normally appears when you start a new terminal. So I think VS Code is closing and restarting (at the point when you said it flashed), then it restores the old contents of the terminal pane (the CPLEX log up to the point VS Code quit), then it starts a new command prompt in the same terminal pane.
Is it possible you are being prompted to restart VS Code to install an update, then you click that button and VS Code restarts? Or are you receiving a message like “VS Code crashed and had to restart”? It may also be possible that this is due to running out of memory or disk space or having a bad memory chip. But I would expect to see some kind of alert message in any of these cases, not just have the program silently restart.
Matthias
Matthias Fripp, Ph.D. (he/him/his)
Assoc. VP, Modeling, Mapping and Analytics
Environmental Defense Fund
+1-808-348-9586 (mobile)
mfr...@edf.org
From:
switch...@googlegroups.com <switch...@googlegroups.com> on behalf of Chen Wang <wangche...@163.com>
Date: Saturday, September 30, 2023 at 8:43 PM
To: Switch Model <switch...@googlegroups.com>
Subject: [EXTERNAL] [switch-model] Re: An error occured during the process of running the SWITCH model——ApplicationError: Solver (glpk) did not exit normally
Dear Prof. Matthias Fripp and other members for constructing SWITCH,
This morning, I tried to run the SWITCH model again, and I got the different results and condition. Here are the contents when I run the SWTICH model(please see the following 2 figures). It seems like to show the same result but continue to slove the model. This is the new condition which didn't happen last night. I tried to run the model twice, but they both flashed when they got to a certain process respectively. The VS Code flashed and then appeared to stop calculating. At the same time, the terminal went back to the "F:\SWITCH tutorial data\switch_tutorial>" statement (I have marked it with a red rectangle). Another finding was that the computational process for my second run of the model was shorter than the first. The first calculation went to 3821 and the second went to 2439 ( I have marked with a red ellipse). I'm not sure if it's due to my computer's limited computing capacity that these two flashes happened. Please help me and give me some advice and instruction, and I will be pretty grateful and appreciated! Hope you could have a nice day! Good luck! I am looking forward to your reply!
The content displayed in the terminal after the first run of the SWITCH model:






The content displayed in the terminal after the second run of the SWITCH model:





Yours sincerely,
Wang Chen
在2023年9月30日星期六 UTC+8 23:54:48<Chen Wang> 写道:
Dear Prof. Matthias Fripp and other members for constructing SWITCH,
Sorry that I have asked for another problem. I have tried to run the SWITCH model with the data that I have already collected by the glpk solver just now, and I have encountered the following error which called "ApplicationError: Solver (glpk) did not exit normally". The following figures has shown the whole content in my terminal when I run the SWITCH model. Could you please help me to solve this error? Prior to this error, there were some errors regarding the data, and I have solved them successfully. But I really don't know how to solve this current error anymore. By the way, in the second figure, I have marked a piece of text that appeared in the terminal with a red rectangle. It has told me that 452 generation projects have data in variable_capacity_factors.csv for timepoints when they are not operable, either before construction is possible or after retirement. I wonder that will this hinder the operation of the model? I really hope that I could run the SWITCH model with the data collected by myself successfully. So please help me, and I would appreciate to you so much! Hope that you could have a nice day! Good luck! I am looking forward to your reply!
Yours sincerely,
Wang Chen
--
You received this message because you are subscribed to the Google Groups "Switch Model" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
switch-model...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/switch-model/2795bd76-522b-4b1e-9b23-d002ef97b4dcn%40googlegroups.com.
Hi Chen,
You can change the storage location for temporary files sent to and from the solver by specifying “--tempdir <TEMPDIR>” on the “switch solve” command line or in options.txt. <TEMPDIR> can be any location you have access to, e.g., --tempdir D:\tmp
Matthias
From: switch...@googlegroups.com <switch...@googlegroups.com> on behalf of Chen Wang <wangche...@163.com>
Date: Monday, October 2, 2023 at 3:05 AM
To: Switch Model <switch...@googlegroups.com>
Subject: [EXTERNAL] [switch-model] Re: An error occured during the process of running the SWITCH model——ApplicationError: Solver (glpk) did not exit normally
Dear Prof. Matthias Fripp and other members for constructing SWITCH,
This morning, I used another computer to run the SWITCH model with my collected data, and the glpk solver took more time to calculate and solve this time than before, and VS Code didn't occur the flash problem which I had described in the previous e-mail. However, the model stopped again during the process of solving( please see the 1st figure). By comparing the results of these interruptions of SWTICH model running, I found that the main reason may be due to the lack of storage space on my computer's C disk. Each time the model solving process was interrupted, my C disk's storage space was significantly reduced. This time, the C-disk storage space was directly and severely low, which I think is what caused the interruption of the model solving process this time( please see the 2nd figure). It seems that during each model solving process, the glpk solver would save the results of the data from the process to a folder called Temp on the C disk. So, if my finding is correct, could you please tell me how to solve this problem? Maybe how to change the save path of the glpk solver in order to save the results of the data from the process on the other disk, like D disk, E disk and so on? Truely sorry that bother you again, and I really hope that you could give me some advice and instruction on my problem. Really hope you could have a nice day every day! Good luck! I am looking forward to your reply!

Figure 1

Figure 2
Yours sincerely,
Wang Chen
在2023年10月1日星期日 UTC+8 11:43:10<Chen Wang> 写道:
Dear Prof. Matthias Fripp and other members for constructing SWITCH,
This morning, I tried to run the SWITCH model again, and I got the different results and condition. Here are the contents when I run the SWTICH model(please see the following 2 figures). It seems like to show the same result but continue to slove the model. This is the new condition which didn't happen last night. I tried to run the model twice, but they both flashed when they got to a certain process respectively. The VS Code flashed and then appeared to stop calculating. At the same time, the terminal went back to the "F:\SWITCH tutorial data\switch_tutorial>" statement (I have marked it with a red rectangle). Another finding was that the computational process for my second run of the model was shorter than the first. The first calculation went to 3821 and the second went to 2439 ( I have marked with a red ellipse). I'm not sure if it's due to my computer's limited computing capacity that these two flashes happened. Please help me and give me some advice and instruction, and I will be pretty grateful and appreciated! Hope you could have a nice day! Good luck! I am looking forward to your reply!
The content displayed in the terminal after the first run of the SWITCH model:
The content displayed in the terminal after the second run of the SWITCH model:
Yours sincerely,
Wang Chen
在2023年9月30日星期六 UTC+8 23:54:48<Chen Wang> 写道:
Dear Prof. Matthias Fripp and other members for constructing SWITCH,
Sorry that I have asked for another problem. I have tried to run the SWITCH model with the data that I have already collected by the glpk solver just now, and I have encountered the following error which called "ApplicationError: Solver (glpk) did not exit normally". The following figures has shown the whole content in my terminal when I run the SWITCH model. Could you please help me to solve this error? Prior to this error, there were some errors regarding the data, and I have solved them successfully. But I really don't know how to solve this current error anymore. By the way, in the second figure, I have marked a piece of text that appeared in the terminal with a red rectangle. It has told me that 452 generation projects have data in variable_capacity_factors.csv for timepoints when they are not operable, either before construction is possible or after retirement. I wonder that will this hinder the operation of the model? I really hope that I could run the SWITCH model with the data collected by myself successfully. So please help me, and I would appreciate to you so much! Hope that you could have a nice day! Good luck! I am looking forward to your reply!
Yours sincerely,
Wang Chen
--
You received this message because you are subscribed to the Google Groups "Switch Model" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
switch-model...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/switch-model/e5ce5a75-0824-4fb9-8b1e-f11ccd15f938n%40googlegroups.com.