Bundled Results

An ordered project bundle contains results for more than one project. Select a project before you inspect or export its result data.

Start with Ordered project bundles to create a bundle.

import jcmsuite

bundle = jcmsuite.solve(["1D/project.jcmp", "project.jcmp"])

Access Results From A Bundle

BundledSolveResult and BundledBatchSolveResult contain ordered project results. Select a project with an index through bundle[index] or project(index). Both bundle types provide these access forms. Use len to get the number of projects and iterate over the bundle in project input order.

project_result_1D = bundle[0]
project_result = bundle[1]

print(project_result_1D)
# SolveResult(project_file=PosixPath('/home/.../1D/project.jcmp'), daemon_job_id=None)

print(project_result)
# SolveResult(project_file=PosixPath('/home/.../project.jcmp'), daemon_job_id=None)

The bundle exposes its ordered project paths through project_files. The BundledBatchSolveResult provides the same property. Bundles do not provide direct export methods.

Use SolveResult Access after selecting one project from a bundle. If the bundle contains batched results, use Batched Result Access instead.