Skip to content

Commit

Permalink
Fixes rotated cone wrongly computed in Mosek
Browse files Browse the repository at this point in the history
  • Loading branch information
hlefebvr committed Sep 28, 2023
1 parent 896e1e1 commit b895106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/optimizers/solvers/Optimizers_Mosek.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ idol::MosekVar idol::Optimizers::Mosek::hook_add(const Var &t_var, bool t_add_co

MosekVar result;

result.variable = m_model->variable(1, mosek::fusion::Domain::unbounded());
result.variable = m_model->variable(/* t_var.name(), */ 1, mosek::fusion::Domain::unbounded());

const double lb = parent().get_var_lb(t_var);
const double ub = parent().get_var_ub(t_var);
Expand Down Expand Up @@ -181,7 +181,7 @@ idol::MosekCtr idol::Optimizers::Mosek::hook_add(const Ctr &t_ctr) {

auto it = rq_cone_expr.begin();

if (!row.linear().empty()) {
if (!row.linear().empty() || !row.rhs().is_zero()) {

auto& head1 = *it;
++it;
Expand Down

0 comments on commit b895106

Please sign in to comment.