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
4 changes: 2 additions & 2 deletions PEPit/wrappers/mosek_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def send_constraint_to_solver(self, constraint, track=True):

sym_A = self.task.appendsparsesymmat(Point.counter, A_i, A_j, A_val)
self.task.putbaraij(nb_cons, 0, [sym_A], [1.0])
self.task.putaijlist(nb_cons + np.zeros(a_i.shape, dtype=np.int8), a_i, a_val)
self.task.putaijlist(np.full(a_i.shape, nb_cons), a_i, a_val)

if track:
self._constraint_index_in_mosek.append(nb_cons)
Expand Down Expand Up @@ -201,7 +201,7 @@ def send_lmi_constraint_to_solver(self, psd_counter, psd_matrix):
# fill the mosek (equality) constraint
self.task.putbaraij(nb_cons, 0, [sym_A1], [1.0])
self.task.putbaraij(nb_cons, psd_matrix.counter + 1, [sym_A2], [1.0])
self.task.putaijlist(nb_cons + np.zeros(a_i.shape, dtype=np.int8), a_i, a_val)
self.task.putaijlist(np.full(a_i.shape, nb_cons), a_i, a_val)
self.task.putconbound(nb_cons, mosek.boundkey.fx, -alpha_val, -alpha_val)

# Print a message if verbose mode activated
Expand Down
4 changes: 4 additions & 0 deletions docs/source/whatsnew/0.4.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
What's new in PEPit 0.4.1
=========================

- Fix: An integer overflow (due to previously specified dtype=int8) in :class:`MosekWrapper` has been fixed.