Veda2.0 Released!


Editing JSON files necessary?
#1
Hello, I want to build on DEMOS_012 model a country specific model with several regions. I was first of all trying to change region names in the demo version. I changed REG1 and REG2 names with the desired names in each spreadsheet in every single place and after I run VEDA the results tab does not show anything. I started from the scratch, I updated results, I deleted created GAMS files - nothing has worked until I accessed the AppData files in the DEMO and changed the region names there in each JSON file. Is this what I am supposed to be doing generally?
Reply
#2
No, JSON files "can" be edited by power users, but it is not necessary at all, especially for what you are trying to do.

Did you change the region names in ~BookRegions_Map table in SysSettings?
Reply
#3
(30-10-2020, 07:13 PM)AKanudia Wrote: No, JSON files "can" be edited by power users, but it is not necessary at all, especially for what you are trying to do.

Did you change the region names in ~BookRegions_Map table in SysSettings?

Of course, that was what I did very first time. I changed region names everywhere I could get to
Reply
#4
can you post the edited model?
Reply
#5
(30-10-2020, 10:05 PM)AKanudia Wrote: can you post the edited model?

Here it is attached. This one is a working one - includes the changes in the JSON files.
Reply
#6
(31-10-2020, 04:24 AM)dtsintsk Wrote:
(30-10-2020, 10:05 PM)AKanudia Wrote: can you post the edited model?

Here it is attached. This one is a working one - includes the changes in the JSON files.
Reply
#7
(31-10-2020, 04:28 AM)dtsintsk Wrote:
(31-10-2020, 04:24 AM)dtsintsk Wrote:
(30-10-2020, 10:05 PM)AKanudia Wrote: can you post the edited model?

Here it is attached. This one is a working one - includes the changes in the JSON files.

Sorry, looks like I could not attach the model here, can I send by email?
Reply
#8
Can you try uploading after zipping the Excel files of your model?
Reply
#9
(31-10-2020, 01:40 PM)AKanudia Wrote: Can you try uploading after zipping the Excel files of your model?

Yes I zipped them but it did not work
Reply
#10
(31-10-2020, 09:55 PM)dtsintsk Wrote:
(31-10-2020, 01:40 PM)AKanudia Wrote: Can you try uploading after zipping the Excel files of your model?

Yes I zipped them but it did not work

Can you see my model in this dropbox file? https://www.dropbox.com/sh/ff7j79m9f001q...Coyea?dl=0

This is a working one - it has json files edited
Reply
#11
I tested with your model, by taking all your Excel templates, but using the Json files from the original Demo12 model.

My first test, directly running the case DemoS_012, appeared to confirm the problem you reported with the model:  Even though the model was started fully from scratch, all the Base.DD and Subres DD files appeared to be practically empty.  And of course the results tab was then quite empty as well.

However, looking at the Region Groups in the Run Manager, I noticed that the new regions CZ010 and CZAGG had been left unselected (due to the original Json files).  By selecting both of them them, and running again, I could see the DD files now having all the processes, and after importing the results, the results Tab showed all the results quite as expected.

So, to me this test suggests that maybe you just missed selecting your new (or renamed) Regions in the Run Manager?
Reply
#12
thanks Antti Smile
Reply
#13
(03-11-2020, 03:02 PM)Antti-L Wrote: I tested with your model, by taking all your Excel templates, but using the Json files from the original Demo12 model.

My first test, directly running the case DemoS_012, appeared to confirm the problem you reported with the model:  Even though the model was started fully from scratch, all the Base.DD and Subres DD files appeared to be practically empty.  And of course the results tab was then quite empty as well.

However, looking at the Region Groups in the Run Manager, I noticed that the new regions CZ010 and CZAGG had been left unselected (due to the original Json files).  By selecting both of them them, and running again, I could see the DD files now having all the processes, and after importing the results, the results Tab showed all the results quite as expected.

So, to me this test suggests that maybe you just missed selecting your new (or renamed) Regions in the Run Manager?

Hi, thank you for your support, I am pretty sure the regions were automatically selected in the run manager but it still did not work. I will run them once again and let you know.
Reply
#14
just make sure that the regions are included in a group, and that group is selected in the case that you run.
Reply
#15
(03-11-2020, 03:42 PM)dtsintsk Wrote:
(03-11-2020, 03:02 PM)Antti-L Wrote: I tested with your model, by taking all your Excel templates, but using the Json files from the original Demo12 model.

My first test, directly running the case DemoS_012, appeared to confirm the problem you reported with the model:  Even though the model was started fully from scratch, all the Base.DD and Subres DD files appeared to be practically empty.  And of course the results tab was then quite empty as well.

However, looking at the Region Groups in the Run Manager, I noticed that the new regions CZ010 and CZAGG had been left unselected (due to the original Json files).  By selecting both of them them, and running again, I could see the DD files now having all the processes, and after importing the results, the results Tab showed all the results quite as expected.

So, to me this test suggests that maybe you just missed selecting your new (or renamed) Regions in the Run Manager?

Hi, thank you for your support, I am pretty sure the regions were automatically selected in the run manager but it still did not work. I will run them once again and let you know.

So, I checked the Region groups and ran several scenarios, none of them delivered the results. What do you mean by "importing the results"? I just go to Modules -> Results and there is nothing to show... When I edit the JSON files instead, the regions are automatically selected and the results are delivered with no problem
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Optimizing solver-opt files for stochastic runs LucasRM 4 637 13-01-2025, 08:18 PM
Last Post: LucasRM
  Run Manager - Base files Dmytror 5 1,882 31-01-2024, 03:58 PM
Last Post: Ravinder
  Capacity units in gdx/dd files vs veda iris 14 6,630 03-01-2024, 08:04 PM
Last Post: Antti-L
Question VBA code in Veda input files AKanudia 11 3,939 29-12-2023, 09:50 AM
Last Post: AKanudia
  Reducing files Ceas19 14 6,648 10-05-2023, 12:59 PM
Last Post: Ceas19
  Selected files do not contain any Tag(s) which can be read with veda vangelis 5 3,063 10-03-2023, 12:10 PM
Last Post: AKanudia
  About exporting LP files siyuan 4 3,301 13-09-2022, 09:56 AM
Last Post: siyuan
  Veda files clogging up system clenox 5 4,658 19-11-2021, 03:30 PM
Last Post: Antti-L
  PostgreSQL data files have a huge Size Mahmoud 5 6,449 10-06-2021, 09:03 AM
Last Post: AKanudia
  no records generated for subres files AngeBlanchard 3 3,721 03-06-2021, 01:24 PM
Last Post: AKanudia

Forum Jump:


Users browsing this thread: 1 Guest(s)