Decisify عبارة عن حزمة Python تعمل على تعزيز الذكاء الاصطناعي التوليدي لشرح القرارات التي تتخذها نماذج التحسين.
يعد التحسين الرياضي أداة مهمة في أبحاث العمليات، مما يمكّن الشركات من اتخاذ قرارات تعتمد على البيانات والتي تزيد من الكفاءة وتقلل من التكاليف. ومع ذلك، فإن تعقيد هذه النماذج غالبًا ما يجعل من الصعب على أصحاب المصلحة فهم القرارات التي يتم اتخاذها والثقة بها.
يعالج Decisify هذا التحدي باستخدام الذكاء الاصطناعي التوليدي لتقديم تفسيرات واضحة ومفهومة للقرارات التي تنتجها نماذج التحسين. ومن خلال تعزيز الشفافية والثقة، تهدف Decisify إلى زيادة اعتماد تقنيات التحسين عبر الصناعات المتنوعة.
يمكنك تثبيت Decisify باستخدام النقطة:
pip install decisify
فيما يلي مثال بسيط لكيفية استخدام Decisify:
import decisify
# Your optimization model code here
( 1 ) Just define the Pydantic Models for ( a ) Input ( b ) Output
( 2 ) Concrete implementation of optimization model
( 3 ) A method to read , the solution
الآن، لقد قرأت كيفية استخدام decisify، الأمر بسيط من الآن فصاعدًا
# Generate explanations for the model's decisions
trnsprt_model = TransportationModel ()
solution = trnsprt_model . get_solution ( input_data )
print ( solution . model_dump_json ())
interrogator = GurobiInterrogator ( trnsprt_model , input_data )
answer = interrogator . answer ( "What is the optimal solution for the transportation problem?" )
print ( answer )
answer = interrogator . answer ( "How many factories and how many distribution centers are there?" )
print ( answer )
#Now, lets assume the user wants to change the supply at warehouse W1 to 20
answer = interrogator . what_if ( "the courier company just doubled the transportation costs, how does this affect the total cost?" )
print ( answer )
answer = interrogator . what_if ( "The demand at customer C1 has increased by 100 times, how does this affect the total cost?" )
print ( answer )
نحن نرحب بالمساهمات في Decisify! يرجى الاطلاع على إرشادات المساهمة الخاصة بنا لمزيد من المعلومات.
هذا المشروع مرخص بموجب ترخيص MIT - راجع ملف الترخيص للحصول على التفاصيل.
إذا كانت لديك أي أسئلة أو اقتراحات، يرجى الاتصال بنا على [email protected].