Search found 39 matches

by abb.omidi
5 years ago
Forum: Modeling
Topic: flexible job shop scheduling
Replies: 1
Views: 2709

Re: flexible job shop scheduling

hello According to the model, you can use from a table (or parameter) to define model data. For example, you may have a process time parameter (time of operation of jobs) or a route parameter (binary parameter: 1 if the operation of j pressed before operation of i in machine k, otherwise 0) that dep...
by abb.omidi
5 years ago
Forum: Modeling
Topic: Logical constraint
Replies: 0
Views: 2172

Logical constraint

Hello everybody I have a question about coding logical constraint in the GAMS IDE. Please, let me describe optimization model: { set i /1*2/; parameter cost(i); integer variable nb(i); .... of.. obj =e= sum(i,cost(i)*nb(i))+(x-1)*500; con1.. sum(i,nb(i)*ns(i)) =g= N; } There is a logical constraint ...
by abb.omidi
5 years ago
Forum: Modeling
Topic: solving a model with deferent solvers
Replies: 5
Views: 5333

Re: solving a model with deferent solvers

Dear Fred

Thanks for your replay.
Please let me describe my problem. I want to solve my model with three deferent solvers using for loop. I coded it with for statement but I want to know, do exist the better way to code it?

Best regards
by abb.omidi
5 years ago
Forum: Modeling
Topic: solving a model with deferent solvers
Replies: 5
Views: 5333

Re: solving a model with deferent solvers

Hello
Thanks for your reply.
My means that, have a specific syntax for write easy or better this subject?
(For example I know that, optfile syntax can replace with option=solver.name)

Best regards
by abb.omidi
5 years ago
Forum: Modeling
Topic: solving a model with deferent solvers
Replies: 5
Views: 5333

solving a model with deferent solvers

Hello I try to solve a model with deferent solver simultaneously. for example, with cplex, xpress, lindo. My code is: Scalar iter; Parameter solution; for(iter=1 to 1, ****************************************************** OPTION MIP=cplex; SOLVE FCTP USING MIP MIN obj; if (FCTP.modelstat<>%modelsta...
by abb.omidi
6 years ago
Forum: API
Topic: write an optimization model in java
Replies: 1
Views: 5349

Re: write an optimization model in java

Dear Michael
Thanks for your replay.

Pls, let me know, how can I define multidimensional sets & alias them in the Java API?

Best regards
by abb.omidi
6 years ago
Forum: API
Topic: write an optimization model in java
Replies: 1
Views: 5349

write an optimization model in java

Hello all I trying to write an optimization model in Java API directly. I read gams java API tutorial. I can define sets, parameters & variables in java but I don't define optimization model in java. pls, let me know, can I write my model in java directly or gams java API don't support this func...
by abb.omidi
6 years ago
Forum: Modeling
Topic: special sets and parameters
Replies: 1
Views: 2439

special sets and parameters

hello i have a flexible job shop model with below form: i index of machines /1*2/ j index of jobs /1*3/ k index of operations /1*5/ p index of positions /1*7/ l(j,k) /1.(1*5), 2.(1*3)/ * that is, operation k for job j f(i,p) /1.(1*5), 2.(1*3)/ * that is, position p in machine i model have 3 dimensio...
by abb.omidi
6 years ago
Forum: API
Topic: Combining GAMS & Java
Replies: 0
Views: 3275

Combining GAMS & Java

hello
can write an optimization model in java (sets, data, model) without write gams ide language in java editor, and solve it with gams? (such as cplex or gurobi api that dont need to write opl/gurobi ide languages)

best regards