Skip to content

Manual NLSModel #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Manual NLSModel #37

wants to merge 2 commits into from

Conversation

dpo
Copy link
Member

@dpo dpo commented Jul 27, 2025

No description provided.

@dpo
Copy link
Member Author

dpo commented Jul 27, 2025

Needs more unit tests.

@dpo dpo marked this pull request as draft July 27, 2025 17:56
@dpo dpo requested a review from Copilot July 27, 2025 17:57
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a manual NLSModel (Nonlinear Least Squares Model) implementation to the ManualNLPModels package. The implementation allows users to define NLS problems by providing residual functions and optional Jacobian operations.

  • Adds a new NLSModel struct and constructor for creating least-squares optimization problems
  • Implements core NLS API methods for residual evaluation, Jacobian products, and structure queries
  • Includes comprehensive test coverage to verify error handling for unimplemented methods

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/structure.jl Exports NLSModel and adds the struct definition with constructor
src/nls_api.jl Implements NLS API methods for residual and Jacobian operations
src/ManualNLPModels.jl Includes the new nls_api.jl file
test/notimplemented.jl Adds tests for NLSModel error handling and method availability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant