gams:restrict_the_increments_of_a_variable_to_certain_values_only

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

gams:restrict_the_increments_of_a_variable_to_certain_values_only [2007/09/20 16:02] 127.0.0.1 external edit |
gams:restrict_the_increments_of_a_variable_to_certain_values_only [2008/06/19 12:59] (current) support |
||
---|---|---|---|

Line 10: | Line 10: | ||

y2xdef .. x =E= 1 + 0.25*y; | y2xdef .. x =E= 1 + 0.25*y; | ||

</code> | </code> | ||

- | You should note, that if your original model was an LP then the new model is a MIP model, and the solution time could be much larger. Also note, that the default upper bound on an integer variable is 100 which will translate into | + | You should note, that if your original model was an LP the new model is a MIP model, and the solution time could be much larger. Also note, the default upper bound on an integer variable is 100 which will translate into |

an upper bound on x of 1+0.25*100 = 26. If you have larger x-values you can increase the upper bound on y, but rounding for large X-values does not make much sense. | an upper bound on x of 1+0.25*100 = 26. If you have larger x-values you can increase the upper bound on y, but rounding for large X-values does not make much sense. |

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/restrict_the_increments_of_a_variable_to_certain_values_only.txt ยท Last modified: 2008/06/19 12:59 by support