gams:i_know_a_better_solution

This shows you the differences between two versions of the page.

— |
gams:i_know_a_better_solution [2008/10/24 14:56] (current) support created |
||
---|---|---|---|

Line 1: | Line 1: | ||

+ | ====== I know a better solution ====== | ||

+ | Sometimes users send us a model with the statement: the solver found a solution ''x'' with objective value ''z'', but I know a better solution y which has objective value ''z*''. The solver can sometimes help checking such a conjecture by fixing the variables to the proposed solution, and see if this causes any infeasibilities: | ||

+ | |||

+ | <code> | ||

+ | * enter data for proposed solution | ||

+ | PARAMETER P(I) proposed solution / | ||

+ | i1 1.0 | ||

+ | i2 2.0 | ||

+ | i3 3.0 | ||

+ | /; | ||

+ | |||

+ | * fix variables | ||

+ | X.FX(I) = P(I); | ||

+ | |||

+ | * and let solver check if this is a feasible solution | ||

+ | SOLVE M USING MIP MINIMIZING Z; | ||

+ | </code> |

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/i_know_a_better_solution.txt ยท Last modified: 2008/10/24 14:56 by support