gams:restrict_the_increments_of_a_variable_to_certain_values_only

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

Both sides previous revision Previous revision | |||

gams:restrict_the_increments_of_a_variable_to_certain_values_only [2008/06/19 12:59] support |
gams:restrict_the_increments_of_a_variable_to_certain_values_only [2020/05/19 14:17] Lutz Westermann |
||
---|---|---|---|

Line 11: | Line 11: | ||

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

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 | 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