Run genetic algorithm from mps problem file
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ashley Thornton
am 18 Apr. 2017
Kommentiert: Ashley Thornton
am 22 Apr. 2017
Hi,
I've got a IP scheduling problem that I would like to try solve using matlab's genetic algorithm. I'm building the problem elsewhere and only have .mps or .lp files to transfer it to MATLAB.
The genetic algorithm code doesn't accept the problem object created by the mpsread() function, stating that I need to use INTLINPROG for this problem structure. I've established that a solution is going to be virtually unattainable via simplex/B&B based methods, hence the use of a genetic algorithm.
How do I get the GA to read an MPS file?
Any help appreciated!
Cheers, Ash
0 Kommentare
Akzeptierte Antwort
Alan Weiss
am 19 Apr. 2017
If your problem is really an MILP problem, with no nonlinear constraints, then you should use intlinprog, and not a genetic algorithm. That is the truth.
You can always use mpsread to convert the problem to one that ga can use. Just edit the resulting problem structure to change the name of the solver and change the options. But don't do this if you have an MILP problem. Use intlinprog instead. If you find that intlinprog struggles with your problem, try to change some options to help it.
Alan Weiss
MATLAB mathematical toolbox documentation
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deployable Archive Creation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!