You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Artelys Knitro forum
Hi there
In the oldAPI (10.x and earlier), it is clearly shown how the array cType can be used to describe the type of constraints of the constraint function. This used to be done in
KTR_init_problem().
Is this still possible in the latest API? (And if so, how would this now be done?)
Kind regards
TD
Richard Waltz
unread,
Jul 4, 2023, 3:09:05 AM7/4/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to kni...@googlegroups.com
Hi,
In the current API, the cType array is no longer used -- rather, the constraint type is automatically determined based on the API functions used to specify the constraint. For example, linear constraints should be loaded using the API function "KN_add_con_linear_struct()"
General, nonlinear (beyond quadratic) constraints/structures should be handled through a callback function in the same way as the 10.x and earlier old API. Anything specified through a callback is automatically treated as general nonlinear so it is always
best to use the specified API functions for loading linear and quadratic structures in your model so that Knitro can be aware of, and exploit these special structures whenever possible.