Questions about the C API

15 views
Skip to first unread message

Naoya Kumagai

unread,
Feb 14, 2025, 4:04:16 AMFeb 14
to mosek
Hi, I have some questions:

1. When writing linear constraints (Ax+b = 0, or <=0, or >=0), is it better to specify them as affine constraints or as conic constraints with for example positive orthonant as the domain?

2. There is a function MSK_putnumcon does the 'number of constraints' here refer to all (linear and conic) constraints, or just linear constraints?

Thank you in advance.

Michal Adamaszek

unread,
Feb 14, 2025, 4:09:01 AMFeb 14
to mosek
Hi,

1. It doesn't matter, unless you plan to use simplex, in which case they have to be ordinary linear constraints (in the A matrix)

2. MSK_putmaxnumcon refers to the number of rows in the A matrix, ie. the number of ordinary linear constraints. Functions referring to affine conic constraints are named with "acc" or "afe". The MSK_putmax*... functions are only optional to call.

Michal

Naoya Kumagai

unread,
Feb 14, 2025, 4:11:47 AMFeb 14
to mo...@googlegroups.com
Thank you for a very quick response, Michal! 

--
You received this message because you are subscribed to a topic in the Google Groups "mosek" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mosek/Wn7yvrd9gVM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mosek+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mosek/ac22f4d0-dac3-458b-ba3e-b65b57e75542n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages