Hi,
Please have a look at point 2 of the forum rules: app.php/rules
Your code cannot be executed without manually fixing all the broken table formatting.
Fred
Search found 373 matches
- 2 years ago
- Forum: Modeling
- Topic: Wrong Solution
- Replies: 1
- Views: 1371
- 3 years ago
- Forum: API
- Topic: Dynamic set problem
- Replies: 1
- Views: 4112
Re: Dynamic set problem
Hi, sounds as if you need a two dimensional set that maps vehicles v to types t based on parameter A(t). Maybe the following example is helpful. set i customer / i1*i10 / t type / t1*t3 / v vehicle / v1*v10 / ; alias(i,j); parameter A(t) / t1 1, t2 1, t3 7 / ; set map(t,v) map vehicles to types; map...
- 3 years ago
- Forum: Modeling
- Topic: wrong solution
- Replies: 3
- Views: 2802
Re: wrong solution
How do you know the solution is not correct? I suggest to to share the xlsx file, so other users can run your model.
Fred
Fred
- 3 years ago
- Forum: Syntax
- Topic: EMP Formulation
- Replies: 2
- Views: 2628
Re: EMP Formulation
Hi,
The following shoudl do the trick.
I hope this helps!
Fred
The following shoudl do the trick.
Code: Select all
putclose emp '* problem %gams.i% ' /
'randvar bf discrete ' a1 ' ' a2 ' ' b1 ' ' b2 ' ' c1 ' ' c2 /
'stage 2 bf u demand';
Fred
- 3 years ago
- Forum: Syntax
- Topic: Indicator constraints cplex
- Replies: 2
- Views: 2689
Re: Indicator constraints cplex
Hi,
you have to provide the domain for the equation and the variable. I suggest to try
I hope this helps!
Fred
you have to provide the domain for the equation and the variable. I suggest to try
Code: Select all
$Onecho > cplex.opt
threads=0
indic Constraint1(p,s,m,i,j)$y(p,s,m,i,j) 0
$Offecho
Fred
- 3 years ago
- Forum: Syntax
- Topic: MCP code: Endogenous relational opearations require model type "dnlp"
- Replies: 2
- Views: 1854
Re: MCP code: Endogenous relational opearations require model type "dnlp"
Hi, The equation mentioned in the error 83 solve rs_transit using mcp; **** $57,256 **** 57 Endogenous relational operations require model type "dnlp" **** 256 Error(s) in analyzing solve statement. **** The following MCP errors were detected in model rs_transit: **** 57 equation rationkjd...
- 3 years ago
- Forum: Solvers
- Topic: Parallel processing with CPLEX
- Replies: 3
- Views: 5126
Re: Parallel processing with CPLEX
Where have you heard that CPLEX can use GPUs? I think that is plain wrong.
It can use multiple cores/threads though. In GAMS you can set the number of threads via option threads.
I hope this helps!
Fred
It can use multiple cores/threads though. In GAMS you can set the number of threads via option threads.
I hope this helps!
Fred
- 3 years ago
- Forum: Modeling
- Topic: Integer Infeasible Soluiton
- Replies: 1
- Views: 1954
Re: Integer Infeasible Soluiton
Hi, When posting code code, please use the code tags. The code tags are inserted if you click on the symbol with "<\>". Otherwise the formatting (e.g. of tables) gets destroyed when copy/pasting code. For your model even the RMIP (the LP you get when neglecting integrality requirements for...
- 3 years ago
- Forum: Syntax
- Topic: error 66 and 256
- Replies: 2
- Views: 2818
Re: error 66 and 256
Hi, When you look into the lst file, you will find the following error message: 66 solve data_envelopment using lp minimizing M; **** $66,256 **** 66 The symbol shown has not been defined or assigned **** A wild shot: You may have spurious commas in the explanatory **** text of a declaration. Check ...
- 3 years ago
- Forum: Solvers
- Topic: CPLEX OPTCR
- Replies: 2
- Views: 3196
Re: CPLEX OPTCR
Hi,
When you set
Cplex should terminate as soon as that gap is reached.
Could you share a log and your code?
Fred
When you set
Code: Select all
OPTIONS OPTCR=0.05;
Could you share a log and your code?
Fred