Coder Social home page Coder Social logo

jgcri / gcam-core Goto Github PK

View Code? Open in Web Editor NEW
255.0 33.0 155.0 1.27 GB

GCAM -- The Global Change Analysis Model

Home Page: http://jgcri.github.io/gcam-doc/

License: Other

Makefile 0.13% C++ 46.17% Java 0.41% R 52.83% C 0.11% Python 0.25% JavaScript 0.08% HTML 0.02% Shell 0.01%
energy land integrated-assessment economics gcam water climate coupled-human-natural-systems human-earth-system

gcam-core's Introduction

Global Change Analysis Model (GCAM)

The Joint Global Change Research Institute (JGCRI) is the home and primary development institution for GCAM, an integrated assessment tool for exploring consequences and responses to global change. Climate change is a global issue that impacts all regions of the world and all sectors of the global economy. Thus, any responses to the threat of climate change, such as policies or international agreements to limit greenhouse gas emissions, can have wide ranging consequences throughout the energy system as well as on land use and land cover. Integrated assessment models endeavor to represent all world regions and all sectors of the economy in an economic framework in order to explore interactions between sectors and understand the potential ramifications of climate mitigation actions.

GCAM has been developed at PNNL for over 20 years and is now a freely available community model and documented online (See below). The team at JGCRI is comprised of economists, engineers, energy experts, forest ecologists, agricultural scientists, and climate system scientists who develop the model and apply it to a range of science and policy questions and work closely with Earth system and ecosystem modelers to integrate the human decision components of GCAM into their analyses.

Model Overview

GCAM is a dynamic-recursive model with technology-rich representations of the economy, energy sector, land use and water linked to a climate model that can be used to explore climate change mitigation policies including carbon taxes, carbon trading, regulations and accelerated deployment of energy technology. Regional population and labor productivity growth assumptions drive the energy and land-use systems employing numerous technology options to produce, transform, and provide energy services as well as to produce agriculture and forest products, and to determine land use and land cover. Using a run period extending from 1990 – 2100 at 5 year intervals, GCAM has been used to explore the potential role of emerging energy supply technologies and the greenhouse gas consequences of specific policy measures or energy technology adoption including; CO2 capture and storage, bioenergy, hydrogen systems, nuclear energy, renewable energy technology, and energy use technology in buildings, industry and the transportation sectors. GCAM is an Representative Concentration Pathway (RCP)-class model. This means it can be used to simulate scenarios, policies, and emission targets from various sources including the Intergovernmental Panel on Climate Change (IPCC). Output includes projections of future energy supply and demand and the resulting greenhouse gas emissions, radiative forcing and climate effects of 16 greenhouse gases, aerosols and short-lived species at 0.5×0.5 degree resolution, contingent on assumptions about future population, economy, technology, and climate mitigation policy.

Documentation

Selected Publications

Calvin, K., Patel, P., Clarke, L., Asrar, G., Bond-Lamberty, B., Cui, R. Y., Di Vittorio, A., Dorheim, K., Edmonds, J., Hartin, C., Hejazi, M., Horowitz, R., Iyer, G., Kyle, P., Kim, S., Link, R., McJeon, H., Smith, S. J., Snyder, A., Waldhoff, S., and Wise, M.: GCAM v5.1: representing the linkages between energy, water, land, climate, and economic systems, Geosci. Model Dev., 12, 677–698, https://doi.org/10.5194/gmd-12-677-2019, 2019.

Edmonds, J., and J. Reilly (1985)Global Energy: Assessing the Future (Oxford University Press, New York) pp.317.

Edmonds, J., M. Wise, H. Pitcher, R. Richels, T. Wigley, and C. MacCracken. (1997) “An Integrated Assessment of Climate Change and the Accelerated Introduction of Advanced Energy Technologies”, Mitigation and Adaptation Strategies for Global Change, 1, pp. 311-39

Kim, S.H., J. Edmonds, J. Lurz, S. J. Smith, and M. Wise (2006) “The ObjECTS Framework for Integrated Assessment: Hybrid Modeling of Transportation ” Energy Journal (Special Issue #2) pp 51-80.

Full list of GCAM publications

gcam-core's People

Contributors

aarony2j avatar abigailsnyder avatar bpbond avatar clynchy avatar cwroney avatar d3y419 avatar enlochner avatar fengly20 avatar gokuliyer avatar jhoring avatar jlurz24 avatar jonathanhuster avatar kanishkan91 avatar kdorheim avatar kvcalvin avatar marideeweber avatar mbins avatar mwisepnnl avatar nealtg avatar orourkepr avatar ouyang363 avatar pkyle avatar pralitp avatar realxinzhao avatar rplzzz avatar siddarthd96 avatar skim301 avatar ssmithclimate avatar trwaite avatar zarrarkhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gcam-core's Issues

Modelling Offshore Wind in GCAM

Hi, @pkyle
I am working on the modeling Wind Energy (both onshore and offshore) in GCAM 4.4. I have some urgent questions and I will appreciate very much any help I can get.

Main question: What is the best approach to adding off-shore wind to GCAM?

  1. It looks like the on-shore wind data enters the system in
    input/gcam-data-system/energy-data/rawdata/Zhou_wind.csv, processed by
    the script energy-processing-code/level1/LA114.wind.R.

  2. It does not appear that there is any existing structure into which we
    can plug in data to generate the off-shore wind.

  3. Do we need to create a file with the structure of Zhou_wind.csv and
    create a new R script like LA114.wind.R to process it?

  4. Is this enough to generate the required entries in the
    global-technology-database and the regional capacity constraints, or is
    some other "glue" required?

  5. Later, we may want to support both fixed and floating offshore wind.
    Would these need to compete in a separate nest for the available
    offshore wind resource, and then the composite of these compete with
    other electricity technologies?

Any input on especially question 5 would be particularly helpful.

Happy to receive any assistance I can get.

Thanks

No ModelInterface.jar in the window_binaries package

I have downloaded the GCAM model from the GitHub.
However, in the windows_binaries package, there supposed to be ModelInerface.jar in the folder ModelInterface. But I only found run-model-interface.bat and model_interface.properties in the folder.
Could you please tell me where to find the ModelInterface.jar?

GCAM V4.4: "Could not find scenarios to run." With Batch query mode enabled.

In the XMLDB Driver properties I set in-memory database to True and pointed "Batch queries" to Gcam's XMLdb batch query file.

When Gcam is done running I get this message:
Running headless? true
About to perform query: collection()/scenario
java.lang.Exception: Could not find scenarios to run.
at ModelInterface.ModelGUI2.DbViewer.runBatch(DbViewer.java:1872)
at ModelInterface.InterfaceMain.runBatch(InterfaceMain.java:650)
at ModelInterface.InterfaceMain.main(InterfaceMain.java:206)
at RunQueries.run(RunQueries.java:127)
at java.lang.Thread.run(Unknown Source)

For reference:
Gcam Version: 4.4
Java version: 1.8
OS: Windows 10

Any advice? Thanks

How do I create an RPS policy in GCAM

I've attached an example on how to do so: RES_policy_example.zip

In the attached example I have created an RPS for % constraints of wind+solar generation of total electricity.
There are two types:

Tax: You want to ensure wind+solar never exceeds X% of total electricity. A tax will be applied to wind+solar until they do not.
Subsidy: You want to ensure wind+solar make up at least X% of total electricity. A subsidy will be applied to wind+solar until they do not.
For Tax markets in order to calculate a percentage market you need to calculate the total electricity multiply that by the % constraint (by year) and store that into the supply of our market. We use an RES-secondary-output to do so as seen in L226.StubTechRESSecondaryOutput_10p.csv. We then need to add a new input into the wind+solar technologies to add to the demand side of our market the total wind+solar generation (L223.GlobalTechInputTax_wind_solar_RES_policy.csv). In this way as the price of the RPS market goes up the demand will go down.

For Subsidy markets it is the opposite. We need to calculate the total electricity multiply that by the % constraint (by year) and store that into the demand side of our market. We can use a regular input object to do so as seen in L226.StubTechEnergyInput_10p.csv. We then need to add a new RES-secondary-output into the wind+solar technologies to add to the supply side of our market the total wind+solar generation (L223.GlobalTechRESSecondaryOutput_wind_solar_RES_policy.csv). In this way as the price of the RPS market goes up the supply will go up.

I have included an example batch_subsidy.xml and batch_tax.xml which references the appropriate CSV files to create the tax and subsidy XML input files for these markets as appropriate.
Note that I left the LNNN numbering on some of these CSV files on purpose. This is because for instance in order to create L226.StubTechEnergyInput_10p.csv I started with energy-data/level2/L226.StubTechCoef_elecownuse.csv. While these input files may be appropriate for GCAM 4.2 these own use coefficients or technology names may be different in previous/future versions of GCAM. You can always use these LNNN numbering to go check the energy-data level 2 data from which the files were generated to update them accordingly.
RPS policies, which in the current GCAM master are applied to all generation, can result in prices decreasing, which leads to counter-intuitive results.

For an RES that applies only to new vintages (this option is not yet in the GCAM master), hydro is not counted as part of each year's new vintage. So a RES for 40% new renewable generation will be 40% of new vintaged generation excluding hydro.

Estimating effects on labor/job creation

Hello,

Can I use GCAM to estimate the impacts of a policy on direct, indirect, and induced labor of a region (i.e. direct: labor related to the manufacture of a specific tech, indirect: labor involved in supply chain of the tech, and services that support general economy like doctors and such?)

Question -- GCAM's modeling of advanced future tech

Hi all,

I was wondering if you could help me with an understanding of the capabilities of GCAM. I'm a statistical fellow at the DOE's ARPA-E, and I'm trying to produce impact estimations of the potential effect of our tech on emissions reductions over time. I'm interested in constructing a series of simulations to "experimentally" investigate what-if scenarios. E.g., if by 2030, electric car sales increase to 25% of new LD vehicle sales each year, what do the emissions of the LD fleet look like? What does it look like if EVs were to increase to 50% of new sales? 75%?

The current iteration of my models are weakly agent-based, meaning they simulate an atomized representation of the sector that they pertain to. Several drawbacks to yours (and please correct me if my understanding is wrong) -- yours includes interactions between sectors and yours have cost present. Mine have neither. My sims force a certain amount of this new tech into the world, whereas it seems to me that you set up cost and decision functions, and then let the model choose a certain amount of the new tech as appropriate. Would love to converse with someone about the relative merits of a simpler, more sparse model and a more comprehensive one like yours, and also hear the extent to which GCAM can accommodate the modeling of tech specifically.

One final extension to this -- wondering if GCAM does a good job modeling advancements in tech that may have many indirect positives. For instance, cheaper batteries == more potential for solar == lower prices. Similarly, more EVs on the grid == more potential for batteries == more potential for solar.

Feel free to point me to any papers you've written or respond directly to my email at [email protected]. Thank you!

What is the difference _gSSP and _SSP

Hi,
Is there any significant difference between _gSSP and _SSP. I want to make sure I am able to explain my results and assumptions properly. I couldn't find documentation on this anywhere.

Also I ran a scenario with RCP policy and I get an error coming from this line:
../input/gcam-data-system/xml/energy-xml/negative_emi
ssions_budget_SSP2.xml

To run an RCP policy, should I remove this line from the configuration file?

Thanks for your help.

Installation Instructions

Please provide installation instructions from source somewhere, in the readme perhaps. Also a list of dependencies would be incredibly useful

ERROR: XML Read Exception message on WIN10

after I reinstalled the java and followed instructions to change the environment variable it still has errors
ERROR: XML Read Exception message is:
unable to open primary document entity 'C:\Users\tyw\Desktop\GCAM\windows_binaries\exe/log_conf.xml'
and after I copied log_conf to the exe files, it throws another error:
ERROR: XML Read Exception message is:
unable to open primary document entity 'C:\Users\tyw\Desktop\GCAM\windows_binaries/input/gcam-data-system/xml/modeltime-xml/modeltime.xml'
and when I double clicked the object-main.exe it just flashed.

Solver restart within period

@rplzzz & @pralitp
This follows on an e-mail discussion I was having with Pralit a while back.
I've found that when I've used 4.3 with multithreading (TBB), I can observe different solver tracks on different runs of identical inputs. This shows itself in two ways: (1) different numbers of iterations; (2) period solution failures would appear in one run by not the other.

I've had to deal with my GCAM experiments regularly not solving some periods due to the solver getting stuck in situations were a region has very high supply and low demand, or 0 supply and reasonable demand. However, the failure is not consistent, as rerunning GCAM on the same input will sometimes successfully converge. This is telling me that there should be a global solution and GCAM can find the global solution, but for some reason is getting lost along the way.

In the absence of trying to figure out how to limit GCAM from getting sidetracked, It crossed my mind that restarting the solver in a given period (up to n times), would exploit the multi-threading randomness to solve these periods that are prone to a meandering solver. This is likely computationally expensive, and relies on the randomness of the TBB, but may be a useful brute force approach for dealing with some solver failures. Is there any way to reboot the solver in this manner using the solver configuration? Or will this require an edit to the source code?

Have consistent name & location for gcam executable

For automation purposes, it would be convenient to have gcam.exe in the same location on all 3 platforms. Having exe/Release/objects on the Mac requires a special case any time the executable must be referenced.

A simple fix would be to add a symlink from exe/gcam.exe -> exe/Release/objects in the Mac distribution.

GCAM 4.3 installation

I created an install script for 4.3 on Macs (see https://bitbucket.org/snippets/plevin/qodzL/install-script-for-gcam-v43-on-mac) that several users found helpful at the workshop. After running it, however, the libs jvm symlink still needs to be set up by running the run-gcam.command script one time only, after which ./Release/objects runs the model.

Suggestions:

  1. Make the script available to users
  2. Add the symlink stuff from run-gcam.command to this script
  3. Remove the run-gcam.command script since it's broken

How to add new Secondary (Animal) Commodities type?

Hello,
I'm new to GCAM and I had a few questions. From what I know, GCAM has 6 categories of meat (beef, dairy, pork, poultry, sheep & goat, and other meat & fish) modeled in. Can I use GCAM to simulate a new type of meat production? And if so, which file I need to modify to include the new meat type?

Model did not solve within the set iterations

I'm trying to replicate a GCAM 3 Model simulation in the new GCAM 4.3 . I ran the model in target finder mode to limit radiative forcing to 3.7W/m2. Model starts correctly in the beginning (results for the first years also are close enough to the original results, considering changes in the model, but diverges at some point) but in dispatch no. 18 it starts to generate an error that says model did not solve within the set iterations, I have tried to change the maximum iterations in \policy\forcing_target_3p7.xml from 100 to 500 but to no avail. Is this the correct place to set the maximum iterations and do you have any thoughts on the source of this error if changing the maximum iterations is not a good approach?

Thanks,
Reza

Could not find double: discountRate/discount-start-year

Hi there,

Thank you for all your efforts to document and develop GCAM. I am trying to get a feel for what happens to technology mixes under standard runs but with different discount rates (if you know of work that investigates this I would be really interested).

When I run with find-path enabled (I believe I have to run with this for this use case), I receive the messages "Could not find double: discountRate" and "Count not find int: discount-start-year" after the model run is completed. Everything is default as came with the download package. These messages appear for the two policy files I have looked at so far "forcing_target_3p7" and "...4p5" Discount rate seems to be set in the policy file, so I'm wondering where these should be set or if this might be a bug either as a message or something that is not being defined?

Many thanks again,

Paul

GCAM 5.1.2 issue when using the "pasture_ssp34.xml" file

I'm doing some work with the SSPs. I recently switched over to using GCAM 5.1.2, and since I made the switch I've had trouble conducting runs using the "pasture_ssp34.xml" file. If I include the file in my run, the run crashes while solving the 1975 period. The error message reads:

"The sum of land areas in region Africa_Eastern exceeds the land allocation by 2117.26 (36.3838%) in period 0"

I didn't experience this problem when using GCAM 5.1.1. Does anyone have guidance on 1) how to resolve the issue or 2) what effect excluding "pasture_ssp34.xml" has on a scenario?

Thanks for your help!

Error on make for GCAM-USA data system due to case-sensitivity

When running make (Ububtu 16.04) in
gcam-core/input/gcam-data-system/gcam-usa-data
make runs into an error when processing :
gcam-core/input/gcam-data-system/gcam-usa-processing-code/level2/L226.en_distribution_USA.R
line 27 of this file reads:
sourcedata( "GCAMUSA_ASSUMPTIONS", "A_gcamusa_data", extension = ".R" )

while the source data file is listed as A_GCAMUSA_data.R which is consistent with what is referenced in all other processing r scripts

https://github.com/JGCRI/gcam-core/search?p=3&q=A_GCAMUSA_data.R&utf8=%E2%9C%93

Problem running GCAM 4.3

Hi
I am trying to running GCAM 4.3 on a new windows 10 computer, but keep getting the error shown in the snapshot. To fix the problem I have tried running GCAM on various version of Java SE 6 & 7 all to no avail. Thanks in advance for any form of help and suggestions.

image

GCAM v3.0

Hi,

I'm trying to run GCAM 3.0 but I was only successful in finding "gcam-core-3.0" online. Could you please advise on how can I find other parts, required for running the model?

Thanks,
Reza

Hydroelectric generation not written to XML in hindcast mode

Right now the methods for processing hydroelectricity generation do not write the output for years that are within the HISTORICAL_YEARS but after the MODEL_BASE_YEARS. The result is that when running in hindcast mode, for example with a final calibration year of 1990, the model time periods between 1990 and 2015 are assigned zero hydroelectricity. This causes a significant jump in the generation by other sources during this time period, which falls back down in 2015.
The cause seems to be the way that the data are processed; generation during model base years is handled in one table (L223.StubTechFixOut_elec), and future years are handled in a separate table (L223.StubTechFixOut_hydro). The latter table is built from L118.out_EJ_R_elec_hydro_Yfut, which explicitly includes only FUTURE_YEARS. As a simple fix, we could set L118.out_EJ_R_elec_hydro_Yfut to include both HISTORICAL_YEARS and FUTURE_YEARS, or to include any HISTORICAL_YEARS that are within the MODEL_FUTURE_YEARS. The changes would be made in module_energy_LA118.hydro and module_energy_L223.electricity.

Problems running "run-gcam"

When I run "run-gcam" I get the following output:


Parsing input files...
Error occurred during initialization of VM
java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
        at WildcardExpandingClassLoader.<init>(WildcardExpandingClassLoader.java:76)
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0([email protected]/Native Method)
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance([email protected]/Unknown Source)
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance([email protected]/Unknown Source)
        at java.lang.reflect.Constructor.newInstance([email protected]/Unknown Source)
        at java.lang.ClassLoader.initSystemClassLoader([email protected]/Unknown Source)
        at java.lang.System.initPhase3([email protected]/Unknown Source)

Any advice?

For reference, I am using JRE 10.0.1

Issues when running GCAM on pic

It is likely you will get errors like:

./gcam.exe: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./gcam.exe)

To resolve this, make sure you have the correct c++ compiler added. This is gcc 5.2.0

Batch Mode!

I try to run GCAM 4.3 in batch mode but still get just for reference scenario!
Where should I put the batch file? I put it in exe and input folders, not working.
Any advise or resource?

How to model energy production policies?

Hello,

I'd like to try modeling energy production policies, in particular an RPS. Is there guidance on how to model this type of policy or an example .xml file? It seems like only the more traditional constraint policy examples are included in the download and there is no text online (that I have found) describing how this works.

How to model RPS in GCAM 5.1.2?

Hello,

I'm trying to model an RPS in GCAM 5.1.2. It looks like this process has changed from previous v4 versions of GCAM. Could someone provide an example or instructions?

Thanks.

error when having a test run using GCAM4.3

hello, I am new user of GCAM4.3. After downloading all materials provided by the https://github.com/JGCRI/gcam-core/releases , I came across problems like this:
error occurred during initialization of vm unable to load native library: can't find dependent libraries.

Btw, I am quite sure that the JAVA running environment and path setting are right.
Could you please help me? Has anyone ever encountered problem like this?

land area sum error on Linux cluster

GCAM 4.4 builds fine on my cluster, but I get the following error when I try to run it with configuration_ref.xml (after seeming to successfully parse the input files and using the initial prices for period 0):

ERROR:The sum of land areas in region USA exceeds the land allocation by -8942.4 (-100%)  in period 1

I'm using Boost 1.67, Xerces-C++ 3.2.1 (I had to compile this without the "-arch x86_64" flags, if that makes a difference), JDK 8, and the jars.zip and data-system.tar.gz available on GitHub.

Unable to view results

Hi,
I am facing an issue everytime I try to view my results
I have run a scenario and when I try to execute a query in the model interface, it appears to be running without any indication of what is going on. When I try to stop the operation, I get an error stating java.lang.NullPointerException.

Please help if someone has observed this issue and knows a way to fix it
model_interface_log.txt
The logs are attached for your reference.

Help with "GCAM Policy Cost"

Hi everyone
I am currently trying to get GCAM to compute the policy cost of my simulations.
According to the GCAM tutorial, the way to handle this is to turn on the CO2 cost curve.
I tried running a simulation run the with "createCostCurve" turned on but I got an error message "Could not find string: AbatedGasForCostCurve". Base this I need help with the following:

  1. How do I create and apply an abate cost curve?
  2. Secondly is there another way of computing the cost of a policy?

Thank you.

GCAM Fails on Build with Boost 1.64, but works with 1.62 --- Warning

I tried recompiling GCAM Today (Mint18.2) with a new version of Boost (1.64). Make failed on the two steps listed below. Compiling worked when Boost was rolled back to 1.62

g++ -O2 -ggdb -DNDEBUG -MMD -std=c++11 -Wno-deprecated -I/gcam-core/libs/boost-lib -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux -I/gcam-core/libs/tbb/tbb2017_20170604oss/include -I/gcam-core/libs/boost-lib/boost/numeric/ -I../../climate/source/hector/headers -I/gcam-core/libs/xercesc/include -I../../.. -I/home/michael/include -DJARS_LIB="\"/gcam-core/libs/jars/*\"" -DGCAM_PARALLEL_ENABLED=1 -DUSE_LAPACK=1 -DNOCLEARNULL=0 -DNOCLEARRESTORE=0 -DUSE_HECTOR=1 -fopenmp -I/opt/intel/mkl/include -c -o solution_info_filter_factory.o solution_info_filter_factory.cpp In file included from /gcam-core/libs/boost-lib/boost/numeric/ublas/vector.hpp:21:0, from /gcam-core/libs/boost-lib/boost/numeric/ublas/matrix.hpp:18, from ../../../solution/util/include/solver_library.h:51, from solution_info.cpp:47: /gcam-core/libs/boost-lib/boost/numeric/ublas/storage.hpp: In member function ‘void boost::numeric::ublas::unbounded_array<T, ALLOC>::serialize(Archive&, unsigned int)’: /gcam-core/libs/boost-lib/boost/numeric/ublas/storage.hpp:299:18: error: ‘make_array’ is not a member of ‘boost::serialization’ ar & serialization::make_array(data_, s); ^ /gcam-core/libs/boost-lib/boost/numeric/ublas/storage.hpp: In member function ‘void boost::numeric::ublas::bounded_array<T, N, ALLOC>::serialize(Archive&, unsigned int)’: /gcam-core/libs/boost-lib/boost/numeric/ublas/storage.hpp:494:18: error: ‘make_array’ is not a member of ‘boost::serialization’ ar & serialization::make_array(data_, s); ^ In file included from ../../../solution/util/include/solver_library.h:51:0, from solution_info.cpp:47: /gcam-core/libs/boost-lib/boost/numeric/ublas/matrix.hpp: In member function ‘void boost::numeric::ublas::c_matrix<T, M, N>::serialize(Archive&, unsigned int)’: /gcam-core/libs/boost-lib/boost/numeric/ublas/matrix.hpp:5977:18: error: ‘make_array’ is not a member of ‘boost::serialization’ ar & serialization::make_array(data_, N); ^

and with:

g++ -O2 -ggdb -DNDEBUG -MMD -std=c++11 -Wno-deprecated -I/gcam-core/libs/boost-lib -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux -I/gcam-core/libs/tbb/tbb2017_20170604oss/include -I/gcam-core/libs/boost-lib/boost/numeric/ -I../../climate/source/hector/headers -I/gcam-core/libs/xercesc/include -I../.. -I/home/michael/include -DJARS_LIB="\"/gcam-core/libs/jars/*\"" -DGCAM_PARALLEL_ENABLED=1 -DUSE_LAPACK=1 -DNOCLEARNULL=0 -DNOCLEARRESTORE=0 -DUSE_HECTOR=1 -fopenmp -I/opt/intel/mkl/include -c -o subresource.o subresource.cpp In file included from /gcam-core/libs/boost-lib/boost/numeric/ublas/vector.hpp:21:0, from ../../solution/util/include/ublas-helpers.hpp:37, from marketplace.cpp:61: /gcam-core/libs/boost-lib/boost/numeric/ublas/storage.hpp: In member function ‘void boost::numeric::ublas::unbounded_array<T, ALLOC>::serialize(Archive&, unsigned int)’: /gcam-core/libs/boost-lib/boost/numeric/ublas/storage.hpp:299:18: error: ‘make_array’ is not a member of ‘boost::serialization’ ar & serialization::make_array(data_, s); ^ /gcam-core/libs/boost-lib/boost/numeric/ublas/storage.hpp: In member function ‘void boost::numeric::ublas::bounded_array<T, N, ALLOC>::serialize(Archive&, unsigned int)’: /gcam-core/libs/boost-lib/boost/numeric/ublas/storage.hpp:494:18: error: ‘make_array’ is not a member of ‘boost::serialization’ ar & serialization::make_array(data_, s); ^ In file included from ../../solution/util/include/ublas-helpers.hpp:38:0, from marketplace.cpp:61: /gcam-core/libs/boost-lib/boost/numeric/ublas/matrix.hpp: In member function ‘void boost::numeric::ublas::c_matrix<T, M, N>::serialize(Archive&, unsigned int)’: /gcam-core/libs/boost-lib/boost/numeric/ublas/matrix.hpp:5977:18: error: ‘make_array’ is not a member of ‘boost::serialization’ ar & serialization::make_array(data_, N); ^

Command-line flag to remove restart files

Have a command-line flag to tell GCAM to automatically remove all restart files when the run completes successfully. Running v5.1.2 to 2060 yielded 155MB of restart files, which starts to become a problem in a Monte Carlo context.

Rename Release/objects to gcam.exe on Mac

Consider renaming exe/Release/objects to exe/gcam.exe since this is (i) more obvious and (ii) consistent with the Windows and Linux platforms. Consistency is helpful for 3rd party developers like me! ;~)

Add a query for RES policies

The query "elec gen by subsector" sums the renewable energy credits used to implement the policy along with the sources of those credits (whatever techs are deemed RE).

Pralit suggesting changing the query to:

		<supplyDemandQuery title="elec gen by subsector">
			<axis1 name="subsector">subsector</axis1>
			<axis2 name="Year">physical-output[@vintage]</axis2>
			<xPath buildList="true" dataName="output" group="false" sumAll="false">*[@type='sector' (:collapse:) and (@name='electricity' or @name='elect_td_bld')]/*[@type='subsector' and not (@name='elect_td_bld')]//*[@type='output']/physical-output/node()</xPath>
			<comments/>
		</supplyDemandQuery>

to eliminate the final (:collapse:). This shows the output as either electricity or your RES market name, avoiding the double-counting. Works for me.

Since it's not clear that the original query is useful, perhaps these changes should be made in the core.

Document creation of policies in XML

It would super helpful to the user community if JGCRI would post documented examples of common policy implementations to the GCAM Wiki. In my view, this is a critical gap in user documentation.

Examples could include:

  • Air pollutant taxes or caps
  • GHG taxes or caps
  • CAFE standard
  • Renewable Electricity Standard
  • Technology subsidies
  • Forced technology penetration
  • High-efficiency technology end-use requirements
  • Fuel carbon intensity policy

Recreate XML files from CSV?

How do I re-export XML files from CSV using v5.1.2? I tried to do this following the steps outline in the 2017 Tutorial (opening the CSV in ModelInterface and selecting the headers file) but I get an error in the ModelInterface when trying to do this.

Model Interface error

Hi Pralit,

I am trying to run model interface in Window. Somehow when I run the ModelInterface.bat , it gives error. So I got hold of ModelInterface.jar, the executable file and ran it. The application opens. But when I open the database, I don't see any default query. Attempting to create a query gives Java Nullpoint Exception.

Can you help?

Thanks,
Sriram

Unable to located jvm.dll !!!

I use the version4.4GCAM, when i double CLICK the object-main file ,there is a warning like this:Unable to located jvm.dll
i have already installization one Java ,and delete the REM in the run-gcam file.
i hope any one could help me ,thank you very much.

you can contact me :
e-mail: [email protected]
name:Aubutio Z

Technical assistance required

While running GCAM version 4.2, following error box pop up:

The application was unable to start correctly (0x000007b). Click OK to close the application.

Kindly help me with this error asap.

Thanks,
Poonam

Cannot open include file: 'jni.h':

I am building the GCAM 4.4 on Windows 10 Machine. I used Microsoft Visual Studio 17.0 to build, and I have successfully installed the Java jdk-9.0.4.
Now I was trying to run "Build Solution" from VS, and it gave me the error messages that:

"Hector::Logger::open': function does not take 3 arguments objects-main c:\work\duke\gcam4.4\cvs\objects\climate\source\hector_model.cpp 202

Cannot open include file: 'jni.h': No such file or directory (compiling source file ....\containers\source\single_scenario_runner.cpp) objects-main c:\work\duke\gcam4.4\cvs\objects\reporting\include\xml_db_outputter.h 54

Cannot open include file: 'jni.h': No such file or directory (compiling source file ....\containers\source\total_policy_cost_calculator.cpp) objects-main c:\work\duke\gcam4.4\cvs\objects\reporting\include\xml_db_outputter.h 54
"

Any suggestion on how to solve this? Thanks!

GCAM in mac

When I press run.gcam.command on my mac computer,
I get this error message..

Anybody can help me?? I don't know how to solve this..
I downloaded everything as following by the instruction from here.
(https://github.com/JGCRI/gcam-core/releases. )

I also downloaded Java SE Development Kit 8u121(JDK) from here.
from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
-------------- Error message -------------------------------
ERROR:Unexpected XML Read Exception
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

Building GCAM in ubuntu

I get the following error when building GCAM for ubuntu 16.04
Please advise.

make -C ../../containers/source containers_dir
make[1]: Entering directory '/media/jmwanzia/D/GCAM/gcam_core/cvs/objects/containers/source'
g++ -O2 -ggdb -DNDEBUG -DFUSION_MAX_VECTOR_SIZE=30 -MMD -std=c++14 -Wno-deprecated -I -I -I/linux -I../../climate/source/hector/headers -I -I../.. -I/home/jmwanzia/include -DJARS_LIB="""" -DGCAM_PARALLEL_ENABLED=0 -DUSE_LAPACK=0 -DUSE_HECTOR=1 -c -o batch_runner.o batch_runner.cpp
batch_runner.cpp:44:43: fatal error: util/base/include/definitions.h: No such file or directory
compilation terminated.
: recipe for target 'batch_runner.o' failed
make[1]: *** [batch_runner.o] Error 1
make[1]: Leaving directory '/media/jmwanzia/D/GCAM/gcam_core/cvs/objects/containers/source'
Makefile:38: recipe for target 'containers_dir' failed
make: *** [containers_dir] Error 2

Energy Units

Hi,
In GCAM in (\input\gcam-data-system\energy-data\level2), for the energy technologies, the capital cost/O&M-fixed cost, what units are they in?
The GCAM tutorial says all energy technologies are in $1975/GJ. I don't know if this is referring to the input or output. For example in this "L223.GlobalIntTechCapital_wind_adv"
wind at 2015 capital cost is "620". This cannot be GJ. Please help me out I just want to change the capital and OM-fixed cost for my work. I want to be sure am not getting the unit wrong.

Regards
Franklyn

Thank you

Land allocation error running GCAM v4.4 on a cluster

We have installed GCAM v4.4 on a unix cluster and when we try to run it we get the following error in Period 1/1990: The sum of land areas in region USA exceeds the land allocation by -8942.4 (-100%) in period 1.

In the land_input_1.xml file, the USA land allocation appears to be set to 8942.4 in 1975 with fillout=1.

What could be causing this error? Thanks for any help you can provide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.