Minimize (max-min)

  • 14 August 2020
  • 3 replies



In my model I want to minimize the (maximum_t of a function) - (minimum_t of that function) and I have solved this issue by setting: 

k >= function for all t

p <= function for all t

and adding (k-p) to the objective of my model. When I do this for one variable, it works, but: when I do this twice (for different variables and hence adding two variables to the objective) it does not work. This while these variables are not connected. Can anybody maybe help me with this? Thank you in advance!


Best answer by mohansx 19 August 2020, 00:43

View original

3 replies

Userlevel 5
Badge +5

Hi @Anne2 , can you explain more what do you mean by “it does not work when you do this twice”. 


I supposed you have variables 

l >= function for all index

m <= function for all index

and the term (l - m) in the objective function. Do you get expected results if you have only (l-m) in the objective function and not (k-p) ?


Do you still need help with this issue? 
Was Mohan’s suggestions able to help you resolve your problem?

Yes, I have solved the issue. Thanks!


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator