Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/osqp/codegen/files_to_generate/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def finalize_options(self):


setup(name='PYTHON_EXT_NAME',
version='0.6.2.post8',
version='0.6.2.post9',
author='Bartolomeo Stellato, Goran Banjac',
author_email='bartolomeo.stellato@gmail.com',
description='This is the Python module for embedded OSQP: ' +
Expand Down
2 changes: 1 addition & 1 deletion src/osqp/interface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Python interface module for OSQP solver v0.6.2.post8
Python interface module for OSQP solver v0.6.2.post9
"""
from __future__ import print_function
from builtins import object
Expand Down
8 changes: 4 additions & 4 deletions src/osqp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ def prepare_data(P=None, q=None, A=None, l=None, u=None, **settings):
# Create elements if they are not specified
if P is None:
P = sparse.csc_matrix((np.zeros((0,), dtype=np.double),
np.zeros((0,), dtype=np.int),
np.zeros((n+1,), dtype=np.int)),
np.zeros((0,), dtype=int),
np.zeros((n+1,), dtype=int)),
shape=(n, n))
if q is None:
q = np.zeros(n)

if A is None:
A = sparse.csc_matrix((np.zeros((0,), dtype=np.double),
np.zeros((0,), dtype=np.int),
np.zeros((n+1,), dtype=np.int)),
np.zeros((0,), dtype=int),
np.zeros((n+1,), dtype=int)),
shape=(m, n))
l = np.zeros(A.shape[0])
u = np.zeros(A.shape[0])
Expand Down
2 changes: 1 addition & 1 deletion src/osqppurepy/_osqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class OSQP(object):
work - workspace
"""
def __init__(self):
self._version = "0.6.2.post8"
self._version = "0.6.2.post9"

@property
def version(self):
Expand Down
8 changes: 4 additions & 4 deletions src/osqppurepy/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ def setup(self, P=None, q=None, A=None, l=None, u=None, **settings):
# Create elements if they are not specified
if P is None:
P = sparse.csc_matrix((np.zeros((0,), dtype=np.double),
np.zeros((0,), dtype=np.int),
np.zeros((n+1,), dtype=np.int)),
np.zeros((0,), dtype=int),
np.zeros((n+1,), dtype=int)),
shape=(n, n))
if q is None:
q = np.zeros(n)

if A is None:
A = sparse.csc_matrix((np.zeros((0,), dtype=np.double),
np.zeros((0,), dtype=np.int),
np.zeros((n+1,), dtype=np.int)),
np.zeros((0,), dtype=int),
np.zeros((n+1,), dtype=int)),
shape=(m, n))
l = np.zeros(A.shape[0])
u = np.zeros(A.shape[0])
Expand Down