gams:restrict_the_increments_of_a_variable_to_certain_values_only

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

Next revision | Previous revision | ||

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 [2020/05/19 14:17] Lutz Westermann |
||
---|---|---|---|

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 or change the value of the command line parameter [[https://www.gams.com/latest/docs/UG_GamsCall.html#GAMSAOintvarup|intVarUp]]. |

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/restrict_the_increments_of_a_variable_to_certain_values_only.txt · Last modified: 2020/05/19 14:17 by Lutz Westermann