Hi Seoms
I have the same problem as well. did you find the solution????
Search found 5 matches
- 1 year ago
- Forum: Syntax
- Topic: Please check my code. I have no idea what's wrong with it
- Replies: 4
- Views: 4802
- 3 years ago
- Forum: Modeling
- Topic: Why does GAMS change binary variables to positive ones in a loop?
- Replies: 3
- Views: 3982
Re: Why does GAMS change binary variables to positive ones in a loop?
Hey im looking for saa in gams. would appreciate if you would help me out Dear friends, I have coded a scheduling problem in GAMS using the Sample Average Approximation. This model is a MILP mathematical model. I have chosen Cplex as the solver for this problem. The code solves a problem in a loop f...
- 5 years ago
- Forum: Modeling
- Topic: tricking in equation
- Replies: 4
- Views: 3914
Re: tricking in equation
Almost, you write smax(i,g(i)). A warning: the resulting models will be highly non-convex, so local solvers will most likely miss the global optimum. For example: set i / 1,2 /; Table idat c up 1 2 50 2 1 200; variable z; positive variable x(i); equation e; e.. z =e= smax(i,idat(i,'c')*x(i)); model...
- 5 years ago
- Forum: Modeling
- Topic: tricking in equation
- Replies: 4
- Views: 3914
Re: tricking in equation
Hello, For indexed arguments, or rather parameter values, one can use the smin() operation, which works similar to sum() operation. For equations, you can use the max() function. Goes something like max(arg1,arg2,arg3). a<x<b is actually two separate inequalities, and should be written as such. tha...
- 5 years ago
- Forum: Modeling
- Topic: tricking in equation
- Replies: 4
- Views: 3914
tricking in equation
Guys I have 2 questions and appreciate if anyone answer 1. there is a function that can pick the Largest value among all arguments. Do u know any function that can be used in equations? 2. i want to write a<x<b in equations (a,x,b are variables). the common way is that use 2 equations(one for a<x an...