-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duals for MIQCP #79
Comments
if I don't mistake, you only have to do:
where c1, c2,... will be your constraints. When docplex does not provide built-in functionalities, you can always get to the under lying cplex object and get the "low level" api which handles indexes. |
Hi, cplex.exceptions.errors.CplexSolverError: CPLEX Error 1017: Not available for mixed-integer problems. |
Hi, |
Hello, I have committed a small sample to show how to fix values for a MIQP, solve it as a QP and access dual values. The sample: https://github.com/PhilippeCouronne/docplex_contribs/blob/master/docplex_contribs/src/miqp_duals1.py Hope this helps |
Hi Philippe, Thanks for your work! I've already come across a similar code segment of yours from June 2021 on an IBM Community site. That one was for MILP -> fixed MILP. The reason neither of these segments solve my problem (or the OP's problem) is that we are looking for MIQCP -> fixed MIQCP. And the reference manual says that there is no ProblemType value for fixed_MIQCP. As for me, I've already figured out how to work around this limitation by defining a second QCP model based on the solution values of the first MIQCP. But it would still be nice to know if there is an officially supported way of running a fixed version of an MIQCP model and calculating the duals from it. Please let us know if you have other ideas, or if something is incorrect in my diagnosis above. |
Hi, |
Hi Philippe, For example: Once I solve the MIQCP, the optimal value of This may be too specific to my application to be useful to others, though. I haven't thought much about generalizations. |
Thanks Andras, this is fairly natural. I was thinking about a generalized way of doing this. Advanced features such as piecewise funtional constraints, SOS sets , indicators, equivalences should also be translated into the fixed problem. I guess you had none of them in your model. I have ideas about how to handle them; I may post a fix_model() transformation when I have time. |
Hi,
I have a mixed-integer QCP code. I need to extract the dual solutions for this. I didn't find an option for fixed start in docplex. Can someone please help
The text was updated successfully, but these errors were encountered: