@@ -574,8 +574,7 @@ function _newpt_wrapper(
574
574
@_checked KN_get_number_cons (model, nc)
575
575
x = unsafe_wrap (Array, ptr_x, nx[])
576
576
lambda = unsafe_wrap (Array, ptr_lambda, nx[] + nc[])
577
- # TODO : should `model` arugment be `ptr_model`?
578
- return model. newpt_callback (model, x, lambda, model. newpt_user_data)
577
+ return model. newpt_callback (ptr_model, x, lambda, model. newpt_user_data)
579
578
end
580
579
end
581
580
@@ -591,7 +590,7 @@ solution point (that is, after every iteration).
591
590
`callback` is a function with signature:
592
591
593
592
```julia
594
- callback(kc::Model , x::Vector{Cdouble}, lambda::Vector{Cdouble}, user_data::Any) -> Cint
593
+ callback(kc::Ptr , x::Vector{Cdouble}, lambda::Vector{Cdouble}, user_data::Any) -> Cint
595
594
```
596
595
597
596
## Notes
@@ -629,8 +628,7 @@ function _ms_process_wrapper(
629
628
@_checked KN_get_number_cons (model, nc)
630
629
x = unsafe_wrap (Array, ptr_x, nx[])
631
630
lambda = unsafe_wrap (Array, ptr_lambda, nx[] + nc[])
632
- # TODO : should `model` arugment be `ptr_model`?
633
- return model. ms_process_callback (model, x, lambda, model. ms_process_user_data)
631
+ return model. ms_process_callback (ptr_model, x, lambda, model. ms_process_user_data)
634
632
end
635
633
end
636
634
@@ -646,7 +644,7 @@ processing a multistart solve.
646
644
`callback` is a function with signature:
647
645
648
646
```julia
649
- callback(kc::Model , x::Vector{Cdouble}, lambda::Vector{Cdouble}, user_data::Any) -> Cint
647
+ callback(kc::Ptr , x::Vector{Cdouble}, lambda::Vector{Cdouble}, user_data::Any) -> Cint
650
648
```
651
649
652
650
## Notes
@@ -681,8 +679,7 @@ function _mip_node_callback_wrapper(
681
679
@_checked KN_get_number_cons (model, nc)
682
680
x = unsafe_wrap (Array, ptr_x, nx[])
683
681
lambda = unsafe_wrap (Array, ptr_lambda, nx[] + nc[])
684
- # TODO : should `model` arugment be `ptr_model`?
685
- return model. mip_node_callback (model, x, lambda, model. mip_node_user_data)
682
+ return model. mip_node_callback (ptr_model, x, lambda, model. mip_node_user_data)
686
683
end
687
684
end
688
685
@@ -699,7 +696,7 @@ procedure).
699
696
`callback` is a function with signature:
700
697
701
698
```julia
702
- callback(kc::Model , x::Vector{Cdouble}, lambda::Vector{Cdouble}, user_data::Any) -> Cint
699
+ callback(kc::Ptr , x::Vector{Cdouble}, lambda::Vector{Cdouble}, user_data::Any) -> Cint
703
700
```
704
701
705
702
## Notes
@@ -735,7 +732,7 @@ function _ms_initpt_wrapper(
735
732
x = unsafe_wrap (Array, ptr_x, nx[])
736
733
lambda = unsafe_wrap (Array, ptr_lambda, nx[] + nc[])
737
734
return model. ms_initpt_callback (
738
- model ,
735
+ ptr_model ,
739
736
nSolveNumber,
740
737
x,
741
738
lambda,
@@ -753,7 +750,7 @@ in the multistart procedure.
753
750
754
751
```julia
755
752
callback(
756
- model::Model ,
753
+ kc::Ptr ,
757
754
nSolveNumber::Cint,
758
755
x::Vector{Cdouble},
759
756
lambda::Vector{Cdouble},
0 commit comments