HP Prime contest in python : "Fiat Lux !"

+- HP Forums (http://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: HP Prime contest in python : "Fiat Lux !" (/thread-11491.html)



HP Prime contest in python : "Fiat Lux !" - ggauny@live.fr - 09-30-2018 03:33 AM

Hi,

HP corp. is participing to a contest in python.
The code is written by a french mathematics professor : Critor.
In attachement you have the application "Force" to run.

Your control panel of 30 potentiometers from 0 to 1 allows you to control up to 252 lamps.
Light up a maximum of light bulbs with minimal energy while wasting as little as possible.
Syntax: pot (..., ...) to be completed with the potentiometer number from 0 to 29 and its value from 0 to 1.
Example: pot (3,0.8) pushes the number 3 potentiometer to 80%.

Tape [CAS] to start.

My score is 192 points but the best (right now is 217).

I wonder what is the best way to reach the really maximum points ?

Surely with high mathematics, some says genetic algorithm, others says
lineaires systems.... Me I do empiric way but of course not very good, very long
and not very efficient !

May be some advertising to help me ?

Thank, enjoy, good sunday !