Hi folks,I'm trying to use cvxpy (and hence cvxopt) to model optimal power flow in a relatively simple network with 28 nodes and 37 lines, but getting a "Rank(A) < p or Rank([G; A]) < n" error.(Using the same code, I can find successfully find the optimal solution for a much simpler network with 4 nodes and 4 lines.)I've checked very carefully that the constraints are not inconsistent (using my answer to my own question on Stack Overflow:Here is the traceback:File "main.py", line 201, in test_simple_optimisationp, bids, offers = optimize_flow(bids, offers, lines, nodes, injections_from_schedule, shift_factors, admittance.T)File "main.py", line 143, in optimize_flowp.solve()File "build/bdist.macosx-10.8-intel/egg/cvxpy/programs.py", line 169, in solveobj,valid = solve_prog(new_p,quiet)File "build/bdist.macosx-10.8-intel/egg/cvxpy/procedures/solve_prog.py", line 44, in solve_progsol = call_solver(p_expanded,quiet)File "build/bdist.macosx-10.8-intel/egg/cvxpy/procedures/call_solver.py", line 78, in call_solverr = solvers.conelp(c,G,h,dims,A,b)File "/Library/Python/2.7/site-packages/cvxopt/coneprog.py", line 687, in conelpraise ValueError("Rank(A) < p or Rank([G; A]) < n")ValueError: Rank(A) < p or Rank([G; A]) < nWhen I look at /Library/Python/2.7/site-packages/cvxopt/coneprog.py", line 687, it is actually rescuing an arithmetic error685 try: f = kktsolver(W)686 except ArithmeticError:..687 raise ValueError("Rank(A) < p or Rank([G; A]) < n")Does that make sense? Why would an arithmetic error (i.e. something like an OverflowError, ZeroDivisionError, FloatingPointError, unless cvxpy has extended it) mean that the problem is ill described i.e. has Rank(A) < p or Rank([G; A]) < n" ?Thanks,Matthew
Network problems often have dependency in the constraints.
--
You received this message because you are subscribed to the Google Groups "CVXOPT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cvxopt+un...@googlegroups.com.
To post to this group, send email to cvx...@googlegroups.com.
Visit this group at http://groups.google.com/group/cvxopt?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "CVXOPT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cvxopt/qlu3CK1TdVQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cvxopt+un...@googlegroups.com.
To post to this group, send email to cvx...@googlegroups.com.
Visit this group at http://groups.google.com/group/cvxopt.
For more options, visit https://groups.google.com/d/optout.