# GAMS Support Wiki

### Site Tools

gams:formulate_a_constraint_with_a_condition

# Differences

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

 gams:formulate_a_constraint_with_a_condition [2010/07/19 14:36]support gams:formulate_a_constraint_with_a_condition [2010/07/19 14:50] (current)support Both sides previous revision Previous revision 2010/07/19 14:50 support 2010/07/19 14:36 support 2007/08/10 10:51 external edit 2010/07/19 14:50 support 2010/07/19 14:36 support 2007/08/10 10:51 external edit Line 6: Line 6: min x, subject to x > 0 ? Is it 1.e-10 or 1.e-20 or something smaller. min x, subject to x > 0 ? Is it 1.e-10 or 1.e-20 or something smaller. ​ - Optimization theory is usually concerned with bounded closed sets where closed means that the boundary is part of the feasible set. Thus is no difference between ''<''​ and ''<​ =''​ for continuous variables when dealing with numerical algorithms. For discrete variables, the constraints mean exactly what they say. ''​=L=''​ means ''<​ ='',​ thus a constraint with an integer variable ''​=L= 9''​ means it can be less or equal to 9. If you want it to be less than 9, write the constraint as ''​=L= 8''​. + Optimization theory is usually concerned with bounded closed sets where closed means that the boundary is part of the feasible set. Thus there is no difference between ''<''​ and ''<​ =''​ for continuous variables when dealing with numerical algorithms. For discrete variables, the constraints mean exactly what they say. ''​=L=''​ means ''<​ ='',​ thus a constraint with an integer variable ''​=L= 9''​ means it can be less or equal to 9. If you want it to be less than 9, write the constraint as ''​=L= 8''​. 