Skip to content

removed one liner jl.seval - #7

Merged
blegat merged 1 commit into
mainfrom
remove-one-liner
Jul 13, 2026
Merged

removed one liner jl.seval#7
blegat merged 1 commit into
mainfrom
remove-one-liner

Conversation

@Sutekinaa

Copy link
Copy Markdown
Collaborator

No description provided.

@Sutekinaa
Sutekinaa requested a review from blegat July 10, 2026 07:47
else jl.MOI.MAX_SENSE
)
obj_func = _expr_to_moi(jl, all_jl_vars, model._objective.expr)
jl._jumpy_set_objective_b(optimizer, sense, obj_func)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Wait, where is the function with the _b suffix ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Where is it defined?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I remove it and replaced it by lines 130 and 131. Previously the function was defined in the julia helper as "_jumpy_set_objective!" but since python doesn't support "!" in variable name the juliacall convention is to put "_b" on the python side

@blegat
blegat merged commit 7b6e2bc into main Jul 13, 2026
8 checks passed
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.

2 participants