Skip to content

Removing public m from PureJuMP wrappers#422

Open
arnavk23 wants to merge 1 commit into
JuliaSmoothOptimizers:mainfrom
arnavk23:fix-421-arglin-m
Open

Removing public m from PureJuMP wrappers#422
arnavk23 wants to merge 1 commit into
JuliaSmoothOptimizers:mainfrom
arnavk23:fix-421-arglin-m

Conversation

@arnavk23
Copy link
Copy Markdown
Contributor

@arnavk23 arnavk23 commented Jun 4, 2026

@tmigot Fixes #421

… by removing public `m` from PureJuMP wrappers
Copilot AI review requested due to automatic review settings June 4, 2026 14:47
Copy link
Copy Markdown
Contributor

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

Note

Copilot was unable to run its full agentic suite in this review.

This PR simplifies the arglin* problem constructors by removing the configurable m keyword argument and always using m = 2n observations.

Changes:

  • Removed the m keyword argument (and its validation/warning) from arglina, arglinb, and arglinc.
  • Hard-coded the number of observations to m = 2 * n in each constructor.

Reviewed changes

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

File Description
src/PureJuMP/arglinc.jl Removes configurable m; forces m = 2*n unconditionally.
src/PureJuMP/arglinb.jl Removes configurable m; forces m = 2*n unconditionally.
src/PureJuMP/arglina.jl Removes configurable m; forces m = 2*n unconditionally.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/PureJuMP/arglinc.jl
Comment on lines +15 to +16
function arglinc(args...; n::Int = default_nvar, kwargs...)
m = 2 * n
Comment thread src/PureJuMP/arglinb.jl
Comment on lines +15 to +16
function arglinb(args...; n::Int = default_nvar, kwargs...)
m = 2 * n
Comment thread src/PureJuMP/arglina.jl
Comment on lines +15 to +16
function arglina(args...; n::Int = default_nvar, kwargs...)
m = 2 * n
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.

Implementation difference arglina, arglinb, arglinc

2 participants