It looks like this call to unset_eqilibration() is redundant since the matrices and vectors that get restored by it are overwritten right after. This would not be an issue by itself, but is very inconvenient since it forces the user to alternate between two locations in memory for the A, G, c, h, b data between calls to ECOS_updateData() and ECOS_solve().
It looks like this call to
unset_eqilibration()
is redundant since the matrices and vectors that get restored by it are overwritten right after. This would not be an issue by itself, but is very inconvenient since it forces the user to alternate between two locations in memory for theA
,G
,c
,h
,b
data between calls toECOS_updateData()
andECOS_solve()
.https://github.com/embotech/ecos/blob/d0a0551827a3f7b01dee261604ef02c5706d8c15/src/ecos.c#L1655