- Step1: Add the Java Action Linearprogram dependency to your LightJason project.
- Step2: Import the linear program action in your agent code.
- Step3: Instantiate the action and define the objective function coefficients.
- Step4: Add constraint equations or inequalities via provided methods.
- Step5: Choose the solving method (simplex or interior-point).
- Step6: Execute the action within the agent’s reasoning cycle.
- Step7: Retrieve the optimized variable values and objective result.
- Step8: Use the solution in subsequent agent behaviors or decisions.