microsoft / OptiGuide

Large Language Models for Supply Chain Optimization
MIT License
299 stars 43 forks source link

feat: add file coffee using pyomo #12

Closed pphuc25 closed 8 months ago

pphuc25 commented 8 months ago

Hi, As the idea in #9 . I updated code of using pyomo instead of gurobi I would like to cc @BeibinLi to review my code

pphuc25 commented 8 months ago

I am pretty sure the file coffee_pyomo.py works well. However, I do not have to much experiment on file optiguide, so the changed I made maybe make some bug or conflict, still need someone contribute to the file optiguide to surely work well.

BeibinLi commented 8 months ago

Awesome changes! 1 quick question before I test these new changes: in the optiguide.py, can we check (or ask the user) which backend they would like to use? For instance, we can have a parameter "backend" for OptiGuide agent, and then which solver software would be used?

@adam-behrendt @alfredoihernandez Please provide comments and suggestions here.

pphuc25 commented 8 months ago

I thinks that's a valuable feature, I will add them

BeibinLi commented 8 months ago

@pphuc25 @alfredoihernandez Please see my latest changes.

pphuc25 commented 8 months ago

that's seem good, LGTM @BeibinLi

BeibinLi commented 8 months ago

@pphuc25 and @alfredoihernandez
I made significant changes to the source code, and also added a Jupyter notebook (thanks to @alfredoihernandez).

Because of the urgency, I will merge the code soon. If you find other potential bugs or issues, feel free to raise an issue or create new PR.

Thanks for working on Pyomo!