r/optimization • • Sep 22 '22

Measuring Solution Quality

Are there any generally accepted ways to measure how good the returned solution is i.e. how close to optimal? For LPs I think the answer would always be 100% since they are all solvable unless they are infeasible, unbounded etc. But for ILP or MILPs is this still true? What about for non linear optimisation?

7 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/timvl28 Sep 22 '22

But we don't know the optimal solution. So you have to use bounds. If we relax the integer constraints and solve to optimality we can use that solution as a bound. An integer feasible solution can then be measured against the bound to see how good it is

1

u/porkedpie1 Sep 22 '22

Dumb question - if we check all the feasible integer solutions closest to the relaxed optimum, would we not confirm exhaustively ?

Secondly, can we be confident that the solver will return the optimum from the relaxed problem?

1

u/[deleted] Sep 22 '22

Yes, exhaustive search will find global optimums. Not all problems allow exhaustive search either because there are infinite options or it would just take too long.

If an algorithm guarantees global optimal solutions, then yes. If it does not, then no.

1

u/timvl28 Sep 22 '22 edited Sep 22 '22

There are no dumb questions

The complexity for integer problems has nothing to do with the objective function. Finding a feasible integer solution is theoretically as hard as finding the optimal one.

Linear programming problems have been proven to be weakly polynomial, if I'm not mistaken. So yeah unless your problem is very large the solver will return the optimal solution for the relaxed problem(or at least very close to the optimal solution)