Custom graph in Venapp not showing the correct run

Use this forum to post Vensim related questions.
Post Reply
erickber
Junior Member
Posts: 12
Joined: Fri Aug 13, 2010 4:35 pm

Custom graph in Venapp not showing the correct run

Post by erickber »

Hello,

First, thanks for all the help on the forum so far. It's been great, and my Venapp is moving along nicely. However, I have encountered another problem.

I have a screen where I compare two different runs: a Baseline (which is run in sensitivity mode once) and an Alternate (which is run multiple times and overlaid on the Baseline graph).

This works great for regular sensitivity graphs, but now I am trying to add a custom graph (an area graph) that should only show the Alternate run. However, I cannot get it to show anything but the Baseline graph.

In case it is helpful, here is the entire Venapp in text form (most of the action happens on the CONTROL screen, and the issue I am having is with "CUSTOM>LANDGR"):

!
:SCREEN OPEN
SCREENFONT,Times New Roman|10||0-0-0|-1--1--1
PIXELPOS,0
COMMAND,,,,,,,,"SPECIAL>LOADMODEL|NBIM_0.4.mdl"
COMMAND,,,,,,,,"SPECIAL>LOADTOOLSET|nbim_100912.vts"
COMMAND,,,,,,,,"SPECIAL>READCUSTOM|NBIM_0.4_graphs.vgf"
COMMAND,,,,,,,,"SPECIAL>LOADRUN|Baseline"
COMMAND,,,,,,,,"SIMULATE>WRITECIN|temp.cin"
COMMAND,,,,,,,,"SIMULATE>WRITECIN|init.cin"
TEXTONLY,"National Bioenergy Investment Model",32,12,0,0,|Arial|18|B|0-0-0,,,
TEXTONLY,"NBIM 0.4 beta",41,19,0,0,|Arial Black|18||0-0-0,,,
TEXTONLY,"Copyright (c) 2009-2010 SEI and CIFOR",40,31,0,0,,,,
BUTTON,"Go to main screen",43,51,0,0,,,,MAIN
!
:SCREEN MAIN
SCREENFONT,Times New Roman|10||0-0-0|-1--1--1
PIXELPOS,0
TEXTONLY,"National Bioenergy Investment Model",32,12,0,0,|Arial|18|B|0-0-0,,,
TEXTONLY,"NBIM 0.4 beta",41,19,0,0,|Arial Black|18||0-0-0,,,
TEXTONLY,"Copyright (c) 2009-2010 SEI and CIFOR",40,31,0,0,,,,
BUTTON,"Run model",45,42,0,0,,,,CONTROL
BUTTON,"Ethanol settings",52,49,0,0,,,,ETHANOL
BUTTON,"Biodiesel settings",35,49,0,0,,,,BIODIESEL
!
:SCREEN CONTROL
SCREENFONT,Times New Roman|10||0-0-0|-1--1--1
PIXELPOS,1
COMMAND,,,,,,,,"SIMULATE>READCIN|temp.cin"
COMMAND,,,,,,,,"SIMULATE>RUNNAME|Alternate"
COMMAND,,,,,,,,"MENU>RUN|O"
COMMAND,,,,,,,,"SIMULATE>READCIN|temp.cin"
SWITCHVAR,"zoning for biofuel production",27,58,0,0,,,Agro-ecological zoning,
TEXTONLY,"Fiscal and Financial",504,13,0,0,|Arial|14||0-0-0,,,
COMMAND,"",10,26,0,0,,,SPECIAL>SETWBITEM|FDI,
TOOL,"FDI",504,38,240,170,,,"WORKBENCH>Sensitivity Graph",
COMMAND,"",10,26,,,,,"SPECIAL>SETWBITEM|avoided fuel imports and biofuel exports as percent GDP",
TOOL,"Tax on profits",748,37,240,170,,,WORKBENCH>Sensitivity Graph,
COMMAND,"",10,26,0,0,,,SPECIAL>SETWBITEM|tax revenue as percent GDP,
TOOL,"Net revenue",992,35,240,170,,,WORKBENCH>Sensitivity Graph,
TEXTONLY,"Social",504,220,0,0,|Arial|14||0-0-0,,,
COMMAND,"",10,26,0,0,,,SPECIAL>SETWBITEM|feedstock jobs as percent of rural population,
TOOL,"Job creation",504,245,240,170,,,WORKBENCH>Sensitivity Graph,
COMMAND,"",10,26,,,,,"SPECIAL>SETWBITEM|domestic ownership percent",
TOOL,"Landless population",748,244,240,170,,,WORKBENCH>Sensitivity Graph,
COMMAND,"",10,26,,,,,"SPECIAL>SETWBITEM|biofuel consumption as percent of hh and transport energy",
TOOL,"Food security",992,242,240,170,,,WORKBENCH>Sensitivity Graph,
TEXTONLY,"Environmental",504,426,0,0,|Arial|14||0-0-0,,,
COMMAND,"",10,26,0,0,,,SPECIAL>SETWBITEM|land under feedstock,
TOOL,"Land under feedstock",504,451,240,170,,,"CUSTOM>LANDGR",
COMMAND,"",10,26,,,,,"SPECIAL>SETWBITEM|rural woodfuel use",
TOOL,"Forest area",748,450,240,170,,,WORKBENCH>Sensitivity Graph,
COMMAND,"",10,26,,,,,"SPECIAL>SETWBITEM|urban charcoal use",
TOOL,"Carbon stocks",992,448,240,170,,,WORKBENCH>Sensitivity Graph,
BUTTON,"Update",426,319,,,,,"SIMULATE>WRITECIN|temp.cin",CONTROL
TEXTONLY,"Blend ratios",31,189,0,0,,,,
MODVAR,"user biofuel blend percents[ethanol]",110,219,0,0,,,,
TEXTONLY,"%",182,224,0,0,,,,
TEXTONLY,"Ethanol",51,225,0,0,,,,
MODVAR,"user biofuel blend percents[biodiesel]",110,249,0,0,,,,
TEXTONLY,"%",181,254,0,0,,,,
TEXTONLY,"Biodiesel",51,253,0,0,,,,
MODVAR,"user tax on profit percents[domestic investor]",303,220,0,0,,,,
TEXTONLY,"%",375,225,0,0,,,,
TEXTONLY,"Domestic",244,226,0,0,,,,
MODVAR,"user tax on profit percents[foreign investor]",303,250,0,0,,,,
TEXTONLY,"%",374,255,0,0,,,,
TEXTONLY,"Foreign",242,257,0,0,,,,
TEXTONLY,"Tax on profits",234,188,0,0,,,,
RECTANGLE,"",31,209,186,86,,,,
RECTANGLE,"",228,208,182,88,,,,
TEXTONLY,"Policies",27,21,,,|Arial|14||0-0-0,,"",
TEXTONLY,"Uncertainties",32,333,,,|Arial|14||0-0-0,,"",
TEXTONLY,"Fossil fuel prices",34,372,,,,,"",
RADIO1VAR,"fossil fuel price trend index",32,386,0,0,,[1],Steady,
RADIOVAR,"fossil fuel price trend index",33,412,0,0,,[2],Rising,
RADIOVAR,"fossil fuel price trend index",34,438,0,0,,[3],Falling,
RADIOVAR,"fossil fuel price trend index",34,463,0,0,,[4],Rise then fall,
BUTTON,"Return to main",31,626,0,0,,,,MAIN
TEXTONLY,"Domestic subsidy (USD/litre)",29,97,,,,,"",
TEXTONLY,"Export subsidy (USD/litre)",29,122,,,,,"",
MODVAR,"domestic biofuel subsidy",191,93,0,0,,,,
MODVAR,"biofuel export subsidy",190,119,0,0,,,,
TEXTONLY,"Political commitment",190,371,0,0,,,,
SLIDEVAR,"political commitment",189,386,200,30,,%L|Low|High|[0|1|0.1],,
TEXTONLY,"Export tax on biofuels (%)",262,96,0,0,,,,
MODVAR,"biofuel export tax percent",410,92,0,0,,,,
TEXTONLY,"Global attitude to biofuels",35,502,0,0,,,,
RADIO1VAR,"long term intl biofuel price premium",35,519,0,0,,[-0.05],Prefer petrol,
RADIOVAR,"long term intl biofuel price premium",35,547,0,0,,[0],Neutral,
RADIOVAR,"long term intl biofuel price premium",36,574,0,0,,[0.05],Prefer biofuels,
TEXTONLY,"Security of tenure for estates",190,421,,,,,"",
SLIDEVAR,"security of tenure[estate]",189,436,200,30,,%L|Low|High|[0|1|0.1],"",
TEXTONLY,"Security of tenure for outgrowers",192,469,,,,,"",
SLIDEVAR,"security of tenure[outgrower]",191,484,200,30,,%L|Low|High|[0|1|0.1],"",
TEXTONLY,"Country risk rating",194,517,,,,,"",
SLIDEVAR,"long term country risk rating",193,532,200,30,,%L|Low|High|[1|5|0.1],"",
!
:SCREEN ETHANOL
SCREENFONT,Times New Roman|10||0-0-0|-1--1--1
PIXELPOS,0
COMMAND,"",1,6,0,0,,,SIMULATE>READCIN|init.cin,
COMMAND,"",1,6,0,0,,,SIMULATE>RUNNAME|Alternate,
TEXTONLY,"Sugarcane",8,4,0,0,|Arial|16||0-0-0,,,
TEXTONLY,"Estate",25,9,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Outgrower",31,9,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Yield (t/ha)",17,15,0,0,,,,
TEXTONLY,"Capital productivity (t/1000 USD)",8,20,0,0,,,,
TEXTONLY,"Labor productivity (t/worker)",10,25,0,0,,,,
TEXTONLY,"Baseline recurring costs (USD/t)",8,30,0,0,,,,
TEXTONLY,"Current production (kt/year)",10,35,0,0,,,,
TEXTONLY,"Current domestic ownership (%)",9,40,0,0,,,,
MODVAR,"average yield[estate,sugarcane]",24,14,0,0,,,,
MODVAR,"average yield[outgrower,sugarcane]",31,14,0,0,,,,
BUTTON,"Save settings",5,77,,,,,"SIMULATE>WRITECIN|temp.cin&SIMULATE>WRITECIN|init.cin&SIMULATE>RUNNAME|Bas\
eline&MENU>RUN_SENSITIVITY|O",MAIN
MODVAR,"capital productivity FS per 1000 USD[estate,sugarcane]",24,19,0,0,,,,
MODVAR,"capital productivity FS per 1000 USD[outgrower,sugarcane]",31,19,0,0,,,,
MODVAR,"labor productivity FS[estate,sugarcane]",24,24,0,0,,,,
MODVAR,"labor productivity FS[outgrower,sugarcane]",31,24,0,0,,,,
MODVAR,"baseline recurring costs FS[estate,sugarcane]",24,29,0,0,,,,
MODVAR,"baseline recurring costs FS[outgrower,sugarcane]",31,29,0,0,,,,
MODVAR,"initial production FS[estate,sugarcane]",24,34,0,0,,,,
MODVAR,"initial production FS[outgrower,sugarcane]",31,34,0,0,,,,
MODVAR,"initial domestic ownership[estate,sugarcane]",24,39,0,0,,,,
MODVAR,"initial domestic ownership[outgrower,sugarcane]",31,39,0,0,,,,
TEXTONLY,"Yield premium on zoned land (% above/below)",3,45,0,0,,,,
MODVAR,"yield premium on suitable land[estate,sugarcane]",24,44,,,,,"",
MODVAR,"yield premium on suitable land[outgrower,sugarcane]",31,44,,,,,"",
!
TEXTONLY,"Small",24,50,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Large",31,50,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Biofuel yield (litres/t)",13,54,0,0,,,,
MODVAR,"feedstock yield[small,ethanol,sugarcane]",24,53,,,,,"",
MODVAR,"feedstock yield[large,ethanol,sugarcane]",31,53,,,,,"",
SWITCHVAR,"available feedstocks[sugarcane]",43,10,,,,,"Sugarcane",
BUTTON,"Cancel",14,77,6,4,,,,MAIN
!
:SCREEN BIODIESEL
SCREENFONT,Times New Roman|10||0-0-0|-1--1--1
PIXELPOS,0
COMMAND,"",1,6,0,0,,,SIMULATE>READCIN|init.cin,
COMMAND,"",1,6,0,0,,,SIMULATE>RUNNAME|Alternate,
TEXTONLY,"Jatropha",8,4,0,0,|Arial|16||0-0-0,,,
TEXTONLY,"Estate",25,8,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Outgrower",31,8,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Yield (t/ha)",17,11,0,0,,,,
TEXTONLY,"Capital productivity (t/1000 USD)",8,15,0,0,,,,
TEXTONLY,"Labor productivity (t/worker)",10,19,0,0,,,,
TEXTONLY,"Baseline recurring costs (USD/t)",8,23,0,0,,,,
TEXTONLY,"Current production (kt/year)",10,27,0,0,,,,
TEXTONLY,"Current domestic ownership (%)",9,31,0,0,,,,
MODVAR,"average yield[estate,jatropha]",24,10,0,0,,,,
MODVAR,"average yield[outgrower,jatropha]",31,10,0,0,,,,
BUTTON,"Save settings",3,96,,,,,"SIMULATE>WRITECIN|temp.cin&SIMULATE>WRITECIN|init.cin&SIMULATE>RUNNAME|Bas\
eline&MENU>RUN_SENSITIVITY|O",MAIN
MODVAR,"capital productivity FS per 1000 USD[estate,jatropha]",24,14,0,0,,,,
MODVAR,"capital productivity FS per 1000 USD[outgrower,jatropha]",31,14,0,0,,,,
MODVAR,"labor productivity FS[estate,jatropha]",24,18,0,0,,,,
MODVAR,"labor productivity FS[outgrower,jatropha]",31,18,0,0,,,,
MODVAR,"baseline recurring costs FS[estate,jatropha]",24,22,0,0,,,,
MODVAR,"baseline recurring costs FS[outgrower,jatropha]",31,22,0,0,,,,
MODVAR,"initial production FS[estate,jatropha]",24,26,0,0,,,,
MODVAR,"initial production FS[outgrower,jatropha]",31,26,0,0,,,,
MODVAR,"initial domestic ownership[estate,jatropha]",24,30,0,0,,,,
MODVAR,"initial domestic ownership[outgrower,jatropha]",31,30,0,0,,,,
TEXTONLY,"Oil Palm",7,51,0,0,|Arial|16||0-0-0,,,
TEXTONLY,"Estate",23,54,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Outgrower",30,54,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Yield (t/ha)",16,59,0,0,,,,
TEXTONLY,"Capital productivity (t/1000 USD)",7,63,0,0,,,,
TEXTONLY,"Labor productivity (t/worker)",9,67,0,0,,,,
TEXTONLY,"Baseline recurring costs (USD/t)",7,71,0,0,,,,
TEXTONLY,"Current production (kt/year)",9,75,0,0,,,,
TEXTONLY,"Current domestic ownership (%)",8,79,0,0,,,,
MODVAR,"average yield[estate,oil palm]",23,58,0,0,,,,
MODVAR,"average yield[outgrower,oil palm]",30,58,0,0,,,,
MODVAR,"capital productivity FS per 1000 USD[estate,oil palm]",23,62,0,0,,,,
MODVAR,"capital productivity FS per 1000 USD[outgrower,oil palm]",30,62,0,0,,,,
MODVAR,"labor productivity FS[estate,oil palm]",23,66,0,0,,,,
MODVAR,"labor productivity FS[outgrower,oil palm]",30,66,0,0,,,,
MODVAR,"baseline recurring costs FS[estate,oil palm]",23,70,0,0,,,,
MODVAR,"baseline recurring costs FS[outgrower,oil palm]",30,70,0,0,,,,
MODVAR,"initial production FS[estate,oil palm]",23,74,0,0,,,,
MODVAR,"initial production FS[outgrower,oil palm]",30,74,0,0,,,,
MODVAR,"initial domestic ownership[estate,oil palm]",23,78,0,0,,,,
MODVAR,"initial domestic ownership[outgrower,oil palm]",30,78,0,0,,,,
TEXTONLY,"Soybean",45,4,,,|Arial|16||0-0-0,,"",
TEXTONLY,"Estate",62,8,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Outgrower",68,8,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Yield (t/ha)",54,11,0,0,,,,
TEXTONLY,"Capital productivity (t/1000 USD)",45,15,0,0,,,,
TEXTONLY,"Labor productivity (t/worker)",47,19,0,0,,,,
TEXTONLY,"Baseline recurring costs (USD/t)",45,23,0,0,,,,
TEXTONLY,"Current production (kt/year)",47,27,0,0,,,,
TEXTONLY,"Current domestic ownership (%)",46,31,0,0,,,,
MODVAR,"average yield[estate,soybean]",61,10,0,0,,,,
MODVAR,"average yield[outgrower,soybean]",68,10,0,0,,,,
MODVAR,"capital productivity FS per 1000 USD[estate,soybean]",61,14,0,0,,,,
MODVAR,"capital productivity FS per 1000 USD[outgrower,soybean]",68,14,0,0,,,,
MODVAR,"labor productivity FS[estate,soybean]",61,18,0,0,,,,
MODVAR,"labor productivity FS[outgrower,soybean]",68,18,0,0,,,,
MODVAR,"baseline recurring costs FS[estate,soybean]",61,22,0,0,,,,
MODVAR,"baseline recurring costs FS[outgrower,soybean]",68,22,0,0,,,,
MODVAR,"initial production FS[estate,soybean]",61,26,0,0,,,,
MODVAR,"initial production FS[outgrower,soybean]",68,26,0,0,,,,
MODVAR,"initial domestic ownership[estate,soybean]",61,30,0,0,,,,
MODVAR,"initial domestic ownership[outgrower,soybean]",68,30,0,0,,,,
TEXTONLY,"Yield premium on zoned land (% above/below)",3,34,0,0,,,,
MODVAR,"yield premium on suitable land[estate,jatropha]",24,33,0,0,,,,
MODVAR,"yield premium on suitable land[outgrower,jatropha]",31,33,0,0,,,,
TEXTONLY,"Yield premium on zoned land (% above/below)",40,34,0,0,,,,
MODVAR,"yield premium on suitable land[estate,soybean]",61,33,0,0,,,,
MODVAR,"yield premium on suitable land[outgrower,soybean]",68,33,0,0,,,,
TEXTONLY,"Yield premium on zoned land (% above/below)",2,83,0,0,,,,
MODVAR,"yield premium on suitable land[estate,oil palm]",23,82,0,0,,,,
MODVAR,"yield premium on suitable land[outgrower,oil palm]",30,82,0,0,,,,
TEXTONLY,"Small",24,37,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Large",31,37,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Biofuel yield (litres/t)",13,41,0,0,,,,
MODVAR,"feedstock yield[small,biodiesel,jatropha]",24,40,,,,,"",
MODVAR,"feedstock yield[large,biodiesel,jatropha]",31,40,,,,,"",
TEXTONLY,"Small",62,37,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Large",69,37,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Biofuel yield (litres/t)",51,41,0,0,,,,
MODVAR,"feedstock yield[small,biodiesel,soybean]",62,40,,,,,"",
MODVAR,"feedstock yield[large,biodiesel,soybean]",69,40,,,,,"",
TEXTONLY,"Small",23,86,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Large",30,86,0,0,|Arial|12||0-0-0,,,
TEXTONLY,"Biofuel yield (litres/t)",12,90,0,0,,,,
MODVAR,"feedstock yield[small,biodiesel,oil palm]",23,89,,,,,"",
MODVAR,"feedstock yield[large,biodiesel,oil palm]",30,89,,,,,"",
SWITCHVAR,"available feedstocks[soybean]",46,52,,,,,"Soybean",
SWITCHVAR,"available feedstocks[jatropha]",46,58,,,,,"Jatropha",
SWITCHVAR,"available feedstocks[oil palm]",46,64,,,,,"Oil palm",
BUTTON,"Cancel",11,96,7,4,,,,MAIN

Thanks,
Eric
!
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

Does the custom graph show up ok in Vensim itself?

And can you post the custom graph set and a model to go with the venapp? I cannot investigate the problem without these.
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Post by tomfid »

I think the custom graph set is the key here - does your graph definition in the .vgd point to the Alternate run .vdf?
erickber
Junior Member
Posts: 12
Joined: Fri Aug 13, 2010 4:35 pm

Post by erickber »

That did it, thanks. I needed to point to Alternate with :DATASET.
Post Reply