Skip to content
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

Linear Programming For Minimal Cost Solution **DO NOT MERGE** #11

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

philip-sterne
Copy link
Contributor

Partial port of YALPS to dart. This allows us to suggest the minimum cost solution for feeding, which meets the necessary feeding guidelines.

…cost solution for feeding, which meets the necessary feeding guidelines.
@philip-sterne philip-sterne changed the title Linear Programming For Minimal Cost Solution Linear Programming For Minimal Cost Solution **DO NOT MERGE** Aug 7, 2024
Copy link

github-actions bot commented Aug 7, 2024

Visit the preview URL for this PR (updated for commit 0774678):

https://rationapp-37f76--pr11-linearprogramming-gbnmjq27.web.app

(expires Wed, 18 Dec 2024 21:38:29 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 5f2efbcbf86c7e73b750d3fe2f3f11115043b7cc

Copy link

LCOV of commit 0a24e07 during Flutter Testing #25

Summary coverage rate:
  lines......: 84.3% (1680 of 1993 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

Copy link

LCOV of commit b6c9f39 during Flutter Testing #26

Summary coverage rate:
  lines......: 84.3% (1680 of 1993 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

Copy link

LCOV of commit 26d1f6f during Flutter Testing #27

Summary coverage rate:
  lines......: 84.3% (1680 of 1993 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

…g feed plan and populates the feed formula page
@SomtochiUmeh
Copy link
Collaborator

  • Runs the yalps algorithm to calculate the optimal feed based on the available fodder and concentrate items
  • Constraints are currently hardcoded, will adapt to use the actual cow requirements constraint

Next steps:

  • Prof. Sterne mentioned something about needing to change the units to have a sensible solution since CP, NDF, Ca, and P Intake requirements depend on (are percentages of) DM. So keep everything in kg/day in the solver's constraints.
          I think this affects deciding what the constraints for the solver will be: keep in kg/day and calculate the constraints for each given the DM requirements.
Screen.Recording.2024-12-11.at.1.38.08.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants