Skip to content

Commit

Permalink
Complete objective function in exported SBML
Browse files Browse the repository at this point in the history
  • Loading branch information
Waschina committed Jun 13, 2024
1 parent 48ca784 commit 11ec3ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SBML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ bool writeSBML(
}

/*
* Obective
* Objective
*/
Objective* obj = mplugin->createObjective();
for(unsigned int i = 0; i<nr; i++) {
Expand All @@ -1223,6 +1223,9 @@ bool writeSBML(
fobj->setCoefficient(obj_coef[i]);
}
}
obj->setId("obj");
obj->setType("maximize");
mplugin->setActiveObjectiveId("obj");

/*
* Subsystems (or Pathways)
Expand Down

0 comments on commit 11ec3ae

Please sign in to comment.