我正在使用python并使用纸浆库生成了一个lp文件。现在,我想调用DbWatchlistProvider
来使用Caused by: javax.persistence.RollbackException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.4.v20190115-ad5b7c6b2a): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10144 table: WATCHLISTPROVIDER
Error Code: -104
Call: INSERT INTO WatchlistProvider (Key, Description, Id) VALUES (?, ?, ?)
bind => [3 parameters bound]
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.4.v20190115-ad5b7c6b2a): org.eclipse.persistence.exceptions.DatabaseException
Query: InsertObjectQuery
Caused by: java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10144 table: WATCHLISTPROVIDER
Caused by: org.hsqldb.HsqlException: integrity constraint violation: unique constraint or index violation; SYS_PK_10144 table: WATCHLISTPROVIDER
求解器中的实际lpsolve
函数来解决问题。
这是代码:
我尝试从lp
求解器生成lpsolve
文件,它给出了相同的错误。
lp
我应该能够在lpsolve
求解器中使用纸浆包装编写的lp_handle = lpsolve('read_lp', "lpfile.lp", NORMAL,"test_model")
文件。
有人可以帮助我吗?