Model Error during perfrom message_ix -> tutorial ->westeros_baseline #638 #713
Unanswered
Haoyran-Wuu
asked this question in
Getting started
Replies: 1 comment 7 replies
-
Hi Haoyran-Wuu, thank you for this question. Did you follow our official installation instructions, in particular step 3? Because it looks like your specific GAMS solver can't be found. Please make sure the |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got problems when running the module "Time to Solve Model".
FileNotFoundError Traceback (most recent call last)
Cell In[29], line 1
----> 1 scenario.solve()
File c:\Users\11456\anaconda3\envs\message_env\Lib\site-packages\message_ix\core.py:676, in Scenario.solve(self, model, solve_options, **kwargs)
656 def solve(self, model="MESSAGE", solve_options={}, **kwargs):
657 """Solve MESSAGE or MESSAGE-MACRO for the Scenario.
658
659 By default, :meth:
ixmp.Scenario.solve
is called with 'MESSAGE' as the(...)
674 :class:
.GAMSModel
.675 """
--> 676 super().solve(model=model, solve_options=solve_options, **kwargs)
File c:\Users\11456\anaconda3\envs\message_env\Lib\site-packages\ixmp\core\scenario.py:836, in Scenario.solve(self, model, callback, cb_kwargs, **model_options)
834 # Iterate until convergence
835 while True:
--> 836 model_obj.run(self)
838 # Store an iteration number to help the callback
839 if not hasattr(self, "iteration"):
File c:\Users\11456\anaconda3\envs\message_env\Lib\site-packages\message_ix\models.py:363, in GAMSModel.run(self, scenario)
361 optfile = Path(self.model_dir).joinpath("cplex.opt")
362 lines = ("{} = {}".format(*kv) for kv in self.cplex_opts.items())
...
1042 if "b" not in mode:
1043 encoding = io.text_encoding(encoding)
-> 1044 return io.open(self, mode, buffering, encoding, errors, newline)
FileNotFoundError: [Errno 2] No such file or directory: 'C:GAMS\for\model\files\cplex.opt'
but I do have the file named "cplex.opt" in the directory, looking looking forward ur reply(begging~)
Beta Was this translation helpful? Give feedback.
All reactions