This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:cola_dietcola [2014/12/02 18:29] aykutbulut |
tutorial:cola_dietcola [2014/12/07 11:35] aykutbulut [Installation] |
||
---|---|---|---|
Line 7: | Line 7: | ||
It is pretty straightforward. Just run 'cola input.mps' | It is pretty straightforward. Just run 'cola input.mps' | ||
===== DietCOLA ===== | ===== DietCOLA ===== | ||
- | DietCOLA (Discrete COLA) uses branch and bound to solve second order cone optimization problems. DietCOLA is available in polyps (command dietcola). Source code of DietCOLA is available on [[https:// | + | DietCOLA (Discrete COLA) uses branch and bound to solve second order cone optimization problems. DietCOLA is available in polyps (command dietcola). Source code of DietCOLA is available on [[https:// |
==== Installation ==== | ==== Installation ==== | ||
- | DietCOLA depends on COLA and ALPS. Once COLA and ALPS are installed and their .pc file is in your PKG_CONFIG_PATH, | + | DietCOLA depends on COLA and ALPS. Once COLA and ALPS are installed and their .pc file is in your PKG_CONFIG_PATH, |
==== Using DietCOLA ==== | ==== Using DietCOLA ==== | ||
DietCOLA accepts inputs in extended mps format. See [[http:// | DietCOLA accepts inputs in extended mps format. See [[http:// | ||
- | |||
You can also use DietCOLA as a library. For this you should create an instance of DcModel class. See DcMain.cpp for how to do this. | You can also use DietCOLA as a library. For this you should create an instance of DcModel class. See DcMain.cpp for how to do this. | ||
- | + | ===== Examples ===== | |
- | DietCOLA is available | + | To run cola in polyps |
+ | <code bash> cola /home/software/ | ||
+ | to run DietCOLA you can use the following command; | ||
+ | <code bash> dietcola | ||
+ | COLA and DietCOLA | ||
+ | <code bash> cola / | ||
+ | <code bash> dietcola / | ||
+ | COLA solves the LP relaxation of the problem (problem 10teams includes discrete variables). |