log but dont exit
This commit is contained in:
parent
201308b1dd
commit
e32e3f707e
@ -316,13 +316,12 @@ def simulate_craw_and_calendar(thread, nSimulations):
|
||||
|
||||
# if cal.status!=2 or cal.objVal>-288:
|
||||
if cal.getProbStatus()!=6 or cal.getObjVal()>-287.5:
|
||||
sol= [ (t1,t2) for (t1,t2) in sol if t1<t2]
|
||||
# sol= [ (t1,t2) for (t1,t2) in sol if t1<t2]
|
||||
# sol= [ (t1,t2) for (t1,t2) in sol if t1[0]=="A" and t2[0]=="D" ]
|
||||
print ("No calendar for ", sol)
|
||||
print ("Tested " , str(i+1) , " calendars" )
|
||||
print("Status",cal.getProbStatus(),f"{cal.getProbStatus()}")
|
||||
print("Solution",cal.getObjVal())
|
||||
exit(0)
|
||||
|
||||
# pas2_sol= [ pas for pas in pas2 if cal.getSolution(x[pas])>0.9]
|
||||
# print (pas2_sol)
|
||||
@ -343,7 +342,10 @@ def simulate_craw_and_calendar(thread, nSimulations):
|
||||
for md in mds:
|
||||
if not computeCalendarsHA and sum(schedule[(t1,t2,md)] for (t1,t2) in sol if t==t1 ) < 0.9:
|
||||
print ("ALERT ",t,md)
|
||||
exit()
|
||||
print ("No calendar for ", sol)
|
||||
print ("Tested " , str(i+1) , " calendars" )
|
||||
print("Status",cal.getProbStatus(),f"{cal.getProbStatus()}")
|
||||
print("Solution",cal.getObjVal())
|
||||
|
||||
# print (solutions)
|
||||
# oldGm = [ gg for gg in solutions[1] if gg not in solutions[0]]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user