modeling a nurse scheduling problem i cant solve erorrs please help me

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 7 years ago

modeling a nurse scheduling problem i cant solve erorrs please help me

Post by Archiver »


hello everyone can you help me solve problem
i can't resolve errors in gams model
i attached file
please help me it's so important for me

--
Attachments

[The extension ~gm has been deactivated and can no longer be displayed.]

nurseproblem.gms
(2.53 KiB) Downloaded 268 times
Archiver
User
User
Posts: 7876
Joined: 7 years ago

RE: modeling a nurse scheduling problem i cant solve erorrs please help me

Post by Archiver »


Hi Soheil



Here some first help:



set

j, jj /A*C/



should be



set j /A,B,C/



(you can’t use A*B, only sequences of numbers; you need to use “alias” to define an alias:

alias(j,jj);





equ1(k).. sum(k,x(i,j,k))=G=M(i,j);



equation eq1 is defined for every element of k, but then you sum over k itself. Furthermore, you use the sets i and j in the equation, but these are not part of the equation definition.

This would work:



equ1(i,j).. sum(k,x(i,j,k))=G=M(i,j);



Cheers

Renger







From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Soheil Zandi
Sent: Saturday, January 3, 2015 22:31
To: gamsworld@googlegroups.com
Subject: modeling a nurse scheduling problem i cant solve erorrs please help me



hello everyone can you help me solve problem

i can't resolve errors in gams model

i attached file

please help me it's so important for me

--
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/d/optout.

--
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/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: modeling a nurse scheduling problem i cant solve erorrs please help me

Post by Archiver »


thnx
dear Renger
but after first revise i can not model at equation for i,j,k .,i mean need a ''relaton between i,j or k'' or not
and then i see 87 error after i press F9 key and i can not solve that errors
please give more information after read nurse problem assumption and sets and parameters and you can help me
regards

--
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/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: modeling a nurse scheduling problem i cant solve erorrs please help me

Post by Archiver »


Dear Renger

I'm working on an OR project, a MIP/LP nurse scheduling & assignment problem for a healthcare project.

I would like to ask if you could help me with coding so that I can pay you. I have started with coding bu need an expert to help.

Thanks & hope to hear from you soon; and I will contact you asap.

On Monday, January 5, 2015 at 3:59:06 AM UTC-5, Renger van Nieuwkoop wrote:

Hi Soheil



Here some first help:



set

j, jj /A*C/



should be



set j /A,B,C/



(you can’t use A*B, only sequences of numbers; you need to use “alias” to define an alias:

alias(j,jj);





equ1(k).. sum(k,x(i,j,k))=G=M(i,j);



equation eq1 is defined for every element of k, but then you sum over k itself. Furthermore, you use the sets i and j in the equation, but these are not part of the equation definition.

This would work:



equ1(i,j).. sum(k,x(i,j,k))=G=M(i,j);



Cheers

Renger







From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Soheil Zandi
Sent: Saturday, January 3, 2015 22:31
To: gams...@googlegroups.com
Subject: modeling a nurse scheduling problem i cant solve erorrs please help me



hello everyone can you help me solve problem

i can't resolve errors in gams model

i attached file

please help me it's so important for me

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

--
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/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

AW: modeling a nurse scheduling problem i cant solve erorrs please help me

Post by Archiver »


Hi Ike



It depends on what kind of project it is, on how much help you want (hours) and how much you can pay…

If you send me this information, I will consider it.



Cheers

Renger



Von: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] Im Auftrag von Ike Cook
Gesendet: Thursday, March 5, 2015 4:26 AM
An: gamsworld@googlegroups.com
Betreff: Re: modeling a nurse scheduling problem i cant solve erorrs please help me



Dear Renger



I'm working on an OR project, a MIP/LP nurse scheduling & assignment problem for a healthcare project.

I would like to ask if you could help me with coding so that I can pay you. I have started with coding bu need an expert to help.

Thanks & hope to hear from you soon; and I will contact you asap.


On Monday, January 5, 2015 at 3:59:06 AM UTC-5, Renger van Nieuwkoop wrote:

Hi Soheil



Here some first help:



set

j, jj /A*C/



should be



set j /A,B,C/



(you can’t use A*B, only sequences of numbers; you need to use “alias” to define an alias:

alias(j,jj);





equ1(k).. sum(k,x(i,j,k))=G=M(i,j);



equation eq1 is defined for every element of k, but then you sum over k itself. Furthermore, you use the sets i and j in the equation, but these are not part of the equation definition.

This would work:



equ1(i,j).. sum(k,x(i,j,k))=G=M(i,j);



Cheers

Renger







From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Soheil Zandi
Sent: Saturday, January 3, 2015 22:31
To: gams...@googlegroups.com
Subject: modeling a nurse scheduling problem i cant solve erorrs please help me



hello everyone can you help me solve problem

i can't resolve errors in gams model

i attached file

please help me it's so important for me

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

--
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/d/optout.

--
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/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: modeling a nurse scheduling problem i cant solve erorrs please help me

Post by Archiver »


Hi Soheil,

i'm new on gams program. And i try to my solve nurse scheduling problem for my project.
i read this topic, if you solve your problem, can you send me your gms file.
i need urgent help. if you help me, i will thankful you. Thanks...

3 Ocak 2015 Cumartesi 23:31:19 UTC+2 tarihinde Soheil Zandi yazdı:

hello everyone can you help me solve problem
i can't resolve errors in gams model
i attached file
please help me it's so important for me

--
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Post Reply