请有人帮我解决这个错误谢谢,我使用 JaCoP 库,这是一个传输问题,我需要找到 OptimalSearch 它的约束编程
Exception in thread "main" java.lang.NullPointerException
at JaCoP.core.IntVar.singleton(IntVar.java:378)
at JaCoP.core.IntVar.putModelConstraint(IntVar.java:301)
at JaCoP.constraints.SumWeight.impose(SumWeight.java:301)
at JaCoP.core.Store.impose(Store.java:851)
at transporte.Transporte.model(Transporte.java:73)
at transporte.Transporte.main(Transporte.java:86)
Java Result: 1