nabrezzelt
nabrezzelt
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
hm okay thanks anyway - i will test this and if it doesnt work it will be a console app where ctrl+c works 😄 or a using a thread 😅
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
no im using Google.OrTools.Sat.CpSolver
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
https://github.com/google/or-tools/issues/2310 the seem not to be interested in early cancellation.... 😄 thats exacly the way im now doing it
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
bad thing is that i'm using CpSolver :/ issue is for MipSolver
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
my solution is now to add a SolutionCallback and every time a new solution is found i'll check if the CT is cancelled and the stop the search 😓 🤔 ...
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
because i dont think they will add a other way of cancellation any time soon 😄
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
is there a difference between a thread and subprocess?
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
okay it that works but the cancellation is very delayed 🤔
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
hm okay then i think I have to go the way with the solution callback - hope this works 😄
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
is there no option the "kill" a task?
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
only thing that can cancel the solve operation seems to be in a Callback https://developers.google.com/optimization/cp/cp_tasks#solution-limit
26 replies
CC#
Created by nabrezzelt on 8/31/2024 in #help
Cancel long running task/method
No its provided by Google OR-Tools for solving constraint programming models
26 replies