License Installation Issue in Mac

Hi,

I received an AMPL license from my teacher, and it is working perfectly fine on Windows. However, when I try to use the same license on my Mac, I encounter an error. I am using the AMPL license within MATLAB, and the issue arises specifically when attempting to integrate AMPL with MATLAB on macOS. Below is the error message I receive:

Using native binary at /Applications/AMPL/amplapi/matlab/../lib/libampl.2.3.13.dylib
Using api at /Applications/AMPL/amplapi/matlab/../lib/ampl-java.jar
Using wrapper at /Applications/AMPL/amplapi/matlab
option version 'AMPL Development Version 20250311 (Darwin-22.6.0, 64-bit)\
Licensed to Bundle #7067.7583 expiring 20250831: ELEC5213 Engineering Optimisation, Prof. Gregor Verbic, The University of Sydney.\
Temporary license expires 20250831.\
Using license file "/Applications/AMPL/ampl.lic".\
';

ans =
    'Infeasible Solution'

Error using HandleException (line 13)
no value for Csm_Demand['B0001',1]

Error in Entity/getValues (line 165)
                HandleException(e, 'AMPLAPI:Entity:getValues');
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in indexing (line 75)
                        result = builtin('subsref',self,key);
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in get_data_decisionVariable_AMPL (line 35)
df = Make.getValues;
     ^^^^^^^^^^^^^^
Error in Sol_variabl_Manager_DR_AMPL (line 26)
    Sol.Gen.Status=get_data_decisionVariable_AMPL(ampl,'Status_var',[T,G])';
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in Unit_Commitment (line 206)
Sol_variabl_Manager_DR_AMPL;
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in callback_RunSimulations (line 372)
    [Model, Sol]=Unit_Commitment...
                 ^^^^^^^^^^^^^^^^^^
 
Error while evaluating UIControl Callback.

please guide me how can I solve this issue. Thanks

It appears that this cascade of error messages is set off by an AMPL error:

no value for Csm_Demand['B0001',1]

AMPL shows this error message when Csm_Demand has been defined in a param statement, and you are trying to use it — but it cannot be used, because the parameter Csm_Demand[‘B0001’,1] has not been assigned a data value. To confirm that this is the problem, try executing

disp('START')
ampl.eval('display Csm_Demand[''B0001'',1];');
disp('END')

just before the statement where the error in your program is occurring. Does a “no value for . . .” error appear between START and END?