Search found 10 matches

by ersuhaib786
1 year ago
Forum: Modeling
Topic: how to write the quadratic and logarithmic model in GAMS
Replies: 9
Views: 2155

Re: how to write the quadratic and logarithmic model in GAMS

where to write the encircled part of the equation in the code. i have attached the JPG file.
by ersuhaib786
1 year ago
Forum: Modeling
Topic: how to write the quadratic and logarithmic model in GAMS
Replies: 9
Views: 2155

Re: how to write the quadratic and logarithmic model in GAMS

In Equation 2, there are four terms. where to write [gaama*(omeega**2)/(2*alpha)] ... where do i have to write this term in my code.
by ersuhaib786
1 year ago
Forum: Modeling
Topic: how to write the quadratic and logarithmic model in GAMS
Replies: 9
Views: 2155

Re: how to write the quadratic and logarithmic model in GAMS

My mistake, unfortunately I uploaded the .gdx file. I have attached now the .gms file and my problem formulation (JPG file) for the reference. Kindly review it and where do I have to write this gaama (sqr(omega)/2*alpha) part.- Line 200
cus model.jpeg
by ersuhaib786
1 year ago
Forum: Modeling
Topic: How to write below quadratic utility function equations in GAMS with conditions
Replies: 1
Views: 1128

How to write below quadratic utility function equations in GAMS with conditions

JPG file
JPG file
how can i write quadratic equation in gams with upper and lower bounds. Attaching JPG file for reference. yours suggestions please.
by ersuhaib786
1 year ago
Forum: Modeling
Topic: how to write the quadratic and logarithmic model in GAMS
Replies: 9
Views: 2155

Re: how to write the quadratic and logarithmic model in GAMS

Thank you so much for the reply. I can now evaluate U2,U3, but I am getting error for writing U.1 would u kindly review it. I am attaching .gms file for the review, also there are two parts of U1 with 3 bounds. Kindly help me out.
Customer profit maximization.gdx
(2.11 KiB) Downloaded 83 times
by ersuhaib786
1 year ago
Forum: Modeling
Topic: how to write the quadratic and logarithmic model in GAMS
Replies: 9
Views: 2155

how to write the quadratic and logarithmic model in GAMS

I am modelling a consumer model, but i don't know how to write this type of equation . Kindly help me out with the equation writing. yours valuable suggestions, comments and help are welcomed. I am attaching the .gms file (code) and JPG file (equations) for the reference. Kindly help me out. consume...
by ersuhaib786
1 year ago
Forum: Modeling
Topic: *** Error at line 171: division by zero (0)
Replies: 2
Views: 1312

*** Error at line 171: division by zero (0)

hello everyone, i need little help and guidance regarding my GAMS code. i am getting the following error (*** Error at line 171: division by zero (0).
I am attaching .gms file for your reference. pls provide your your valuable suggestions and comments. Thank you.
by ersuhaib786
2 years ago
Forum: Modeling
Topic: How to model a concave piecewise linear function
Replies: 1
Views: 1497

How to model a concave piecewise linear function

IMG_20210505_115729.jpg
How can i model my equation 8 (which is piecewise linear function) in to milp.
by ersuhaib786
3 years ago
Forum: Modeling
Topic: Constraint problem with maximum
Replies: 1
Views: 2192

Constraint problem with maximum

Can anybody help me in writing this constraint, i am getting error. While i write #Pimax(t), smax inside i am getting error. **Set expected**. Could anyone help me pls
Can anybody help me in writing this constraint, i am getting error. While i write #Pimax(t), smax inside i am getting error. **Set expected**. Could anyone help me pls