Originally posted by: story_
Hello all,
I have to define the upper bound of a range that takes value based on an integer parameter. Let's assume that this parameter is called R and equals to 10. So I want this range to have an upper bound of R/2 or 10/2=5. When I try to assign this value of 5 to an integer variable in order to define the upper bound of the range, I get the error "Cannot use type float for int" as 0.5 is not an integer value, however the value I am trying to get is still an integer one.
How may I make sure that I end up with an integer variable for the upper bound (maybe via a function for rounding float parameters)? What are your suggestions to solve this issue?
Thanks in advance,
#CPLEXOptimizers#DecisionOptimization