Example of converting a COBRA-style SBML Level 2 model to SBML Level 3 using the Flux Balance Constraints package.
#include <iostream>
int
main (int argc, char* argv[])
{
if (argc != 3)
{
cout << endl << "Usage: convertCobraToFbc input-filename output-filename"
<< endl << endl;
return 2;
}
{
}
else
{
props.
addOption(
"convert cobra",
true,
"Convert Cobra model to FBC");
{
cout<< "conversion failed ... " << endl;
return 3;
}
}
return 0;
}