2)min[7] : min[i] value should be less than units[i]
constraint min_c {
foreach(min[i] min[i] < units[i]);
}
3)limit[7] : limit[i] value should be > min[i] && < units[i]
constraint limit_c{
foreach(limit[i] limit[i] > min[i]);
solve min before limit;
}
Note : No syntax error .random values are not expected values - getting some garbage values.
2 & 3 constraints are not working - plse suggest me,any other way.
In reply to gani:
It would help others understand what you are trying to do if you showed the declarations of a variables used and explained what you mean by garbage values. Please show examples of what you are seeing versus what you expect.