Sign inSign up

stephanecaron/proxqp_qforplan

By stephanecaron

•Updated almost 4 years ago

Reproducing a ProxQP 0.2.4 issue on the QFORPLAN problem

Image
0

867

stephanecaron/proxqp_qforplan repository overview

To run a container from this image:

docker run -it --rm stephanecaron/proxqp_qforplan

It will run the following script:

from time import perf_counter

import proxsuite
import scipy.io as spio

m = spio.loadmat("QFORPLAN.mat", squeeze_me=True)
P = m["P"].astype(float)
q = m["q"].astype(float)
A = m["A"].astype(float)
b = m["b"].astype(float)
C = m["C"].astype(float)
l = m["l"].astype(float)
u = m["u"].astype(float)

print("Solving dense with verbose=True...")
start = perf_counter()
proxsuite.proxqp.dense.solve(P, q, A, b, C, l, u, verbose=True)
print(f"Time: {perf_counter() - start} s")

print("Solving dense without verbose kwarg...")
start = perf_counter()
proxsuite.proxqp.dense.solve(P, q, A, b, C, l, u)
print(f"Time: {perf_counter() - start} s")

On my machine, the first solve prints lots of messages, then terminates fine, while the second one (without keyword argument) hangs.

Tag summary

Content type

Image

Digest

sha256:928c6e5be…

Size

129.2 MB

Last updated

almost 4 years ago

docker pull stephanecaron/proxqp_qforplan