Advanced Farm & Food Optimiser

v0.3.2
by iserik (Iserik)

Optimise crops, farms, and livestock for food and industry. Build smart crop rotations automatically, detect crop shortages, and plan ahead—all without spreadsheets or manual maths

Stable 3 days ago CoI-Open Source code
Source code
https://github.com/iserikba/FarmAndFoodOptimiser
Website
https://ko-fi.com/iserik
Tags
Balance Quality of Life Tweaks Production Settlement Food

Advanced Farm & Food Optimiser

Take the guesswork out of farming, livestock, and food production.

Optimise crops, farms, and livestock for food and industry. Build smart crop rotations, spot crop shortages before they happen, and plan ahead—all without spreadsheets or manual maths.

Whether you're feeding a small colony or a huge industrial empire, the optimiser helps you produce what you need while making the most of your farmland.

Farm Planning

Scan your existing farms and compare production with your settlement's current needs. Find the right number of farms, crop rotations, and greenhouses while keeping your target soil fertility.

Food Demand & Forecasts

See exactly how much food, crops, and livestock your colony needs. Increase your target population to see how future demand will affect your production.

Livestock Planning

Balance chicken, egg, and meat production without wasting crops or farmland.

Plan for Industry

Need crops for fuel, power, chemicals, medical supplies, or other industries? Add extra demand and see how much farmland you need.

Production Chains

Check recipes before you build. See the machines, resources, and production rates you need, and make better use of useful by-products.

Sandbox & Manual Mode

Try different ideas, set your own production targets, or disconnect the optimiser from your colony's food demand and experiment freely.

Imports & External Supply

Include imports, exports, and outside production in your plans. Exclude imported crops from farm planning while still keeping track of total demand.

Simple In-Game UI

Fast, clean, and built to fit Captain of Industry. Changes update instantly as you adjust your settings, with full localisation support.


Spend less time doing maths and more time building your island. Plan smarter, grow efficiently, and keep your factories supplied with the Advanced Farm & Food Optimiser.


Screenshot 2026-08-15 214515.png

Screenshot 2026-08-15 215047.png

Screenshot 2026-08-12 222035.png

Screenshot 2026-08-12 222123.png

Screenshot 2026-08-15 214838.png

Screenshot 2026-07-22 012804.jpg

Screenshot 2026-07-22 233059.jpg

Update High-Speed Optimizer & Large Settlements is Live!

Aug 18, 2026 v0.3.2

A big upgrade to the optimiser engine. Large late-game settlements should now get faster and better-balanced farm layouts.

What's Fixed & Improved

  • Large Settlements: Fixed timeouts and calculation failures on very large settlements with many farms.
  • Better Crop Balance: Fixed problems when one crop, like Corn, has much higher demand than the others. The optimiser now handles dominant crops better, avoiding shortages and huge amounts of unwanted by-products.

Special Thanks

Big thanks to 786216376 for reporting the solver problem and helping me find the root cause. Your report led to a major rebuild of the optimiser engine and a big performance boost.

Thanks to everyone testing the mod and sending feedback!

Happy optimising!

Update Settlement & Real Farm Production is Live!

Aug 12, 2026 v0.3.0

Version 0.3.0 brings a massive update to settlement planning and farm integration, giving you unprecedented control over your island's food and industry production.

Screenshot 2026-08-15 214838.png

What's New

  • Live Farm & Settlement Integration – Scan your actual built crop farms to compare real-time production against your settlement's live crop and food demands.

  • Settlement Population Control – Plan for the future by adjusting your target population to see exactly how it impacts your production requirements.

  • Sandbox Mode – Easily toggle off settlement demands to freely experiment, research, and optimize farms for custom production goals.

  • External Supply & Manual Demands – Factor in world map imports, exports, and manual crop or product demands with instant UI responsiveness.

Improvements

  • Switched from abstract production chains to clear, direct recipe inspection, showing exact machinery and input/output rates.

  • Smarter byproduct utilization, allowing items to flow perfectly back into secondary production chains.

  • Optimizer results and crop balances now update dynamically in real time as you adjust production or demand settings.

  • A cleaner, more intuitive user interface with tighter spacing and grouped controls.

  • Minor solver adjustments for alternative production methods and balanced crop overproduction.

v0.3.1

Added a dedicated Farm Selection window, allowing players to individually select or exclude specific built farms from the optimizer's scope.
Screenshot 2026-08-15 215047.png

Thank you to everyone using the mod and sharing feedback. Your suggestions are helping make the optimiser better with every update.

Happy optimising!

Advanced Farm & Food Optimiser v0.2.0 is Live!

Jul 26, 2026 v0.2.0

Version 0.2.0 brings a major update to the farm optimiser, with better livestock planning, smarter crop calculations, and a faster, more responsive UI.

What's New

  • Farm Products Demand – A new system for planning Chicken and Egg production.

  • Chicken Population Control – Easily adjust your flock in 50-chicken steps. The optimiser won't let you reduce your flock below the minimum needed to feed your settlement.

  • Standalone Animal Feed – Calculate Animal Feed separately for boilers, chemicals, or other uses without running chicken farms.

  • Smarter Livestock Calculations – Eggs and Chicken Carcasses now share the same farm correctly, preventing double-counting of farms and crops.

    Screenshot 2026-07-26 211545.png

Improvements

  • Cleaner production chain diagrams for recipes like Cake, Meat, and Sausage.

  • Improved interface with more space, better tooltips, and a clearer Optimise Farms button.

  • Fixed several calculation bugs, including crop double-counting and leftover "ghost" calculations after reducing Animal Feed or Chicken demand to zero.

  • Improved performance for faster updates and smoother UI.

Thank you to everyone using the mod and sharing feedback. Your suggestions are helping make the optimiser better with every update.

Happy optimising!

Advanced Farm & Food Optimiser v0.1.0 is Live!

Jul 23, 2026 v0.1.0

We’ve just pushed a major quality-of-life update to the optimizer! Whether you rely heavily on cargo ship imports or manage dedicated external farms across your island, v0.1.0 gives you total control over what the solver calculates.

Spotlight Feature: Custom Crop Scope Toggles

Screenshot 2026-07-24 025027.jpg

Have you ever wanted to optimize your settlement's food chains while importing all of your Corn or Sugarcane from off-map? Now you can!

  • Interactive Scope Control: Simply left-click any crop icon in the Crop Demands list to toggle it In or Out of the optimizer's scope.

  • Green Tick Indicator: A green checkmark badge indicates the crop is actively being processed by the solver. Click it to exclude it instantly!

  • Smart Target Reminders: When you toggle a crop out of scope, the solver ignores it during calculations—but the UI still displays your calculated monthly total (e.g., Total: 52.3 --- out of scope ---). You’ll always know exactly how much you need to import or grow in your external fields without having to turn the crop back on!

Additional Improvements & Fixes in v0.1.0

  • Blazing Fast Math: We’ve significantly improved the solver's backend algorithm, resulting in noticeably faster calculation times.

  • Heavy Demand Handling: Resolved an edge-case bug where the solver would prematurely give up or time out when processing massive crop demand requests in late-game settlements.

  • Balanced UI Layout: Widened and adjusted the main window dimensions to give the results tables and production chains more breathing room.

Update your mod today and let us know what you think! As always, feel free to share your feedback, bug reports, or feature suggestions in the comments. Happy optimizing! 🚜🌾

v0.3.2

Latest
Game version
0.8.6 - 0.8.7
Released
Aug 18, 2026
File size
242.8 KB
License
CoI-Open
Save-game: Add · Remove
Changelog
FIXED: The Optimizer solver sometimes failed to find an appropriate farm configuration for large settlements.
FIXED: The Optimizer struggled to find configurations when a dominant crop's demand was more than twice as high as the next highest crop.
IMPROVED: General under-the-hood code optimizations for better solver performance.
Loading forum…

v0.3.2 | 2026-08-18

FIXED: The Optimizer solver sometimes failed to find an appropriate farm configuration for large settlements.
FIXED: The Optimizer struggled to find configurations when a dominant crop's demand was more than twice as high as the next highest crop.
IMPROVED: General under-the-hood code optimizations for better solver performance.

v0.3.1 | 2026-08-15

* NEW: Added a dedicated Farm Selection window, allowing players to individually select or exclude specific built farms from the optimizer's scope.
* IMPROVED: Implemented logistics-standard color coding (Blue for inbound/imports, Orange for outbound/exports) in inputs and tooltips for better readability and colorblind accessibility.
* IMPROVED: Adjusted UI icon scaling and centering for improved button clarity across the new panels.
* FIXED: Resolved a bug where certain crops (like Soybeans and Fruits) incorrectly showed 0 monthly yield due to internal game naming mismatches.
* LOCALIZATION: Added all missing translation strings for the new Production and Settlement panels, updating the English, Russian, and Simplified Chinese language files.

v0.3.0 | 2026-08-12

Settlement & Real Farm Production

* NEW: Integrated Settlement management with population control and dedicated settlement food demand tracking.
* NEW: Added live infrastructure scanning to read built farm configurations and real-time crop production.
* NEW: Added real-time comparison between actual farm production and live crop demands.
* NEW: Added sandbox mode via a production toggle allowing players to disconnect settlement demands and freely optimize farms for custom production.
* NEW: Added manual product and crop demand additions with instant UI responsiveness.
* NEW: Added support for external supply configuration (imports and exports) for food, production, and crops.
* IMPROVED: Clear and intuitive user interface layouts with tight spacing and grouped controls.
* IMPROVED: Optimized settlement food consumption to only recalculate when food items are explicitly added or modified in the Settlement panel, improving UI responsiveness.
* IMPROVED: Switched production method selection to utilize direct recipe inspection rather than abstract production chains, complete with visual machinery and I/O rates.
* IMPROVED: Enhanced utilization of production byproducts (such as animal feed) flowing back into secondary production chains.
* IMPROVED: Optimizer results and crop balances now update dynamically in real time when production or demand settings are altered.
* IMPROVED: Minor solver adjustments for alternative production methods and balanced crop overproduction.

v0.2.1 | 2026-08-02

* IMPROVED: Minor solver adjustments for balanced crop overproduction.
* IMPROVED: Optimizer results remain stable with excess farms.
* Ensured game v0.8.6c compatibility.

v0.2.0 | 2026-07-27

Livestock & Co-Production Engine

* NEW: Added the Farm Products Demand section with a new system for calculating Chicken and Egg production.
* NEW: Added a Chicken Population control ([ - ] 🐔 [ + ]) to adjust flock size in steps of 50 chickens. The minimum value is automatically limited to keep enough food for your settlement.
* NEW: Added support for calculating Animal Feed separately from food production.
* IMPROVED: Fixed Chicken and Egg calculations so farms and crops are no longer counted twice when producing both at the same time.
* IMPROVED: Animal Feed is now calculated independently, giving more accurate crop requirements.
* IMPROVED: Product and crop selections now update instantly without pressing Auto-Fill Demands.
* IMPROVED: Production chain diagrams are cleaner and easier to read, especially for complex recipes like Sausage and Meat.
* FIXED: Corn, Wheat, and Animal Feed are no longer counted twice.
* FIXED: Setting Animal Feed or Chicken demand to zero now correctly removes unused crop calculations.
* FIXED: Improved UI performance for faster updates and smoother screen redraws.

v0.1.0 | 2026-07-24

* NEW: Added the ability to toggle individual crops in or out of the optimizer scope (ideal for imported crops or external fields).
* FIX: Resolved an issue where the solver would prematurely give up when handling extremely large crop demand requests.
* IMPROVED: Enhanced solver calculation speed and overall optimization time.
* IMPROVED: Adjusted the main window dimensions for better UI layout and balance.

v0.0.6 | 2026-07-23

Stable Release

* IMPROVED: Minor solver adjustments to better minimize overproduction.
* FIX: Resolved an error affecting the solver when processing single-crop requests.
* NEW: Added localization support for Russian and Simplified Chinese.

v0.0.5 | 2026-07-21

* Minor text and interface picture adjustments.

v0.0.4 | 2026-07-21

* Initial public beta release.
This mod depends on

This mod has no dependencies.

Mods that depend on this

No other mods depend on this mod yet.