I’m the poor struggling soul. I tried to put a non-ninteger lower and upper bound on an integer variable. Your answer helped me out after 1½ days headache, thanks!
On Sunday, April 21, 2013 7:15:42 AM UTC+2, aon…@shortt.info wrote:
Hi,
You have probably found the problem and finished your project and graduated from your degree, but I thought I’d post for the benefit of others trying to fix this problem.
I saw this error for the first time today and couldn’t find anything about it in the GAMS user guide or the McCarl’s Guide, so it probably doesn’t happen frequently.
Anyway, in my case I had defined the total output of a type of production plant as well as separately defining the output of each plant individually.
I then calculated the number of production plants by dividing the total output by the unit output. The error occurred because I had incorrectly entered the total output of one of the types of production plant, so that when the “number of units of this type” calculation was performed, it did not evaluate to an integer.
For example:
Set type types of factory /big_factory, small_factory/;
Parameter total_production(type) production by each type of factory /big_factory 1005, small_factory 800/;
Parameter single_factory_production(type) production for a single factory of each type /big_factory 200, small_factory 50/;
Parameter number_of_units(type) number of factories of each type;
number_of_units(type) = total_production(type) / single_factory_production(type);
In this case, you’ll get a data model error because (1005 / 200) does not evaluate to an integer.
Hope this helps some struggling soul.
Good luck!
On Saturday, March 19, 2011 12:16:19 AM UTC+8, sapeksh wrote:
Hello,
I have defined a Mixed Complementarity Problem for a single Origin Destination network.
When I try running it to solve using mcp solver in GAMS, it states this.
*** Model structure has 11 data errors
I can’t seem to find any mistakes in the code. I What kind of data errors am I overlooking here?
–
Sapeksh Vemulapati
Department of Civil Engineering
Final Year, B.Tech
IIT Madras
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.