我正在使用anaconda版本1.6.14,python版本3.6.5,纸浆版本1.6.8和CPLEX版本12.8。
当我运行pulp.pulpTestAll()时,硬币通过并且CPLEX_CMD在测试零约束时失败(请参见下面的输出)。
此问题给出了相同的输出:Pulp.pulpTestAll() test failed, too many values to unpack 但是问题是在问GUROBI为什么失败而不是CPLEX为什么失败,因此那里提供的答案没有回答我的问题。
pulp.pulpTestAll()的输出是:
pulp.pulpTestAll()
Testing zero subtraction
Testing inconsistant lp solution
Testing continuous LP solution
Testing maximize continuous LP solution
Testing unbounded continuous LP solution
Testing Long Names
Testing repeated Names
Testing zero constraint
Testing zero objective
Testing LpVariable (not LpAffineExpression) objective
Testing Long lines in LP
Testing LpAffineExpression divide
Testing MIP solution
Testing MIP solution with floats in objective
Testing MIP relaxation
Testing feasibility problem (no objective)
Testing an infeasible problem
Testing an integer infeasible problem
Testing column based modelling
Testing dual variables and slacks reporting
Testing fractional constraints
Testing elastic constraints (no change)
Testing elastic constraints (freebound)
Testing elastic constraints (penalty unchanged)
Testing elastic constraints (penalty unbounded)
* Solver <class 'pulp.solvers.PULP_CBC_CMD'> passed.
Solver <class 'pulp.solvers.CPLEX_DLL'> unavailable
Testing zero subtraction
Testing inconsistant lp solution
Testing continuous LP solution
Testing maximize continuous LP solution
Testing unbounded continuous LP solution
Testing Long Names
Testing repeated Names
Testing zero constraint
'_dummy'
* Solver <class 'pulp.solvers.CPLEX_CMD'> failed.
Testing zero subtraction
Testing inconsistant lp solution
Testing continuous LP solution
Testing maximize continuous LP solution
Testing unbounded continuous LP solution
Failure: status == -2 not in [-1]
Failure: status == Unbounded not in ['Infeasible']
Tests failed for solver <pulp.solvers.CPLEX_PY object at 0x7f7aaef0f898>
* Solver <class 'pulp.solvers.CPLEX_PY'> failed.
Solver <class 'pulp.solvers.COIN_CMD'> unavailable
Solver <class 'pulp.solvers.COINMP_DLL'> unavailable
Solver <class 'pulp.solvers.GLPK_CMD'> unavailable
Solver <class 'pulp.solvers.XPRESS'> unavailable
Solver <class 'pulp.solvers.GUROBI'> unavailable
Solver <class 'pulp.solvers.GUROBI_CMD'> unavailable
Solver <class 'pulp.solvers.PYGLPK'> unavailable
Solver <class 'pulp.solvers.YAPOSIB'> unavailable