SolveFromAssignmentsWithParameters returns nullptr even though valid initial Asignment given

50 views
Skip to first unread message

Nano Byte

unread,
Sep 2, 2025, 4:01:04 AMSep 2
to or-tools-discuss
Hello all,

I do have a general question and or bug. I am unsure about the intended behavior.

Provided a valid Assignment* that is successfully evaluated by the RoutingModel,
calling SolveFromAssignmentsWithParameters() with this Assignment (sometimes) yields a nullptr.
With the Debugger I looked into the RoutingModel and saw that assignment_ is indeed set internally with legal objective bounds.
But collect_assignments_ is empty.
It ultimately runs into status_ = ROUTING_FAIL clause.

My Question:
- Is this a Bug?
- Should the initial solution always be part of the collect_assignemts_ or not?

Thanks and Kind Regards
_nano_


Vincent Furnon

unread,
Sep 2, 2025, 7:22:30 AMSep 2
to or-tools...@googlegroups.com
Did you set a time limit ?

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/or-tools-discuss/bc94c93b-60fb-4bd0-bd35-d5a0cfab6131n%40googlegroups.com.
Message has been deleted

Nano Byte

unread,
Sep 2, 2025, 11:52:50 AMSep 2
to or-tools-discuss
Indeed I did. But it is not a ROUTING_FAIL_TIMEOUT, but ROUTING_FAIL.

Due to the model complexity I see that it my struggle to find a DIFFERNET solution in time. But the time is for sure sufficient to evaluate the given initial solution.
Reply all
Reply to author
Forward
0 new messages