How to solve Linear Programming with variables that have 2, 3 and 4 dimensions and are time dependent?

3 vues (au cours des 30 derniers jours)
Hi, my problem is about a Mixed Integer Linear Programming model. The solution approach that I plan to use, is to solve the binary variable first with GA and in the fitness function insert the LP model.
However I'm very new with Matlab, and I haven't figure out how to solve this model using the "linprog" Toolbox. All examples in the tutorial are very simple.
I have variables that has 2, 3 and 4 dimensions. Can somebody give a light in how to start modeling this equations? In the figure is attached the first part of the model. Thanks!
  1 commentaire
Patty
Patty le 6 Avr 2014
Modifié(e) : Patty le 6 Avr 2014
2nd part of the model.
The y_ljn is the binary variable that is going to be solved with Genetic Algoritmn.
The other variables are: Q_jln, idt_lt, z_lijn, I_jt
The others are known data.

Connectez-vous pour commenter.

Réponses (1)

John D'Errico
John D'Errico le 6 Avr 2014
Why cannot you treat those multi-dimensional arrays of unknowns as simply a vector of unknowns? Unroll the arrays.
Admittedly, it forces you to think about where things fall in memory when you do that. But sub2ind and ind2sub will help you there. Little active thought will be needed, beyond understanding the equations you have formulated. But you are lost anyway if you don't understand your own equations, so there is no serious problem.

Catégories

En savoir plus sur Linear Programming and Mixed-Integer Linear Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by