Hello
I have a problem with set covering.
The problem is :
There’re two subset of ATC, Assignment and NotAssignment. I can’t enter the Decision variables in the set definition. I don’t know where should I write it in.
Set Assignment should enter: x<170, y1=1, z<100
Set NotAssignment should enter: x>170, y1=0, z>100
Thanks!!!
Andy
restrictions::
Set Assignment should enter: x<170, y1=1, z<100
Set NotAssignment should enter: x>170, y1=0, z>100
Thanks a lot
Andy
The set Assignment should contain those elements k for which there does NOT exist a combination (d,i,t) such that x(k,d,i,t) > 170 or y1(k,d,i,t) = 1 or z(k,d,i,t) > 100
--To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/ALMze1j011AJ.
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To post to this group, send email to ai...@googlegroups.com.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/aimms?hl=en.
(k | not ( k in Assignment(k,d,i,t) )
{k | not ( k in Assignment ) }
Hi
I think both statement are error ! I had add the file.
2012/5/1 Guido Diepen <>
Hi,
at which exact position does it give this error? If you double-click on an error in AIMMS, the editor will jump to the specific point in your code that is causing the error. Is it in the first or in the second statement?Guido DiepenAIMMS Specialist
On Wednesday, April 25, 2012 3:03:26 PM UTC+2, Andy Lin wrote:Hi Guido,I have done the{ k | not exists( (d,i,t) | (x(k,d,i,t) > 170) or (y1(k,d,i,t) = 1) or (z(k,d,i,t) > 100) ) } in Assignment and{ k | not ( k in Assignment ) } in NotAssignment ,but It comes eorrors { The symbol "not" is not expected.} ?I have another question:My constrains should run in condition like(sub3-3) { sum[k,x(k,d,i,t)]=sum[k,x(k,d-1,i,t)]+A(i)} y1(k,d,i,t)=1,d in Day, i in Shift, t in Js ,k in Assignment.it's means when y1(k,d,i,t)=1,d in Day, i in Shift, t in Js ,k in Assignment, do the sub3-3how can I define y1(k,d,i,t) in index domain?Thanks a lot!!!Andy
--To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/ALMze1j011AJ.
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To unsubscribe from this group, send email to aimms+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/gc1cxDRyiGAJ.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
HI Guido,1.I had rewrite( if y1(k,d,i,t)=1 then sum[k,x(k,d,i,t)]=sum[k,x(k,d-1,i,t)]+A(i) endif) into the book way(y1(k,d,i,t)=1 or sum[k,x(k,d,i,t)]=sum[k,x(k,d-1,i,t)]+A(i) ),but it error( The scope of index "k" has not been specified.)Now I want to change a way to use set seatset,it can let me not use If-then, just write k in seatset inindex domain.I write (y1(k,d,i,t)=1)in seatset definition, but why in date page just can write 0,1?I want write in ex: 9 seat in i=4,d=1.
2.I still don't know how to solve Assignment and Notassignment :(The scope of index "k" has not been specified.)Thanks!!!Andy
2012/5/1 Guido Diepen <>Hi Andy,
--
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/HIElikP65VoJ.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
y1(k,'1',i,'5') := 0 ;solve mincc ;
HI GuidoI have initial data problem.I use constrains to set initial data : in condition d=y1, t=5 that binary variable y1=0, y2=1,v1=0,v2=0.And I run the MainExecution but it's has two problems !!!
How can I set the initial data in other way?
2012/5/4 Guido Diepen <>Hi Andy,
the reason is exactly what the error says: the objective must be a single scalar variable and not a variable that is indexed (i.e. over the combination (d,i,t) as C is in your case).You can not just say:minimize c(1,1,1) c(1,1,2) c(1,1,3)for example, as it is not clear what the complete expression is: you only state the actual variables for all of the possible index combinations. If you want to minimize the sum of all c, you must introduce a new variable that does not have an index domain and as a definition has sum( (d,i,t) , c(d,i,t) ). This would result in the following minimization:minimize c(1,1,1) + c(c,1,12) + c(1,1,3)Please take a look at the AIMMS Language Reference, for example the part about parameter declarations (http://www.aimms.com/aimms/download/manuals/aimms3lr_parameterdeclaration.pdf). It might give some insight/tips about indexed parameters and why constructions like the above are not working.Guido DiepenAIMMS Specialist--
On Friday, May 4, 2012 12:40:23 PM UTC+2, Andy Lin wrote:HI Guido,I have a problem with minC(Mathematical program).In objective I select C(d,i,t), but it's occur :Expecting a scalar identifier(no free indecies) ?Thanks a lot ! : )AndyYou received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/HIElikP65VoJ.
To unsubscribe from this group, send email to aimms+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/Dzl6WFA51c0J.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
y1(k, '1', i, '5') := 0
{1..30}
{1..24}
Hi Guido:1.What's y1(k,'1',i,'5') := 0 means?I write in :MainExecutionBody: y1(d,'1',i,t,'5'):=0;y2(d,'1',t,'5'):=1;v1(d,'1',t,'5'):=0;v2(d,'1',t,'5'):=0;solve minccBut there's an error2.
How can I ensure set Day and Time will be chooses follow the sequence d{1 to 30 }, t{ 1 to 24}?Andy
2012/5/9 Guido Diepen <>
Hi Andy,
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/yCxodv9N6YoJ.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
HI Guido
I want to not use If-then in sub10 and sub11How can I set the binary variable: v1(k,d,i,t)=1 when x(k,d,i,t)>=162v1(k,d,i,t)=0 when x(k,d,i,t)<=162and
v2(k,d,i,t)=1 when x(k,d,i,t)<=162v2(k,d,i,t)=0 when x(k,d,i,t)>=162
Andy2012/5/10 Guido Diepen <>
Hi Andy,
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/PgHPYbnMOJIJ.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
Hi Guido
I had rewrite the sub-10 to Big-M, but how can I set M in AIMMS, is that a parameter or ?where can I find relate information with set the Big-M in AIMMS ?
2012/5/10 Guido Diepen <>
Hi Andy,
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/uEw6z-75iKAJ.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/M76DU9bhKhEJ.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
For more information regarding potential causes and consequences, see the help associated with the option "Warning_duplicate_column".
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/jXcHx1K2LrMJ.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/F8niiyeP2qMJ.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/n773Ho3wX98J.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
SET:
identifier : Assignment
subset of : ATC
index : assignmentset
definition : { k | not exists( (d,i,t) | (x(k,d,i,t) > 170) or (y1(k,d,i,t) = 1) or (z(k,d,i,t) > 100) ) } ;