I was working on the Tutorials for developing the understanding of the working of MESSAGE Model.
I have to extend this to the calculation of long term energy supply for the country.
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-33-6454e8d7b2fb> in <module>
----> 1 scenario.solve()
~\anaconda3\lib\site-packages\message_ix\core.py in solve(self, model, solve_options, **kwargs)
420 code; see :class:`.GAMSModel`.
421 """
--> 422 super().solve(model=model, solve_options=solve_options, **kwargs)
423
424 def rename(self, name, mapping, keep=False):
~\anaconda3\lib\site-packages\ixmp\core.py in solve(self, model, callback, cb_kwargs, **model_options)
1298 # Iterate until convergence
1299 while True:
-> 1300 model.run(self)
1301
1302 # Store an iteration number to help the callback
~\anaconda3\lib\site-packages\message_ix\models.py in run(self, scenario)
86
87 try:
---> 88 result = super().run(scenario)
89 finally:
90 # Remove the optfile regardless of whether the run completed
~\anaconda3\lib\site-packages\ixmp\model\gams.py in run(self, scenario)
138 self.comment or '',
139 as_str_list(self.equ_list) or [],
--> 140 as_str_list(self.var_list) or [],
141 )
~\anaconda3\lib\site-packages\ixmp\core.py in _backend(self, method, *args, **kwargs)
325 def _backend(self, method, *args, **kwargs):
326 """Convenience for calling *method* on the backend."""
--> 327 return self.platform._backend(self, method, *args, **kwargs)
328
329 # functions for platform management
~\anaconda3\lib\site-packages\ixmp\backend\base.py in __call__(self, obj, method, *args, **kwargs)
23 for the method name, e.g. 'ts_{method}'.
24 """
---> 25 return getattr(self, method)(obj, *args, **kwargs)
26
27 def close_db(self): # pragma: no cover
~\anaconda3\lib\site-packages\ixmp\backend\jdbc.py in read_gdx(self, s, path, check_solution, comment, equ_list, var_list)
725 self.jindex[s].readSolutionFromGDX(
726 str(path.parent), path.name, comment, to_jlist2(var_list),
--> 727 to_jlist2(equ_list), check_solution)
728
729 self.cache_invalidate(s)
TypeError: Ambiguous overloads found for at.ac.iiasa.ixmp.objects.MsgScenario.readSolutionFromGDX(str,str,str,java.util.LinkedList,java.util.LinkedList,bool) between:
public void at.ac.iiasa.ixmp.objects.MsgScenario.readSolutionFromGDX(java.lang.String,java.lang.String,java.lang.String,java.util.List,java.util.List,boolean) throws at.ac.iiasa.ixmp.exceptions.IxException
public void at.ac.iiasa.ixmp.objects.Scenario.readSolutionFromGDX(java.lang.String,java.lang.String,java.lang.String,java.util.LinkedList,java.util.LinkedList,boolean) throws at.ac.iiasa.ixmp.exceptions.IxException
Thanks in advance for help.
Best Regards,
Abrar Sajid