Search found 4 matches
- 5 years ago
- Forum: Syntax
- Topic: logical equations & binary variables
- Replies: 15
- Views: 15541
Re: logical equations & binary variables
Hi, I have one question for you Manassaldi. In my objective function I have this member that is z = [...]-TWC(j)*HS(j). Where HS(j)is a variable. Now, TWC(j) should be a parameter that works like this: TWC(j) = 0 when HS(j) < 1000 and TWC(j) = 3.21 when HS(j) >=1000. Any idea how to implement this i...
- 5 years ago
- Forum: Syntax
- Topic: Objective with if-condition
- Replies: 28
- Views: 22429
Re: Objective with if-condition
Hi Guys, I run into this thread and i found it useful but it unfortunately it doesn't completely solve my problem. I'm running an optimization problem where I have to minimize my objective function. my objective function is, in a simplified version, the following one: z =e = sum(t, sum(i,production_...
- 6 years ago
- Forum: Syntax
- Topic: If Statement - Uncontrolled Set entered as a costant
- Replies: 3
- Views: 3653
Re: If Statement - Uncontrolled Set entered as a costant
Thanks both Michael and Claudio for both your suggestion and your answers!
I'll try them immediately!
Cheers
I'll try them immediately!
Cheers
- 6 years ago
- Forum: Syntax
- Topic: If Statement - Uncontrolled Set entered as a costant
- Replies: 3
- Views: 3653
If Statement - Uncontrolled Set entered as a costant
Hi all! I'm currently working on a model that use an excel file, with binary inputs for 8760 hours (1 year.) The file is structured so that in the interested column you have either a 1 or a 0. GAMS is reading correctly the file but the problem occurs later. Practically I need to code this statement ...