conroylau / lpinfer

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

Estbounds output for when estimate is FALSE is a bit weird #73

Closed a-torgovitsky closed 4 years ago

a-torgovitsky commented 4 years ago
print(estbounds(data, lpm, solver = "gurobi", norm = 1, kappa = .1, estimate = FALSE))

This gives

The original problem is infeasible. The bounds will be estimated by a 1-norm.Estimated bounds: [0.13468, 0.1891] 

First, we should have this part as a "Warning" so that the user knows to correct it:

The original problem is infeasible. The bounds will be estimated by a 1-norm.

Second (and probably this will follow immediately from the first one), the sentence "Estimated bound..." should be on a new line.

conroylau commented 4 years ago

Done! The part The original problem is infeasible. The bounds will be estimated by a 1-norm. is now printed as a warning message.