You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with opl.create_opl_model(model=r'C:\Users\Desktop\TempInputData\test.mod', data=[r'C:\Users\Desktop\IN_Config.dat', r'C:\Users\Desktop\IN_OfflineData.dat']) as opl:
opl.set_input("RunnerInfo", pd.read_table(r"C:\Users\Desktop\TempInputData\InputRunnerInfo.xls"))
opl.set_input("DurationSet", pd.read_table(r"C:\Users\Desktop\TempInputData\InputDuration.xls"))
opl.set_input("CurrentStateSet", pd.read_table(r"C:\Users\Desktop\TempInputData\InputCurrentState.xls"))
#Generate the problem and solve it.
opl.mute()
opl.run()
print(opl)
#Get the engine objective value
print(opl.objective_value)
When I run this code with jupyter notebook in python, I got: The kernel appears to have died. It will restart automatically.
I have no idea why would this happen? Any wrong in my code?
The text was updated successfully, but these errors were encountered:
Code:
import doopl.factory as opl
import pandas as pd
with opl.create_opl_model(model=r'C:\Users\Desktop\TempInputData\test.mod', data=[r'C:\Users\Desktop\IN_Config.dat', r'C:\Users\Desktop\IN_OfflineData.dat']) as opl:
opl.set_input("RunnerInfo", pd.read_table(r"C:\Users\Desktop\TempInputData\InputRunnerInfo.xls"))
opl.set_input("DurationSet", pd.read_table(r"C:\Users\Desktop\TempInputData\InputDuration.xls"))
opl.set_input("CurrentStateSet", pd.read_table(r"C:\Users\Desktop\TempInputData\InputCurrentState.xls"))
When I run this code with jupyter notebook in python, I got: The kernel appears to have died. It will restart automatically.
I have no idea why would this happen? Any wrong in my code?
The text was updated successfully, but these errors were encountered: