Questions tagged [ampl]

For questions related to the algebraic modeling language AMPL.

Filter by
Sorted by
Tagged with
9
votes
1answer
126 views

Comparison of Algebraic modelling languages and general programming languages

Some optimization software/frameworks (commercial or open-source) such as AMPL, GAMS, Cplex, ... have a specific Algebraic modelling language. Some of them have another type of programming that uses ...
7
votes
2answers
107 views

Matrix in ampl: constraint that the values ​are all different

I'm solving the magic square problem for my operational research exam. The constraints of my model are that the sum of the elements on the lines must be equal to a constant (var constant), that the ...
5
votes
2answers
91 views

Magic square in AMPL: presolve: constraint cannot hold [duplicate]

I'm solving the magic square problem without using the alldiff operator. To insert different values ​​in the matrix, I initialized a variable: ...