conroylau / lpinfer

lpinfer: An R Package for Inference in Linear Programs
GNU General Public License v3.0
3 stars 5 forks source link

fsst return fields cone and range have different structure #75

Closed a-torgovitsky closed 4 years ago

a-torgovitsky commented 4 years ago

It appears that cone is a list that has two components:

What is x?

On the other hand, range seems to just be a scalar

conroylau commented 4 years ago

The x component of cone is the optimal solution vector, while the objval component is the optimal objective value.

Originally, range and cone have the same structure because they are solving a LP. But range is now just a scalar because it is only computing the infinity-norm.

Do you think the optimal solution vector would be useful to the user, or I should just drop it? Thanks!

a-torgovitsky commented 4 years ago

I see, that makes sense.

I don't think the x component is necessary, so let's drop that. That way both cone and range are scalars.

conroylau commented 4 years ago

Done! The x component is now dropped.