The problem is solved with extra loops and a set.
Used a break statement.
Thank you, Abhi140 and others, for your help.
Search found 29 matches
- 8 months ago
- Forum: Syntax
- Topic: Store results in While loop with logical termination condition on iteration counter not over a set
- Replies: 1
- Views: 4985
Store results in While loop with logical termination condition on iteration counter not over a set
Hi Everyone, I am using a while loop with the logical condition on the iteration counter. I need to store & analyze the values of each variable and computed parameters (results1, results2, results3, CoupErr, PijCoupErr, VCoupErr in each iteration 'iter') in each iteration. Any idea how can I do ...
- 1 year ago
- Forum: Syntax
- Topic: Finding type of an integer variable
- Replies: 2
- Views: 1409
Re: Finding type of an integer variable
Thank you Bussieck for your response.
- 1 year ago
- Forum: Syntax
- Topic: Finding type of an integer variable
- Replies: 2
- Views: 1409
Finding type of an integer variable
Hi Everyone, I need to find whether an integer variable is an odd or even number. The problem is as follows. For a set i /1:5/; Integer variable x(i); Variable a(i), OF; if x(i) is odd, then a(i) => 10; if x(i) is even, then a(i) <= 10; x.lo(i) = 0; x.up(i) = 10; I need to minimize OF = sum(i,a(i));...
- 2 years ago
- Forum: Solvers
- Topic: IPOPT EXIT: Solved To Acceptable Level.
- Replies: 3
- Views: 7047
Re: IPOPT EXIT: Solved To Acceptable Level.
Hi,
Actually, this status isn't listed in either of these model stats or solver stats. (By the way, my loop terminates if modelstat=1 or modelstat=2. )
Actually, this status isn't listed in either of these model stats or solver stats. (By the way, my loop terminates if modelstat=1 or modelstat=2. )
- 2 years ago
- Forum: Solvers
- Topic: IPOPT EXIT: Solved To Acceptable Level.
- Replies: 3
- Views: 7047
IPOPT EXIT: Solved To Acceptable Level.
HI,
I am using IPOPT in a loop. Inside the loop, a few of the solutions have reported output message as "EXIT: Solved To Acceptable Level.'. How to terminate the loop if this condition occurs?
Thanks & Regards,
Abhi, Research Scholar
I am using IPOPT in a loop. Inside the loop, a few of the solutions have reported output message as "EXIT: Solved To Acceptable Level.'. How to terminate the loop if this condition occurs?
Thanks & Regards,
Abhi, Research Scholar
- 2 years ago
- Forum: Modeling
- Topic: Execution error ErrorLevel = 112
- Replies: 1
- Views: 1174
Re: Execution error ErrorLevel = 112
The issue is resolved. I had to stop syncing my folders (online).
- 2 years ago
- Forum: Modeling
- Topic: Execution error ErrorLevel = 112
- Replies: 1
- Views: 1174
Execution error ErrorLevel = 112
Hi, I am getting an execution error in Put_Utilities. It's showing ErrorLevel = 112. It's unable to delete the directory. Any idea how to get rid of this error? I couldn't find it in the gams document. Cannot delete directory: 225d Cannot delete directory: 225d Cannot delete directory: 225d Cannot d...
- 2 years ago
- Forum: Syntax
- Topic: GAMS calling GAMS, compilation & Execution phases
- Replies: 7
- Views: 3335
Re: GAMS calling GAMS, compilation & Execution phases
I think I got it. I will try to repost the problem with the solution.
- 2 years ago
- Forum: Syntax
- Topic: GAMS calling GAMS, compilation & Execution phases
- Replies: 7
- Views: 3335
Re: GAMS calling GAMS, compilation & Execution phases
Shall I share a code reproducing the same problem?