Hi Michael,
After playing around with the sample you posted I figured out the issue I was having: I had declared an identifier called "min" as a variable elsewhere in the model. I changed this identifier's name and the min function is working properly again.
Thanks for the help!
Joel
Search found 5 matches
- 5 years ago
- Forum: Syntax
- Topic: Minimum of Unrelated Parameters
- Replies: 4
- Views: 11647
- 5 years ago
- Forum: Syntax
- Topic: Minimum of Unrelated Parameters
- Replies: 4
- Views: 11647
Re: Minimum of Unrelated Parameters
You don't need an smin, a min is okay and since i and j are controlled by the equation this should work: equation(i, j).. t(i, j) =l= min[x(i) * U(i), y(j) * U(j)] * z(i, j); -Michael Thank you for the reply Michael. For some reason, when I use the min function, I get errors asking for a set at the...
- 5 years ago
- Forum: Syntax
- Topic: Minimum of Unrelated Parameters
- Replies: 4
- Views: 11647
Minimum of Unrelated Parameters
Hi everyone, I am in need of a way to express the minimum of two parameters in a model constraint. The two parameters are not of the same set. For example: "equation(i, j).. t(i, j) =l= smin[x(i) * U(i), y(j) * U(j)] * z(i, j);" where t and z are variables and x, y and U are parameters. Ho...
- 5 years ago
- Forum: Solvers
- Topic: Resource Limit
- Replies: 0
- Views: 2813
Resource Limit
Hi everyone, Is it possible to increase or decrease the resource limit during solution? Say that while reading the output in the console, you see an interesting objective value and would like to stop the solver there and then to obtain the output and run any "execute" commands which occur ...
- 5 years ago
- Forum: Solvers
- Topic: Resource Limit Influences Computation
- Replies: 0
- Views: 2804
Resource Limit Influences Computation
Hi everyone, I'm finding a strange issue with a few MILPs I'm trying to solve. I run a model with, say, a resource limit of 2700 seconds and obtain a feasible solution X, where the model has not converged. I then increase the resource limit to 7200 s. The model still does not converge, however, read...