Open LengerHu opened 1 week ago
Everything works fine with me.
Did you fetch the full repository?
Or you can download the DLL file here..... https://github.com/xxh0523/FCDRL_TSCOPF/blob/main/gym_psops/envs/psops/dll_win/PSOPS_Source.dll
Thanks for your advice!It works. Could you please tell me if I want to add the solar panel or wind turbine , how to add them in the IEEE39 sample and whether the Py_PSOPS can handle the process of simulation or not? I notice that there is a IEEE39 origin sample in the samples document. But if I change the sample to a new DAT file (solar panel or wind turbine added) , can Py_PSOPS be used for simulation to handle the TSCOPF problem?
Traceback (most recent call last): File "sopf_base.py", line 251, in
env = sopf_optimum_Env(
File "C:\Users\hulia\Desktop\FCDRL_TSCOPF-main\gym_psops\envs\env_SOPF_Optimum.py", line 65, in init
self.psops = Py_PSOPS(flg=self.flg, rng=rng)
File "C:\Users\hulia\Desktop\FCDRL_TSCOPF-main\gym_psops\envs\psops\py_psops.py", line 61, in init
self._load_dll(dll_path)
File "C:\Users\hulia\Desktop\FCDRL_TSCOPF-main\gym_psops\envs\psops\py_psops.py", line 102, in _load_dll
self.psDLL = cdll.LoadLibrary(dll_path)
File "D:\ProgramData\anaconda3\envs\RL\lib\ctypes__init__.py", line 451, in LoadLibrary
return self._dlltype(name)
File "D:\ProgramData\anaconda3\envs\RL\lib\ctypes\init.py", line 373, in init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\hulia\Desktop\FCDRL_TSCOPF-main\gym_psops\envs\psops\dll_win\PSOPS_Source.dll' (or one of its dependencies). Try using the full path with constructor syntax.
api for psops deletion successful.
By instanly input ---> python sopf_base.py --training, it returns the message The environment is Win11, Python 3.9 qtwebkit has installed in the environment.