Skip to content

Can I customize PenaltyManager and CostEvaluator? If so, how? #583

Closed Answered by N-Wouda
kobeIsMyYouth asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kobeIsMyYouth,

The PenaltyManager is defined in pyvrp/PenaltyManager.py, and the CostEvaluator in pyvrp/cpp/CostEvaluator.h (and the corresponding source file). You can modify those in a fork and then install this forked version of PyVRP in your project. An example of how to install a modified version of PyVRP from git using poetry can be found here. Hope that helps.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bmorlo
Comment options

@N-Wouda
Comment options

Answer selected by N-Wouda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants