0
votes
C:\Users\Zayad\Anaconda2\python.exe "C:/Users/Zayad/Desktop/Courses/Optimization II/Python/mod1 (1).py"

inconsistent arguments

Process finished with exit code 0

I don't know why I get the below error please help

C:\Users\Zayad\Anaconda2\python.exe "C:/Users/Zayad/Desktop/Courses/Optimization II/Python/mod1 (1).py"

inconsistent arguments

Process finished with exit code 0

Another Question what does cplex.SparsePair do if there is an example that would be great

Thanks

1
C:\Users\Zayad\Anaconda2\python.exe "C:/Users/Zayad/Desktop/Courses/Optimization II/Python/mod1 (1).py" inconsistent arguments Process finished with exit code 0 - Zeyad Kassem

1 Answers

-1
votes

See this documentation

And you may find an example foodmanu.py at CPLEX_Studio128\cplex\examples\src\python

You'll see

ic_dict["lin_expr"] = cplex.SparsePair(ind=[varindex(m, p, USE)], val=[1.0])

NB: There is a much easier python API: docplex