Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Variable declared as Integer/ Results is fractional

15 views
Skip to first unread message

NISHIMWE Leon Fidele

unread,
Dec 10, 2024, 10:47:02 AM12/10/24
to am...@googlegroups.com
Dear team,

I am new to AMPL softwares. I am trying to solve a MINLP problem using gurobi. However, the outcome of the integer variable is sometimes fractional numbers. 

Is it a common case for AMPL solvers to obtain fractional outcomes for integer variables? 
One the other hand, how can we relax this integer variable? In the case of relaxation is there any impact on the global optimal solution if available?

Attached are my scripts in case that it is necessary to help me fix this issue.

Best Regards,
Fidele
Computercafee_2024_12_09.mod
Computercafee_2024_12_09.run
Computercafee_2024_12_09.dat

AMPL Google Group

unread,
Dec 11, 2024, 9:49:52 AM12/11/24
to AMPL Modeling Language
Your question has been moved to our new user forum at discuss.ampl.com, and a response has been posted there. To see the response, use this link: https://discuss.ampl.com/t/ampl-25071-variable-declared-as-integer-results-is-fractional/2003/2

To reply, click the red "Reply" button that follows the response. (Do not send an email reply to this message.)


--
Robert Fourer

We're switching to a new, enhanced user forum.
Join it now at discuss.ampl.com.
{#HS:2788063798-131176#}
Reply all
Reply to author
Forward
0 new messages