# \[AMPL 24733\] Modeling multi objective mixed integer linear programming problem using ampl

**URL:** <https://discuss.ampl.com/t/ampl-24733-modeling-multi-objective-mixed-integer-linear-programming-problem-using-ampl/681>\
**Category:** Google Group Mirror\
**Created:** [August 10, 2023, 4:50pm UTC](https://discuss.ampl.com/t/ampl-24733-modeling-multi-objective-mixed-integer-linear-programming-problem-using-ampl/681 "2023-08-10T16:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasiru\_Abdullahi](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/nasiru_abdullahi/32/812_2.png) [@Nasiru\_Abdullahi](https://discuss.ampl.com/u/Nasiru_Abdullahi)\
**Post date:** [August 10, 2023, 4:50pm UTC](https://discuss.ampl.com/t/ampl-24733-modeling-multi-objective-mixed-integer-linear-programming-problem-using-ampl/681/1 "2023-08-10T16:50:03Z")

</div>

Good evening all;  
Pls is it possible to modeled multi\_ Objective MILPP using ampl and implement some algorithm in ampl, algorithms like Differential evolution algorithm, genetic algorithm or particle swam algorithm  
Thanks  
Nasir Abdullahi  
Maths Department NDA kaduna, Nigeria

---

<div class="post-metadata">

**Author:** ![AMPL\_Google\_Group](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@AMPL\_Google\_Group](https://discuss.ampl.com/u/AMPL_Google_Group)\
**Post date:** [August 14, 2023, 5:57pm UTC](https://discuss.ampl.com/t/ampl-24733-modeling-multi-objective-mixed-integer-linear-programming-problem-using-ampl/681/2 "2023-08-14T17:57:28Z")

</div>

You can define more than one objective function in an AMPL model, by including multiple minimize and/or maximize statements. The Gurobi and CPLEX solvers can use multiple objective functions from an AMPL model to perform some kinds of multi-objective optimization.

However, we do not recommend implementing metaheuristic methods – like evolutionary and genetic algorithms or particle swam algorithms – in AMPL. Implementations of complex algorithms like these is best done in a general-purpose programming language.

It is possible to consider first implementing a metaheuristic solver in a general programming language, and then implementing an AMPL interface to that solver – using one of our AMPL-solver interface libraries. But have not seen any examples of this approach, probably because metaheuristics tend to be specialized to particular problem types, whereas AMPL is a general-purpose modeling language.
