Hi Renger,

It solves my problem perfectly.

Thank you.

Li

## Search found 15 matches

- 1 week ago
- Forum: Modeling
- Topic: assign parameters in sequence
- Replies:
**4** - Views:
**82**

- 1 week ago
- Forum: Modeling
- Topic: assign parameters in sequence
- Replies:
**4** - Views:
**82**

### Re: assign parameters in sequence

Thanks for your answer.

However, a vector (P_1(ii)) is needed as there are other variables in my programm.

The purpose of this programm is that I want to eliminate P_1(1) when ii=2.

Could it be done?

However, a vector (P_1(ii)) is needed as there are other variables in my programm.

The purpose of this programm is that I want to eliminate P_1(1) when ii=2.

Could it be done?

- 1 week ago
- Forum: Modeling
- Topic: assign parameters in sequence
- Replies:
**4** - Views:
**82**

### assign parameters in sequence

Hello all, I'm working on assigning a parameter in sequence. In my purpose, the sequence of the parameters is: i=1 P_1= 13 i=2 P_1= 24 i=3 P_1= 15. However. the result in my programm is i=1 P_1= 13 i=2 P_1=1 13 2 24 i=3 P_1=1 13 2 24 3 15. The code is attached. Could someone help me with this proble...

- 2 months ago
- Forum: Archive Google Group
- Topic: unable to understand nature of obtained results
- Replies:
**2** - Views:
**393**

### Re: unable to understand nature of obtained results

Hi Archiver，

I'm facing a similar problem, did you find a solution to this issue ?

Regards

Li

I'm facing a similar problem, did you find a solution to this issue ?

Regards

Li

- 2 months ago
- Forum: Modeling
- Topic: Need help to programm j≠i
- Replies:
**2** - Views:
**184**

### Re: Need help to programm j≠i

Hi Fred,

Thank you for your prompt reply. It solves my problem perfectly.

Just as you said, I misinterpret the GAMS syntax 'j ≠i ' as 'j<>i '.

Again, thank you!

Best,

Li

Thank you for your prompt reply. It solves my problem perfectly.

Just as you said, I misinterpret the GAMS syntax 'j ≠i ' as 'j<>i '.

Again, thank you!

Best,

Li

- 2 months ago
- Forum: Modeling
- Topic: Need help to programm j≠i
- Replies:
**2** - Views:
**184**

### Need help to programm j≠i

Hello all, I want to programm a formulation: sum(t, sum(j∈N & j≠i, P(i,j,t))). The code is as follows: set i / 1,2,3 / t / 1*24 /; alias(i,j); sum((t,j)$(t,j<>i), p(i,j,t)) However, the programm repor some errors: 148 Dimension different - The symbol is referenced with more/less indices as declared ...

- 2 months ago
- Forum: Solvers
- Topic: Can someone help me with GAMS Error 148
- Replies:
**4** - Views:
**396**

- 3 months ago
- Forum: Solvers
- Topic: Can someone help me with GAMS Error 148
- Replies:
**4** - Views:
**396**

### Re: Can someone help me with GAMS Error 148

Hi Renger, Thanks for your answer. In my purpose, I exactly want to minimize each ETA (ETA(1), ETA(2), ETA(3)) because I want to utilize some distributed algorithm. And p_pvf(i,t) is a variable in my future formulation. Could you give me some advice to write it under the rule "write one objective fu...

- 3 months ago
- Forum: Solvers
- Topic: Can someone help me with GAMS Error 148
- Replies:
**4** - Views:
**396**

### Can someone help me with GAMS Error 148

Hello all,

I have difficulties in solving my problem. Can someone help me with GAMS Error 148

Error Messages

148 Dimension different - The symbol is referenced with more/less

indices as declared

257 Solve statement not checked because of previous errors

Thank you,

Li

I have difficulties in solving my problem. Can someone help me with GAMS Error 148

Error Messages

148 Dimension different - The symbol is referenced with more/less

indices as declared

257 Solve statement not checked because of previous errors

Thank you,

Li

- 3 months ago
- Forum: Solvers
- Topic: the solver found integer solution
- Replies:
**11** - Views:
**596**

### Re: the solver found integer solution

Hi Fred,

Thanks for your reply.

I have no idea to deal with my programm now. I just want to solve it with the status "1 optimal" through adding some constrains. In this case, could you tell me how to modify it?

LI

Thanks for your reply.

I have no idea to deal with my programm now. I just want to solve it with the status "1 optimal" through adding some constrains. In this case, could you tell me how to modify it?

LI