Hi,I was out of office last Friday for a week long vacation.I took a quick look at the syntax error. The error "index k already has a scope" indicates in the definition of constraint, you already sum over k, but index domain is still defined over k. I adjusted the model simply based on the error. See the attached .aim file. Please double check to make sure the constraint is defined over indices correctly based on your formulation.BTW, I didn't see the problem formulation in your .rar file, but a binary .amb file. In order to open this file alone, I need to create a new project for it. If you share the model with other people, it is better to share both .prj and .amb files, or even .dat if you have save up some data cases. The attached .aim is a txt file which you can open the model with a text editor. Hope this helps!Thanks and happy holidays!
On Mon, Nov 21, 2011 at 5:03 PM, Muminu Adamu <adam...@gmail.com> wrote:
Good day,
I sent a mail last Saturday and have not heard from you since then. Thanks for your anticipated response.
On Fri, Nov 18, 2011 at 8:03 PM, Mingliang Fang <mfl...@gmail.com> wrote:Hi ,The error message is complaining about the syntax. If you double click an error, it will take you to the location where the error occurs.Based on what you have in the message, it is not sure how you define the expressions and the constraint in the model. Would you mind to show a more complete code so that we can see the cause of the errors?Thanks!Ming Fang
On Fri, Nov 18, 2011 at 10:24 AM, Muminu Adamu <adam...@gmail.com> wrote:
Good day,I tried your suggestion but I am still having some errors. This is what I didCompletionMaximum(i) :=
max(k,CompletionTimeOnMachine(i,k-1))EarliestStartTimeMax :=
max(j,EarliestStartTime)sum
((j,k),(EarliestDuedate(j) - ProcessingTime(j))*PositionOnTimeOrTardy(i,j,k)) <= max(CompletionMaximum(i),EarliestStartTimeMax) and the the following errors were displayedThe number of arguments in the variable "CompletionMaximum" is not correct.
The symbol ":=" is not expected.Thanks for your prompt response.On Thu, Nov 17, 2011 at 12:32 AM, Mingliang Fang <mfl...@gmail.com> wrote:Hi,It looks like the error message complains about the right hand side (RHS) of the constraint:max((j,k),(CompletionTimeOnMachine(i,k-1),EarliestDuedate(j) - ProcessingTime(j)))Max function in AIMMS can be used in the following two ways:Max(binding domain, expression)orMax(expression1, expression2, ...)The formulation of RHS constraint combines them both. Thus, it is resulting the error of unexpected ",".Maybe you can break down the RHS of constraint by defining two more expressions:Exp1(i): max(k,CompletionTimeOnMachine(i,k-1))Exp2: max(j,EarliestDuedate(j) - ProcessingTime(j))then, RHS becomes:max(Exp1(i), Exp2)Based on your formulation, I assume the constraint has index domain i.Hope this helps!Ming Fang--
On Wed, Nov 16, 2011 at 12:04 PM, Muminu Adamu <adam...@gmail.com> wrote:
The AIMMS format used is given below
On Nov 16, 5:26 pm, Muminu Adamu <adamu...@gmail.com> wrote:
> Good day,
>
> I need someone to assist me on how to represent the below constraint
> using the maximum function.
>
> aj <= {Max {Cik-1(S),aj – pj} + pj}xij i=1,. . . ,m; j =
> 1, . . . , n,
>
> i.e. finding the maximum of Cik-1 and aj-pj from k=1 . . j.
sum((j,k),(EarliestDuedate(j) -
ProcessingTime(j))*PositionOnTimeOrTardy(i,j,k)) <= max((j,k),
(CompletionTimeOnMachine(i,k-1),EarliestDuedate(j) -
ProcessingTime(j)))
It was given an error The symbol "," is not expected.
It seems
> the function available in AIMMS cannot do this. Please, I need help.
> Thanks
--
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.
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.
--
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.
--
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.
--
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.
--
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.
--
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/-/of802rThVRkJ.
Guido DiepenAIMMS Specialist--
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/-/3Vf9rzmy0h4J.