Hi Maria
H.FX(v,d,h,j,"1") = 1;
Cheers
Renger
Search found 639 matches
- 5 years ago
- Forum: Syntax
- Topic: Define a value for a multidimensional variable
- Replies: 1
- Views: 3198
- 5 years ago
- Forum: Modeling
- Topic: Shock in Loop cause domain errors
- Replies: 3
- Views: 3186
Re: Shock in Loop cause domain errors
Hi Qiaomin
This question is hard to answer without seeing the complete code, so you might want to attach your code.
CHeers
Renger
This question is hard to answer without seeing the complete code, so you might want to attach your code.
CHeers
Renger
- 5 years ago
- Forum: Solvers
- Topic: Please help with solver
- Replies: 4
- Views: 3879
Re: Please help with solver
Hi
This is the optimal solution imagine a one-dimensional problem: x<5 and z=3x. 0 is the optimal solution.
It would make more sense if you would have >= constraints.
Cheers
Renger
This is the optimal solution imagine a one-dimensional problem: x<5 and z=3x. 0 is the optimal solution.
It would make more sense if you would have >= constraints.
Cheers
Renger
- 5 years ago
- Forum: Modeling
- Topic: Cplex did not give optimal solution for MISOCP problem after removing a redudant constraint
- Replies: 7
- Views: 5599
Re: Cplex did not give optimal solution for MISOCP problem after removing a redudant constraint
Hi Indeed, it is not the optimal solution, although you have this in the listing: MIP Solution: -375.869834 (1430 iterations, 15 nodes) Best possible: -375.869834 Absolute gap: 0.000000 Relative gap: 0.000000 If I use couenne or bonmin (both are free and global solvers), I get the "correct"...
- 5 years ago
- Forum: Modeling
- Topic: Cplex did not give optimal solution for MISOCP problem after removing a redudant constraint
- Replies: 7
- Views: 5599
Re: Cplex did not give optimal solution for MISOCP problem after removing a redudant constraint
Hi Feifan
How do you know that the solution is not optimal? Constraint 4 and 5 could have an impact on the choice of the variables.
(It is hard to check without the Gams code).
Cheers
Renger
How do you know that the solution is not optimal? Constraint 4 and 5 could have an impact on the choice of the variables.
(It is hard to check without the Gams code).
Cheers
Renger
- 5 years ago
- Forum: Solvers
- Topic: Please help with solver
- Replies: 4
- Views: 3879
Re: Please help with solver
Hi There is nothing wrong with your solution: you have three less-than-or-equal constraints and a to minimize objective equation all with positive coefficients. This means that {0,0,0} is the minimal and optimal solution. All constraints are met and the objective variable is minimized. Perhaps you m...
- 5 years ago
- Forum: Modeling
- Topic: Execution Error : Division by zero
- Replies: 3
- Views: 4004
Re: Execution Error : Division by zero
Hi The only equation in the model used with a division is: augm_obj.. sum(o1,dir(o1)*b(o1)) + 1e-3*sum(om1,sl(om1)/(maxobj(om1) - minobj(om1))) =e= a_objval; so, it looks like the difference between maxobj(om1) and minobj(om1) gets zero for a certain or all om1. You could rewrite the equation by add...
- 5 years ago
- Forum: Solvers
- Topic: output the results to excel
- Replies: 1
- Views: 2403
Re: output the results to excel
Hi Vahdi
You will find the answer in the first example of the GDXXRW documentation.
Cheers
Renger
You will find the answer in the first example of the GDXXRW documentation.
Cheers
Renger
- 5 years ago
- Forum: Solvers
- Topic: *** Failure calling solver: CONOPT4 (rc=1). What does it mean?
- Replies: 6
- Views: 6828
Re: *** Failure calling solver: CONOPT4 (rc=1). What does it means?
Hi
Conopt4, as far as I can see in the documentation, came with GAMS version 25.1. Perhaps you have an older version of GAMS.
Just try 'option nlp=conopt;' (assuming you are trying to solve an NLP problem).
CHeers
Renger
Conopt4, as far as I can see in the documentation, came with GAMS version 25.1. Perhaps you have an older version of GAMS.
Just try 'option nlp=conopt;' (assuming you are trying to solve an NLP problem).
CHeers
Renger
- 5 years ago
- Forum: Solvers
- Topic: Various Answers
- Replies: 4
- Views: 4290
Re: Various Answers
It sounds a little bit weird but perhaps https://www-01.ibm.com/support/docview. ... wg21399979 can explain it.
Cheers
Renger
Cheers
Renger