Skip to main content

Hi,

 

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!

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) ?


@Anne2 

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!


Reply


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

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