Skip to content
Merged
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
11 changes: 9 additions & 2 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,16 @@ int update_ldp(const int mask, DAQPWorkspace *work, DAQPProblem* qp){
}

// Make sure activate constraints are activated
if(do_activate == 1 && work->nh < 2){
if(do_activate == 1){
reset_daqp_workspace(work);
error_flag = activate_constraints(work);
if(work->nh < 2)
error_flag = activate_constraints(work);
else{// Activate the first level (since those constraints are hard)
int m_tmp = work->m;
work->m = work->break_points[0];
error_flag = activate_constraints(work);
work->m = m_tmp;
}
if(error_flag<0)
return error_flag;
}
Expand Down
Loading