Add tutorial accessing Linear and Nonlinear Constraints #156
Open
arnavk23 wants to merge 10 commits into
Open
Conversation
… vectors instead of randomness, so CI/doctest outputs are reproducible.
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a new Julia tutorial demonstrating how to inspect and multiply by the constraint Jacobian using the NLPModels “linear API” and LinearOperators, along with a dedicated tutorial environment.
Changes:
- Add a
linear-apitutorial showingcons!, Jacobian sparsity/coords, andjac_op!usage - Add a
Project.tomldefining dependencies/compat for running the tutorial
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| tutorials/linear-api/index.jmd | New tutorial content demonstrating Jacobian inspection and operator products |
| tutorials/linear-api/Project.toml | New Julia tutorial environment with deps/compat bounds |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
Author
|
@tmigot Whenever you are free, please take a look. Thanks! |
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.
New tutorial
Updates to tutorial
Adds a new tutorial demonstrating the "linear API" for separating and operating on linear vs nonlinear constraints, including a minimal manual NLPModel that exposes one linear and one nonlinear constraint and comparisons between
jac_op!/mul!andjprod!/jtprod!.