## Search found 19 matches

- 10 months ago
- Forum: Syntax
- Topic: Summation with parameter
- Replies:
**13** - Views:
**1272**

### Re: Summation with parameter

Hello again, I worked on the code again. And I noticed while checking all indices in a constraint; which is j and s; the constraint generates denominator as 0. Therefore, the code gives error of division by zero . To get rid of this problem, I should write the denominator part not equal to zero as a...

- 10 months ago
- Forum: Syntax
- Topic: Summation with parameter
- Replies:
**13** - Views:
**1272**

### Re: Summation with parameter

Hi Renger, I sent my code to you in DM. Could you check it? I tried different index values (for k=1 and k=3) to check the generated constraints but they gave different results. Therefore I could not understand the problem in code and constraints. And also I can not understand the division by zero er...

- 10 months ago
- Forum: Syntax
- Topic: Summation with parameter
- Replies:
**13** - Views:
**1272**

### Re: Summation with parameter

Hi Renger, Thanks a lot for your answer. The model did not give any syntax error after your correction. But now, the code exits with code 3 which is error for division by 0. However, I checked whole code, the paranthesis, defined parameters and their values many times. Any of them should not cause s...

- 11 months ago
- Forum: Syntax
- Topic: Summation with parameter
- Replies:
**13** - Views:
**1272**

### Re: Summation with parameter

Hi, The first code is worked :) :) Thanks a lot for your help :) :) And I have one more question. I hope it will be the last one. For the whole constraint in the picture I write the below code part however for the red squared part give errors. In this case, I am trying to restict the index (s) of a ...

- 11 months ago
- Forum: Syntax
- Topic: Summation with parameter
- Replies:
**13** - Views:
**1272**

### Re: Summation with parameter

Hi, First of all , thanks a lot for your answers. In my code, I defined map like below: mapK_J_S(k,j,s) Allowed combinations of k and j and s /1.1.0 , 1.2.0 , 1.3.0 , 1.4.1 ,2.1.0 , 2.2.0 , 2.3.1 , 2.4.1 , 3.1.0 , 3.2.1 , 3.3.0 , 3.4.0 , 4.1.0 , 4.2.1 , 4.3.0 , 4.4.1 , 5.1.1 , 5.2.0 , 5.3.1 , 5.4.1 ...

- 11 months ago
- Forum: Syntax
- Topic: Summation with parameter
- Replies:
**13** - Views:
**1272**

### Re: Summation with parameter

Hi, Thanks for your answer. I will use it in another part of my code. In my problem: Indexes: s intervals for each criteria (1,2,..,pp(j)) --> [I write this part as " s /1*pp(j)/ " it gives error 764 ] j number of criteria k training data set elements Parameters: p(j) number of breakpoints pp(j) num...

- 11 months ago
- Forum: Syntax
- Topic: Summation with parameter
- Replies:
**13** - Views:
**1272**

### Summation with parameter

Hello everybody, I am trying to write the code of UTADIS method. In this code I could not write a summation function. In the function I have an index s for the summation. However the upper bound of the summation depends on a parameter which is r(j,k). And, I sum w(j,s). Related mathematical formulat...

- 11 months ago
- Forum: Syntax
- Topic: Minos Run Error
- Replies:
**2** - Views:
**707**

- 1 year ago
- Forum: Syntax
- Topic: Minos Run Error
- Replies:
**2** - Views:
**707**

### Minos Run Error

Hello everybody, ı am trying to write a nonlinear model to calculate different distance metrics. In my model I used minos as nonlinear solver. However my model did not run. I get : EXIT - Function Evaluation error limit exceeded. On the above lines modes says "Error Line 2: unknown option "memoryemp...

- 1 year ago
- Forum: Syntax
- Topic: Index change for constraints
- Replies:
**4** - Views:
**700**