Is there workaround solution to remove one hard constraint from model

21 views
Skip to first unread message

YINXIONG CHEN

unread,
Nov 13, 2025, 3:16:53 AM (3 days ago) Nov 13
to or-tools-discuss
Dear team,

I use ortools cpmodel to build cp-sat model successfully. In solver, there are multiple steps to optimize different objective functions. 
Here is the problem, I want to remove one hard constraint in the 2nd step. But to keep the solution from step1 and pass it to step2, I cannot simply rebuild the model. Is there a work around solution to remove that constraint in the 2nd step, and continue solve the solver?

Thanks.
Reply all
Reply to author
Forward
0 new messages