commercial diameter - declare Topic is solved

Problems with syntax of GAMS
Post Reply
Alexanre.ito
User
User
Posts: 10
Joined: 4 months ago

commercial diameter - declare

Post by Alexanre.ito » 3 months ago

Hi,
I have a problem where I have to calculate the diameter of a pipe, using the equations I will find the diameter value that is a decimal number.
But the diameter I will use is the commercial value, always selecting the next commercial size of the value found by the equations.
Then I must analyze the cost of these pipes as a function of the diameter and the length of the mesh.

d (mm) preço($/m)
100 7,5
150 10,25
...

I don't know how to enter this information.
If I must use the dollar, table, scalar, equation or upper and lower limit condition.

which of these methods is the best practice to use in GAMS because I would use (VLOOKUP, ..., IF...) table between intervals in EXCEL.

Alexanre.ito
User
User
Posts: 10
Joined: 4 months ago

Re: commercial diameter - declare

Post by Alexanre.ito » 3 months ago

I founded the answer:
Special Features for Mathematical Programs:
https://www.gams.com/latest/docs/UG_Lan ... tures.html

Post Reply