无法使用python在lpsolve中读取lp文件

时间:2019-04-11 08:52:34

标签: python pulp lpsolve

我正在使用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") 文件。

有人可以帮助我吗?

0 个答案:

没有答案