Home Install Documentation Problems Tree Applications Forum

Increase your income
via IT outsourcing!
Ukrainian HI-TECH Initiative Ukrainian HI-TECH Initiative


From OpenOpt

Jump to: navigation, search
Maximum stable set of graph (STAB)
\mathbf{For\ graph\ G = (V, E)}
\mathbf{find\ V' \subseteq V}
of maximum size subjected to:
\mathbf{\forall v1 \in V', v2 \in V': (v1,v2) \notin E }

(requires v. >= 0.42) OpenOpt STAB example

We use input argument of type networkx graph. networkx is de-facto standard of graph operations in Python with same permissive license (BSD). However, we could also provide direct assignment (via lists of vertex and edges) if you have problems with networkx dependense, e.g. due to rare platform / OS.

Unlike networkx maximum_independent_set() our API includes much more:

  • Limitations on time, cputime, "enough" value (you should pass them to p.solve() function; works for interalg and cplex only, because glpk and lpSolve has no OpenOpt iterfcn connected yet)
  • basic GUI features (run/pause, "enough")
  • Optional arguments includedNodes / excludedNodes - nodes that must be present / absent in solution

Available solvers:

  • interalg - pro: BSD license; cons: Python code with some slow parts (probably will be inhanced by PyPy); focused for non-linear problems and thus MILP solvers work better.
  • MILP solvers

Future plans include:

  • interalg can be adjusted to search for all STAB solutions
  • Maybe other graph problems

See also:

Made by Dmitrey
Retrieved from "http://openopt.org/STAB"
Personal tools
Latest OOSuite 0.5605