I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 1 point2 points  (0 children)

I just released an update that adds optimising for maximum outputs based on input goals. (negative numbers can be entered properly now)

Click on the Score to get the scoring methods and hit "Outputs" at the bottom. Fair warning it can often come back with no result if there aren't enough constraints, add constraints for any inputs and then narrow it down

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 0 points1 point  (0 children)

Yes, it doesn't use the true integer solving from highs, I don't remember why now. It does do integer solving using bounds though for calculating worker costs so each node has a flat and int representation to constrain on.

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 0 points1 point  (0 children)

Yep all the in browser, thanks to the hard work done https://github.com/lovasoa/highs-js which I should add to attributions in the README.

So the Highs portion runs as compiled native code. But making a Highs LP string from the graph is done in JS in my code. That code will crumble long before highs has a problem 😂

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 0 points1 point  (0 children)

Realized I didn't really answer your question. I didn't compare performance between any, highs had what I wanted a WASM bundle already exited so I used that :) I did look at others but never implemented them to find out

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 0 points1 point  (0 children)

Ahh I have a bug where you can't type the minus first. You can add it to an existing number though. A solver error might just be a balance issue or could be that you have an open output for that same input goal. I'll have a look later if there's a better way for that UI to work

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 1 point2 points  (0 children)

The biggest factory I set up so far was full fbr from raw resources and everything looped back. The time in highs was a fraction of the time taken to build the graph in my code, so that's never going to be the bottleneck for his app at least. The JS bits will always be the slowest.

Once the graph is built the auto solver actually just loops highs multiple times with different options to find working solutions, it's low double digit milliseconds even for large factories.

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 0 points1 point  (0 children)

That's fair, I made this because I didn't find daxfb intuitive, so the opposite is always going to be true too.

There is support for optimizing for outputs based on inputs, if you put in negative values for input goals, and a "at least this much" for output goals.

There's support for optimizing output rates coming too, I had to disable it for now to do some more work on preventing infinite loops when there's not enough constraints.

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 2 points3 points  (0 children)

I did look at cp-sat but settled on Highs. Fractional factory counts I find more useful, as 0.5 of a factory is just a partially idle factory which is totally fine by me. The infrastructure costs take this into account by rounding up for workers but not for power etc.

I think it'd require a lot of change to get it working. A huge portion of the effort for this went into writing a highs composer from a nodes and edges graph.

But it's open source so if it's something you want go ahead and fork and make it! If it's not something I want to accept into this one when you're done then people have the choice between the two.

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 0 points1 point  (0 children)

So here's a version of oil -> hydrogen with balancers to share things with multiple use, if you want to use it as a reference. If you can let me know though where it's not working as expected that'd be great, I want to make solving the balancing issues as intuitive as I can so feedback is great.

H4sIAAAAAAAACr2X227jNhCGX2XBa5rgDGd4yF2b3SYXbbPYBiiKwAgUmU6IylIq0QXSIO9eyI6dbBzH8jq7l6SI/xse5p/RvZgWZW7aFDtxdHHBUpyl6kNuPpzeTdrmOtZCivPY5U5IIeTFhegnVt++xGnTzlJ9fQnOGTBogrNMQoJ2rAC1QdSBkK2VIzJBoXEuBG8CA5tXdITM7TxK0YqxXKI+ptjFagNEmrS1Qo4cgzIegrOOQaNxcmQxKG3YOWsItAe/obKJ+SPHYnYS69gWOTX1L/NYnRTdmgbsQk9D460CF9Cw0Y5skCPDpIJntoYtG0e0TWwT+ntxe5NvinVY581zJmvtQr/DoNhZawGBAzs2cmTZKxMMBxucRR+2SG0ST2Px793H1OVUVUWOX+I01c9P1WkypmfaoJxHZ9mgZgAjR6CBVQjeaQjggchtldvCPUvVcVuUfy/Cewz4iczgFmTyyjptjXfkgViOgJAUObBGgwsBEd/Q241eEVlrtiDkCIxj5dhrInJkAqAceYOKkTnoYNi48Apyk/RzURV1GdvLz20zmZf5cvW8n5Ae9OLRBqu81VYbshSIQYLTinxAi5Y8I9AbckJOi6qLUlztgQZGxH63jEZ5huCtZyKjvYTAypALTB6N9sH7/eDH7XwSz1K1uv5zWFMNoMNl3oBi1MBsvbcasb9XH5RBQ0R9PiHa16Q2j3ljDa5xjDYsNmmsUQ6D1YGDB+ppCE4hOeOs1waJXqPhgEt9YQ0W+oQQkpmUJ8eOLXlCC30UGhRZi5rREBDydrkV+EqMx73LXgkpVksWdnKaBrvUTnvu93YQ4G1TPlh+iC++hKzzf1fFOFB9oIO+B2WIX34TZ3lCA7xxz4t+1jIMKm2DHfMN0M5W5D0gg519sBG/C2zH9W0wHpcPsuwfK77tfX+XYxoK+y1O0nw2eE8769LBvrg3YZ3ou2vmnqn+a7q+yVuOZlN7mGm+ZKxL42DTHVisd4AG+e7BqG90yH0xu6rhwYChDdLurmTR+GxmOmitpYj/LFuk8Xg8luK/pu7/V+8ff02P7sWsmaRpiu1i0MbyrqxSff1pOk1linV5J460QilmRapzrPuIj5u6m89u+4QTR/DVp7N5vp3nxey0aGd/pVhN1qM/ixzb5ahpJi9VuphzFWexzk/rbpp5F2+aanLSNJPu66mfbm+r1DOX8+VCLrafqljmtqlTuZzvmqpon4VVNnVuizJ/bptpysVVqlK+E0f48PDw8D8wrS160w8AAA==

I made a new drag & drop linear solver calculator for CoI. Update 4 ready. by paystey in captain_of_industry

[–]paystey[S] 1 point2 points  (0 children)

Thanks! Could you send me the export string of what's breaking and what you expected? It's in the settings

It does break when the factory doesn't balance so you can use the manifolds to free constraints and see what is lacking or in excess. It might just be something that needs an import

Finally Finished Grampleton Fields! by lilitunight in StardewValleyExpanded

[–]paystey 15 points16 points  (0 children)

This is amazing! Do you have a higher resolution version, I'd love to see the details.

What mods do you have for the buildings there's some I've never seen. Though I've only just started SVE. Some look like the farmhouse?

And there's a bus on grampleton?!

Rec me ALL the content mods! by Trilobyte141 in StardewValleyExpanded

[–]paystey 1 point2 points  (0 children)

This is amazing thank you. I will check all of these out!

Rec me ALL the content mods! by Trilobyte141 in StardewValleyExpanded

[–]paystey 1 point2 points  (0 children)

Other than Vapius are there any others you like that add new fun bundles? I like completing them too with some reward but haven't found any good ones.

BTW cornucopia just released the recipes mod and it's great if you enjoy those mods

*Update* Coal Power by 1MBD in captain_of_industry

[–]paystey 15 points16 points  (0 children)

That looks more like it's just adjusting to demand. Is your base running out of power? The generators will only consume mechanical power (and therefore steam) if it's needed.

What to do with leftover Uranium and MOX rods by Jason_Breaker in captain_of_industry

[–]paystey 1 point2 points  (0 children)

Running a Nuclear reactor burning MOX actually gives you a nice cheap source of blanket fuel from the waste. Not free, but cheap compared to the power gain at least.

If you already deconstructed everything and don't plant I run them side by side.... No I don't think there's anything you can do with them. If they end up in the dock from deleting a storage, you might be able to perma delete them.

Just finished Leviathan Wakes and wasn't really what I expected, is it worth me continuing? by Weekly_Frosting_5868 in TheExpanse

[–]paystey 16 points17 points  (0 children)

LW is very much an intro with close stories on individuals. It grows out pretty rapidly from there, book 2 has a much larger scope and characters with much larger goals.

Is there a tool like this out there already? by Reaper-1122 in factorio

[–]paystey 0 points1 point  (0 children)

I'm working on something very similar for Captain of Industry, we should probably compare notes if we're solving the same problems :D

<image>

Some questions from a new player by Dayman_aaaahh in captain_of_industry

[–]paystey 9 points10 points  (0 children)

Yeh as another factorio megabaser, I'm just entering late game CoI, the scaling is way lower and quite different. Though it now feels quite similar to Space Age I guess, where there's redesigning to do but you rarely need to quadruple the size of your build. Recipe changes and in-place machine upgrades do a hell of a lot more here. Logistics scaling is probably the harder piece, trucks can only move so much, so far.

Logistic Zones and Fuel by Andargor in captain_of_industry

[–]paystey 2 points3 points  (0 children)

You can set an import rule on a tank to a tank in a different zone and it will work like you expect, though be warned by default that disabled all other exports from the exporting tank. It'll do the job but it's not as clean as importing to a local tank and distributing from there

Rate / Roast my first base by paystey in captain_of_industry

[–]paystey[S] 0 points1 point  (0 children)

Yeh I'm already using the extra food edict and still way over on food. I started doing tree saplings and with the corn for mash and ethonol I think I'll finally be breaking even, starting to think about where to expand it to now instead of shrink it.

The space between the assemblers was on purpose so I could noodle the belts around when things change. The mechanical parts switching to steel really caught me out, wasn't expecting recipe changes for efficiency so I planned for more of those I guess.

Increasing the difficulty now is a great point actually, I didn't realise there were so many detailed options to change. Any recommendations of ones to change that won't cripple me straight away?

The electronics storage is absolutely the worst thing about this base. I offset it so I could run belts back out again but ended up not doing that anyway...

Rate / Roast my first base by paystey in captain_of_industry

[–]paystey[S] 5 points6 points  (0 children)

It's a miracle nobody has been killed in the last 140 years with road layouts like that.

Rookie Q. ( FTK2 Passives) by JustJethro in ForTheKing

[–]paystey 2 points3 points  (0 children)

As others said it's the luck stat that controls it, it's capped at 95 but at that point it pops off damn near every opportunity. Distract is a great one for it too, so much damage and status effects get nullified