sambuddhac / OPF

BSD 2-Clause "Simplified" License
2 stars 0 forks source link

#include ''power_network.pb.h" #1

Open hhenjoy opened 2 years ago

hhenjoy commented 2 years ago

Dear Professor, I try to run this code, but the C++ tells me that it cannot find the file ''power_network.pb.h", can you give me a hint about this? Thank you so much for your time and attention.

sambuddhac commented 2 years ago

Dear @hhenjoy , I can certainly help you with this. But, first, could you please let me know, whether you are trying to run the Two_Bus case or the Multi_Bus case? Also, could you please let me know as to how exactly you are running the respective case? Thanks !!!

sambuddhac commented 2 years ago

Alternatively, sending me a screenshot of your trial, error message, run log would be very helpful

sambuddhac commented 2 years ago

@hhenjoy alright, I figured out. So, you were trying to run the Two_Bus case .... The reason you are facing that error is you need protobuffer to run that code as well as Ruby. I would recommend running the Multi_Bus cases. I will revise and edit the README for that right away, which will help you run it.

hhenjoy commented 2 years ago

Thank you so much, professor. Sorry for not reply promptly because of the time difference. Yes, I was running the Two_Bus case, I was wondering if it is because I was using the Windows system. Can you provide the compiled binary program (.exe) under the Windows platform? The code was not compiled successfully under Windows platform, which may be caused by missing some header files. Thank you so much for your time and attention!

hhenjoy commented 2 years ago

Dear professor, I was trying to run the Multi-Bus case, and this is a screenshot of the error message. image Thank you so much!

sambuddhac commented 2 years ago

Ok @hhenjoy I will take a look in the morning. Just to let you know, I originally wrote the code to run on a GNU/Linux platform and should be easily extensible to Mac OSX. However, I am a by of in darkness regarding windows environment. This uses CMakeLists.txt, which generates a Makefile. In turn, the Makefile generates an executable image from the code, which you can run to get the results. However, if you know how to adapt it for Windows, I would highly appreciate that, in which case, I'll ask you to please fork the repo and place a PR. Also, I used absolute paths in the CMakeLists.txt and elsewhere in the code, which needs to be changed to generic paths. I also need to update instructions on the README. This was lying around idle for a while. But, thanks for taking interest. I'll start some active development on it. Please place PRs with your suggestions. I will highly appreciate those and test and approve them, if they're good.

Regarding the GRB related error, make sure, you have Gurobi solver and valid license installed on your machine. And then you'll need to modify the pathnames in the CMakeLists.txt for GRBHOME, license file, and libraries.

Please let me know, all your questions. Very happy to answer.