GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mgstabrani/food-nutrition: A simple command-line-based program (food nutrition optimization) implemented using branch and bound algorithm.

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.releaserc.json
.releaserc.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
VERSION
VERSION
 
 
age-nutrition.csv
age-nutrition.csv
 
 
branchbound.py
branchbound.py
 
 
data.py
data.py
 
 
food.csv
food.csv
 
 
main.py
main.py
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

food-nutrition

A simple command-line-based program (food nutrition optimization) implemented using branch and bound algorithm.

  • General Info
  • Technologies
  • Install
  • Run
  • Versioning
  • CI/CD
  • Commit Format
  • Roadmap
  • Author
  • Reference

General Info

This project is one of tasks in IF2211 Strategi Algoritma. The goal of this project is to create a program which can optimize food consumption by budget and energy need. This project is implemented using branch and bound algorithm.

Technologies

  • Python 3 (minimum)

Install

  • clone this repository
git clone https://github.com/mgstabrani/food-nutrition.git

Run

Interactive mode (prompts for input):

python main.py

Non-interactive mode (pass flags directly):

python main.py --category <1-19> --budget <amount>

Example:

python main.py --category 7 --budget 50000

Short flags -c and -b are also supported. Run python main.py --help to see all options.

Versioning

This project follows Semantic Versioning with staged modernization:

  • MAJOR: breaking public interface changes (CLI, SDK, REST API contracts).
  • MINOR: backward-compatible features and improvements.
  • PATCH: backward-compatible bug fixes.

Current version is stored in VERSION and release notes are tracked in CHANGELOG.md.

CI/CD

This repository now uses GitHub Actions:

  • CI workflow: runs Python syntax validation on pushes and pull requests.
  • Release workflow: runs semantic-release on main pushes.

Release automation behavior:

  • Calculates next semantic version from conventional commit messages.
  • Updates VERSION automatically.
  • Generates and updates CHANGELOG.md automatically.
  • Creates GitHub Release with generated notes.

Workflow files:

  • .github/workflows/ci.yml
  • .github/workflows/release.yml

Commit Format

Use Conventional Commits so version bumping is automatic:

  • fix: ... -> PATCH release
  • feat: ... -> MINOR release
  • feat!: ... or BREAKING CHANGE: -> MAJOR release
  • docs: ..., chore: ..., refactor: ... -> no release by default unless marked as breaking

Roadmap

  • Step 1: Semantic versioning baseline (0.1.0). ✓
  • Step 2: Core engine refactor (separate algorithm from input/output). ✓
  • Step 3: CLI adapter on top of shared core. ✓
  • Step 4: Python SDK adapter.
  • Step 5: REST API adapter with versioned endpoints.

Author

Mgs. Tabrani (13519122)

Reference

  • Angka Kecukupan Gizi (AKG)
  • Food nutrition search engine

About

A simple command-line-based program (food nutrition optimization) implemented using branch and bound algorithm.

Topics

branch-and-boundenergyfoodnutritionoptimization-algorithmspython

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.