Borrar filtros
Borrar filtros

Incorporating a Max in optimization objective

3 visualizaciones (últimos 30 días)
cchen
cchen el 30 de Nov. de 2016
Respondida: Mario CASTRO GAMA el 1 de Oct. de 2023
I'm trying to use intlinprog to solve a mixed integer linear program where the objective function has a max function embedded in it. For example, the objective may be of the form:
5*max(10-x, 0)+x
The objective is clearly convex and actually piecewise linear. How can I incorporate this in the form
f'x
so as to be able to use intlinprog?
  3 comentarios
cchen
cchen el 5 de Dic. de 2016
Editada: cchen el 5 de Dic. de 2016
I see what you are saying. Currently, I'm using cvx to model a larger convex mixed-integer problem, which then calls Mosek. It is slow however, and I was hoping to improve upon this by using a Matlab solver. I thought I could use intlinprog since the cvx input to Mosek is an integer linear program, but reading the model, I cannot fully understand the reformulation.
Oskar Adolfson
Oskar Adolfson el 12 de Oct. de 2017
I think it is false to say that a convex function is not linear. A convex function can actually be linear, but it doesn't have to be. Try to verify yourself by testing if y = ax is convex.

Iniciar sesión para comentar.

Respuestas (2)

Matt J
Matt J el 12 de Oct. de 2017
Splitting this piecewise linear function into regions where it is a linear function is akin to knowing the minimum solution in the first place, so I don't see what use this has.
Not sure why that approach isn't worth pursuing. For this example, you simply add the constraint x<=10 for the first region and x>=10 for the second.

Mario CASTRO GAMA
Mario CASTRO GAMA el 1 de Oct. de 2023
You can try to use the method presented in this video.

Categorías

Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by