Dear Michael,
You provide me with a good idea, and reply to the post timely, as always! I think your idea can resolve my problem, and is more efficient than the older code. Thanks again for your help!
Best regards,
Gray Lee
Search found 8 matches
- 1 year ago
- Forum: Modeling
- Topic: How to equalize the values of a variable in several time intervals
- Replies: 2
- Views: 1083
- 1 year ago
- Forum: Modeling
- Topic: How to equalize the values of a variable in several time intervals
- Replies: 2
- Views: 1083
How to equalize the values of a variable in several time intervals
Dear all, I am modeling the operating feature of a device capturing CO2 from the atmosphere. The function of the device is explained as follows. We assume that 96 time intervals in a day and one interval takes up 15min. The device can operate several cycles in one day. A thorough cycle should be fin...
- 1 year ago
- Forum: Solvers
- Topic: The cone to be appended has one variable which is already member of another cone-MOSEK solver
- Replies: 2
- Views: 2011
Re: The cone to be appended has one variable which is already member of another cone-MOSEK solver
Hi, I did not compare your GAMS model with the model in the PDF but showed how to overcome the issue with the disjoint cone requirement in MOSEK. Basically you have to create copies of the aux_BS(k) and make sure that the copies have the same value. I did this in the attached model. After my change...
- 1 year ago
- Forum: Solvers
- Topic: The cone to be appended has one variable which is already member of another cone-MOSEK solver
- Replies: 2
- Views: 2011
The cone to be appended has one variable which is already member of another cone-MOSEK solver
Dear all, I encountered a confusing problem. I programmed a mixed integer second order cone problem in GAMS and used MOSEK to solve it. The SOC constraint is the equation (24a) in the following figure. The literature including this equation is attached as well. image.png I knew that the SOC constrai...
- 2 years ago
- Forum: Solvers
- Topic: Infeasible constraints but optimal solution found
- Replies: 2
- Views: 6943
Infeasible constraints but optimal solution found
Dear all, I am working on a DC power flow program in the field of Electrical Engineering. I made a simple code which is attached. I encountered a very confusing problem when I debugged my code. You can see there are 1 objective function and 9 constraints in my model. When I debugged the code, I just...
- 2 years ago
- Forum: Solvers
- Topic: A confused issue with SELKIE for equilibrium problems
- Replies: 4
- Views: 4170
Re: A confused issue with SELKIE for equilibrium problems
Dear Dirkse, Thanks for your timely reply! According to your suggestions, I revised my codes again and resolve the mentioned errors. I think my model doesn't have other errors. However, the solver summary says that ' JAMS Equilibriums cannot handle discrete variables '. The updated codes are attache...
- 2 years ago
- Forum: Solvers
- Topic: A confused issue with SELKIE for equilibrium problems
- Replies: 4
- Views: 4170
Re: A confused issue with SELKIE for equilibrium problems
Dear Dirkse, Thanks so much for your suggestions! According to your advice, I add some dollar conditions in the loop statement, and the problems related to 'Cap_new' have been resolved. However, I encounter another problem in my code, the error is: *** EMP syntax error: key expected: is P_B (item 6 ...
- 2 years ago
- Forum: Solvers
- Topic: A confused issue with SELKIE for equilibrium problems
- Replies: 4
- Views: 4170
A confused issue with SELKIE for equilibrium problems
Dear all, I am working on a multi-agent-based optimization problem, and I use the game theory to describe the relationship between agents. I found a solver in GAMS named SELKIE which has 'diagonalization method' to find the equilibria between agents. Unfortunately, there is a fatal error shown in th...