Conversation
Every COPS instance gains a <name>_core() builder in the ExaModels extension alongside the existing constructor. Each is built once against the ArgTracer size sentinel, materialized at any size via ExaModels.ExaModel(core, (; nh = n)), and consumable by ExaModelC's compile_library AOT path. The builders call the same expressions with the same coefficients, bounds, starts, and add_* order as the direct constructors. Value-dependent index sets and computed start/bound arrays ride as deferred values resolved once per materialization; instance scalars sit directly in the expression trees. The fixed-size instances (transition_state, tetra_*, triangle_*) are identity builders at their one size. A new testset materializes every core against the direct constructor at two sizes (dims, bounds, starts, values, sparse-assembled Jacobian/Hessian) and solves to the COPS reference objectives where listed. The lazy-core API needs ExaModels' ss/lazy-core branch; the test Project.toml carries a [sources] pin until that is merged and released. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every COPS instance gains a
<name>_core()builder in the ExaModels extension alongside the existing constructor — all 30 models. Each is built once against theArgTracersize sentinel, materialized at any size viaExaModels.ExaModel(core, (; nh = n)), and consumable by ExaModelC'scompile_libraryAOT path. The builders call the same expressions with the same coefficients, bounds, starts, andadd_*order as the direct constructors. Value-dependent index sets and computed start/bound arrays ride as deferred values resolved once per materialization; instance scalars sit directly in the expression trees. The fixed-size instances (transition_state, tetra_*, triangle_*) are identity builders at their one size.A new testset materializes every core against the direct constructor at two sizes (dims, bounds, starts, values, sparse-assembled Jacobian/Hessian) and solves to the COPS reference objectives where listed.
The lazy-core API needs ExaModels'
ss/lazy-corebranch; the testProject.tomlcarries a[sources]pin until that is merged and released.🤖 Generated with Claude Code