I get too many errors about upper bound things

33 views
Skip to first unread message

Eduardo Ignacio Morales

unread,
Nov 3, 2024, 4:27:54 PM11/3/24
to lp_solve
First of all sorry for my english, second im a college student who is working in a proyect about maximize schedules for college, we have the theoretical model and everething seems to be all right but we encountered a problem that made me ask in this group

I'm getting this type of errors:
1. Variable {name of the variable}: upper bound  on variable redefined on line {number of the line} 
2. Ineffective upper bound, ignored on line {number of line}
I cant find any information about this issue, i would be very thankful for any help.

Peter Notebaert

unread,
Nov 3, 2024, 4:35:41 PM11/3/24
to Eduardo Ignacio Morales, lp_solve
You don't give much information... I can only guess.

Is this when you read an lp model?

Could it be that you define multiple times upper bounds on the same model?

Please provide the lp model that you read in lp_solve to investigate.

Peter

--
You received this message because you are subscribed to the Google Groups "lp_solve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lp_solve+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lp_solve/8c0944ba-44d4-436a-81bc-57396b767a24n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eduardo Ignacio Morales

unread,
Nov 3, 2024, 5:37:48 PM11/3/24
to lp_solve
Hello! I dont know if i can submit links but in this one you can find our lp model:
https://drive.google.com/drive/folders/1aVCmmQtRUIaJ96D91Sh38WfpPZ0_XD0w?usp=sharing

We want to give you more context:

The goal of the model is to optimize classroom assignments, maximizing priority for essential courses while respecting constraints like limited classroom capacity, professors' schedule restrictions, and the need for consecutive time slots for some courses. The problem includes additional conditions such as varying numbers of classrooms and courses, with adjustments in instance sizes for small, medium, and large test cases.

The objective is to develop an LP model that efficiently allocates classrooms, ensuring all essential courses have a classroom, while optional courses are assigned based on available space.

PD: I think that the problem is in the final line, i.e the nature of variables that is being declarated, because of that lpsolve gives you a message that the lower bound (or upper bound) on variable was redefined as you can see in the attached image:
aSDGN.png

Reply all
Reply to author
Forward
0 new messages